Difference between revisions of "Utf8.insert"

From GiderosMobile
Line 6: Line 6:
 
(string) = utf8.insert(s,idx,substring)
 
(string) = utf8.insert(s,idx,substring)
 
</source>
 
</source>
'''s''': (string)  ''''''<br/>
+
=== Parameters ===
 +
'''s''': (string)  <br/>
 
'''idx''': (number) index where to insert '''optional'''<br/>
 
'''idx''': (number) index where to insert '''optional'''<br/>
 
'''substring''': (string)  '''optional'''<br/>
 
'''substring''': (string)  '''optional'''<br/>
 +
=== Return values ===
 
'''Returns''' (string) new string<br/>
 
'''Returns''' (string) new string<br/>

Revision as of 10:44, 23 August 2018

Available since: Gideros 2016.06

Description

Insert a substring to s. If idx is given, insert substring before char at this index, otherwise substring will concat to s. idx can be negative.

(string) = utf8.insert(s,idx,substring)

Parameters

s: (string)
idx: (number) index where to insert optional
substring: (string) optional

Return values

Returns (string) new string