Difference between revisions of "Utf8.remove"

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>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</translate>
 
<translate>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</translate>
 
<source lang="lua">
 
<source lang="lua">
 
  utf8.remove(s,start,stop)
 
  utf8.remove(s,start,stop)
 
</source>
 
</source>
=== Parameters ===
+
=== <translate>Parameters</translate> ===
 
'''s''': (string) <translate></translate> <br/>
 
'''s''': (string) <translate></translate> <br/>
 
'''start''': (number) <translate></translate> '''optional'''<br/>
 
'''start''': (number) <translate></translate> '''optional'''<br/>
 
'''stop''': (number) <translate></translate> '''optional'''<br/>
 
'''stop''': (number) <translate></translate> '''optional'''<br/>

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

Parameters

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