Difference between revisions of "Utf8"

From GiderosMobile
Line 5: Line 5:
 
<translate>utf8 string library</translate>
 
<translate>utf8 string library</translate>
 
{|-
 
{|-
| style="width: 50%;"|
+
| style="width: 50%; vertical-align:top;"|
 
=== Methods ===
 
=== Methods ===
[[utf8.byte]] {{<translate>Returns the internal numerical codes of the characters</translate>}}<br/>
+
[[utf8.byte]] ''<translate>Returns the internal numerical codes of the characters</translate>''<br/>
[[utf8.char]] {{<translate>Returns a string from integers as characters</translate>}}<br/>
+
[[utf8.char]] ''<translate>Returns a string from integers as characters</translate>''<br/>
[[utf8.charpos]] {{<translate>convert UTF-8 position to byte offset</translate>}}<br/>
+
[[utf8.charpos]] ''<translate>convert UTF-8 position to byte offset</translate>''<br/>
[[utf8.codepoint]] {{<translate>Returns the codepoints (as integers) from all characters</translate>}}<br/>
+
[[utf8.codepoint]] ''<translate>Returns the codepoints (as integers) from all characters</translate>''<br/>
[[utf8.codes]] {{<translate>Returns values so that the construction</translate>}}<br/>
+
[[utf8.codes]] ''<translate>Returns values so that the construction</translate>''<br/>
[[utf8.escape]] {{<translate>Escape a str to UTF-8 format string</translate>}}<br/>
+
[[utf8.escape]] ''<translate>Escape a str to UTF-8 format string</translate>''<br/>
[[utf8.find]] {{<translate>Looks for the first match of pattern in the string s</translate>}}<br/>
+
[[utf8.find]] ''<translate>Looks for the first match of pattern in the string s</translate>''<br/>
[[utf8.fold]] {{<translate>convert UTF-8 string s to folded case used to compare by ignore case</translate>}}<br/>
+
[[utf8.fold]] ''<translate>convert UTF-8 string s to folded case used to compare by ignore case</translate>''<br/>
[[utf8.gmatch]] {{<translate>Returns an iterator function</translate>}}<br/>
+
[[utf8.gmatch]] ''<translate>Returns an iterator function</translate>''<br/>
[[utf8.gsub]] {{<translate>Returns a copy of s in which all (or the first n, if given) occurrences of the pattern have been replaced</translate>}}<br/>
+
[[utf8.gsub]] ''<translate>Returns a copy of s in which all (or the first n, if given) occurrences of the pattern have been replaced</translate>''<br/>
[[utf8.insert]] {{<translate>Insert a substring to s</translate>}}<br/>
+
[[utf8.insert]] ''<translate>Insert a substring to s</translate>''<br/>
[[utf8.len]] {{<translate>Returns the number of UTF-8 characters in string</translate>}}<br/>
+
[[utf8.len]] ''<translate>Returns the number of UTF-8 characters in string</translate>''<br/>
[[utf8.lower]] {{<translate>Receives a string and returns a copy of this string with all uppercase letters changed to lowercase</translate>}}<br/>
+
[[utf8.lower]] ''<translate>Receives a string and returns a copy of this string with all uppercase letters changed to lowercase</translate>''<br/>
[[utf8.match]] {{<translate>Looks for the first match of pattern in the string s</translate>}}<br/>
+
[[utf8.match]] ''<translate>Looks for the first match of pattern in the string s</translate>''<br/>
[[utf8.ncasecmp]] {{<translate>Compare a and b without case</translate>}}<br/>
+
[[utf8.ncasecmp]] ''<translate>Compare a and b without case</translate>''<br/>
[[utf8.next]] {{<translate>Iterate though the UTF-8 string s</translate>}}<br/>
+
[[utf8.next]] ''<translate>Iterate though the UTF-8 string s</translate>''<br/>
[[utf8.offset]] {{<translate>Returns the position (in bytes) where the encoding of the n-th character of s</translate>}}<br/>
+
[[utf8.offset]] ''<translate>Returns the position (in bytes) where the encoding of the n-th character of s</translate>''<br/>
[[utf8.remove]] {{<translate>Delete a substring in s</translate>}}<br/>
+
[[utf8.remove]] ''<translate>Delete a substring in s</translate>''<br/>
[[utf8.reverse]] {{<translate>Returns a string that is the string s reversed.</translate>}}<br/>
+
[[utf8.reverse]] ''<translate>Returns a string that is the string s reversed.</translate>''<br/>
[[utf8.sub]] {{<translate>Returns the substring of s that starts at i and continues until j</translate>}}<br/>
+
[[utf8.sub]] ''<translate>Returns the substring of s that starts at i and continues until j</translate>''<br/>
[[utf8.title]] {{<translate>Convert UTF-8 string s to title case used to compare by ignore case</translate>}}<br/>
+
[[utf8.title]] ''<translate>Convert UTF-8 string s to title case used to compare by ignore case</translate>''<br/>
[[utf8.upper]] {{<translate>Receives a string and returns a copy of this string with all lowercase letters changed to uppercase. </translate>}}<br/>
+
[[utf8.upper]] ''<translate>Receives a string and returns a copy of this string with all lowercase letters changed to uppercase. </translate>''<br/>
[[utf8.width]] {{<translate>calculate the width of UTF-8 string s</translate>}}<br/>
+
[[utf8.width]] ''<translate>calculate the width of UTF-8 string s</translate>''<br/>
[[utf8.widthindex]] {{<translate>Return the character index at given location in string s.</translate>}}<br/>
+
[[utf8.widthindex]] ''<translate>Return the character index at given location in string s.</translate>''<br/>
| style="width: 50%;"|
+
| style="width: 50%; vertical-align:top;"|
 
=== Events ===
 
=== Events ===
 
=== Constants ===
 
=== Constants ===
 
[[utf8.charpattern]]<br/>
 
[[utf8.charpattern]]<br/>
 
|}
 
|}

Revision as of 14:31, 23 August 2018

Supported platforms:
Available since: Gideros 2016.06

Description

utf8 string library

Methods

utf8.byte Returns the internal numerical codes of the characters
utf8.char Returns a string from integers as characters
utf8.charpos convert UTF-8 position to byte offset
utf8.codepoint Returns the codepoints (as integers) from all characters
utf8.codes Returns values so that the construction
utf8.escape Escape a str to UTF-8 format string
utf8.find Looks for the first match of pattern in the string s
utf8.fold convert UTF-8 string s to folded case used to compare by ignore case
utf8.gmatch Returns an iterator function
utf8.gsub Returns a copy of s in which all (or the first n, if given) occurrences of the pattern have been replaced
utf8.insert Insert a substring to s
utf8.len Returns the number of UTF-8 characters in string
utf8.lower Receives a string and returns a copy of this string with all uppercase letters changed to lowercase
utf8.match Looks for the first match of pattern in the string s
utf8.ncasecmp Compare a and b without case
utf8.next Iterate though the UTF-8 string s
utf8.offset Returns the position (in bytes) where the encoding of the n-th character of s
utf8.remove Delete a substring in s
utf8.reverse Returns a string that is the string s reversed.
utf8.sub Returns the substring of s that starts at i and continues until j
utf8.title Convert UTF-8 string s to title case used to compare by ignore case
utf8.upper Receives a string and returns a copy of this string with all lowercase letters changed to uppercase.
utf8.width calculate the width of UTF-8 string s
utf8.widthindex Return the character index at given location in string s.

Events

Constants

utf8.charpattern