Difference between revisions of "Utf8.insert"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' Gideros 2016.06<br/>
+
'''<translate>Available since</translate>:''' Gideros 2016.06<br/>
=== Description ===
+
=== <translate>Description</translate> ===
 
<translate>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.</translate>
 
<translate>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.</translate>
 
<source lang="lua">
 
<source lang="lua">
 
(string) = utf8.insert(s,idx,substring)
 
(string) = utf8.insert(s,idx,substring)
 
</source>
 
</source>
=== Parameters ===
+
=== <translate>Parameters</translate> ===
 
'''s''': (string) <translate></translate> <br/>
 
'''s''': (string) <translate></translate> <br/>
 
'''idx''': (number) <translate>index where to insert</translate> '''optional'''<br/>
 
'''idx''': (number) <translate>index where to insert</translate> '''optional'''<br/>
 
'''substring''': (string) <translate></translate> '''optional'''<br/>
 
'''substring''': (string) <translate></translate> '''optional'''<br/>
=== Return values ===
+
=== <translate>Return values</translate> ===
'''Returns''' (string) <translate>new string</translate><br/>
+
'''<translate>Returns</translate>''' (string) <translate>new string</translate><br/>

Revision as of 07:27, 24 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