Difference between revisions of "Utf8.insert"
From GiderosMobile
Line 14: | Line 14: | ||
=== <translate>Return values</translate> === | === <translate>Return values</translate> === | ||
'''<translate>Returns</translate>''' (string) <translate>new string</translate><br/> | '''<translate>Returns</translate>''' (string) <translate>new string</translate><br/> | ||
+ | |||
+ | {{Utf8}} |
Revision as of 22:14, 11 February 2020
Available since: Gideros 2016.06
Class: utf8
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