Difference between revisions of "Utf8.remove"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2016.06<br/> === Description === Delete a substring in s. If neither start nor stop is given, delete the last UTF-8 char in s, otherwi...")
 
Line 4: Line 4:
 
Delete a substring in s. If neither start nor stop is given, delete the last UTF-8 char in s, otherwise delete char from start to end of s. if stop is given, delete char from start to stop (include start and stop). start and stop can be negative
 
Delete a substring in s. If neither start nor stop is given, delete the last UTF-8 char in s, otherwise delete char from start to end of s. if stop is given, delete char from start to stop (include start and stop). start and stop can be negative
 
<source lang="lua">
 
<source lang="lua">
= utf8.remove(sstartstop,)
+
utf8.remove(s,start,stop)
 
</source>
 
</source>
'''s:''' (string)  ''''''<br/>
+
'''s''': (string)  ''''''<br/>
'''start:''' (number)  '''optional'''<br/>
+
'''start''': (number)  '''optional'''<br/>
'''stop:''' (number)  '''optional'''<br/>
+
'''stop''': (number)  '''optional'''<br/>

Revision as of 11:21, 23 August 2018

Available since: Gideros 2016.06

Description

Delete a substring in s. If neither start nor stop is given, delete the last UTF-8 char in s, otherwise delete char from start to end of s. if stop is given, delete char from start to stop (include start and stop). start and stop can be negative

 utf8.remove(s,start,stop)

's: (string) '
start: (number) optional
stop: (number) optional