Difference between revisions of "Utf8.gmatch"

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>Returns an iterator function that, each time it is called, returns the next captures from pattern over the string s. If pattern specifies no captures, then the whole match is produced in each call.
 
<translate>Returns an iterator function that, each time it is called, returns the next captures from pattern over the string s. If pattern specifies no captures, then the whole match is produced in each call.
 
For this function, a caret '^' at the start of a pattern does not work as an anchor, as this would prevent the iteration.</translate>
 
For this function, a caret '^' at the start of a pattern does not work as an anchor, as this would prevent the iteration.</translate>
Line 7: Line 7:
 
(function) = utf8.gmatch(s,pattern)
 
(function) = utf8.gmatch(s,pattern)
 
</source>
 
</source>
=== Parameters ===
+
=== <translate>Parameters</translate> ===
 
'''s''': (string) <translate></translate> <br/>
 
'''s''': (string) <translate></translate> <br/>
 
'''pattern''': (string) <translate></translate> <br/>
 
'''pattern''': (string) <translate></translate> <br/>
=== Return values ===
+
=== <translate>Return values</translate> ===
'''Returns''' (function) <translate>iterator function</translate><br/>
+
'''<translate>Returns</translate>''' (function) <translate>iterator function</translate><br/>

Revision as of 07:29, 24 August 2018

Available since: Gideros 2016.06

Description

Returns an iterator function that, each time it is called, returns the next captures from pattern over the string s. If pattern specifies no captures, then the whole match is produced in each call. For this function, a caret '^' at the start of a pattern does not work as an anchor, as this would prevent the iteration.

(function) = utf8.gmatch(s,pattern)

Parameters

s: (string)
pattern: (string)

Return values

Returns (function) iterator function