Difference between revisions of "Utf8.codes"

From GiderosMobile
Line 14: Line 14:
 
=== <translate>Return values</translate> ===
 
=== <translate>Return values</translate> ===
 
'''<translate>Returns</translate>''' (iterator) <translate>iterator</translate><br/>
 
'''<translate>Returns</translate>''' (iterator) <translate>iterator</translate><br/>
 +
 +
{{Utf8}}

Revision as of 22:13, 11 February 2020


Available since: Gideros 2016.06
Class: utf8

Description

Returns values so that the construction for p, c in utf8.codes(s) do body end will iterate over all characters in string s, with p being the position (in bytes) and c the code point of each character. It raises an error if it meets any invalid byte sequence.

(iterator) = utf8.codes(s)

Parameters

s: (string)

Return values

Returns (iterator) iterator