Difference between revisions of "Utf8"
From GiderosMobile
Line 7: | Line 7: | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Methods === | === Methods === | ||
− | [[utf8.byte]] | + | [[utf8.byte]] {{<translate>Returns the internal numerical codes of the characters</translate>}}<br/> |
− | [[utf8.char]] | + | [[utf8.char]] {{<translate>Returns a string from integers as characters</translate>}}<br/> |
− | [[utf8.charpos]] | + | [[utf8.charpos]] {{<translate>convert UTF-8 position to byte offset</translate>}}<br/> |
− | [[utf8.codepoint]] | + | [[utf8.codepoint]] {{<translate>Returns the codepoints (as integers) from all characters</translate>}}<br/> |
− | [[utf8.codes]] | + | [[utf8.codes]] {{<translate>Returns values so that the construction</translate>}}<br/> |
− | [[utf8.escape]] | + | [[utf8.escape]] {{<translate>Escape a str to UTF-8 format string</translate>}}<br/> |
− | [[utf8.find]] | + | [[utf8.find]] {{<translate>Looks for the first match of pattern in the string s</translate>}}<br/> |
− | [[utf8.fold]] | + | [[utf8.fold]] {{<translate>convert UTF-8 string s to folded case used to compare by ignore case</translate>}}<br/> |
− | [[utf8.gmatch]] | + | [[utf8.gmatch]] {{<translate>Returns an iterator function</translate>}}<br/> |
− | [[utf8.gsub]] | + | [[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]] | + | [[utf8.insert]] {{<translate>Insert a substring to s</translate>}}<br/> |
− | [[utf8.len]] | + | [[utf8.len]] {{<translate>Returns the number of UTF-8 characters in string</translate>}}<br/> |
− | [[utf8.lower]] | + | [[utf8.lower]] {{<translate>Receives a string and returns a copy of this string with all uppercase letters changed to lowercase</translate>}}<br/> |
− | [[utf8.match]] | + | [[utf8.match]] {{<translate>Looks for the first match of pattern in the string s</translate>}}<br/> |
− | [[utf8.ncasecmp]] | + | [[utf8.ncasecmp]] {{<translate>Compare a and b without case</translate>}}<br/> |
− | [[utf8.next]] | + | [[utf8.next]] {{<translate>Iterate though the UTF-8 string s</translate>}}<br/> |
− | [[utf8.offset]] | + | [[utf8.offset]] {{<translate>Returns the position (in bytes) where the encoding of the n-th character of s</translate>}}<br/> |
− | [[utf8.remove]] | + | [[utf8.remove]] {{<translate>Delete a substring in s</translate>}}<br/> |
− | [[utf8.reverse]] | + | [[utf8.reverse]] {{<translate>Returns a string that is the string s reversed.</translate>}}<br/> |
− | [[utf8.sub]] | + | [[utf8.sub]] {{<translate>Returns the substring of s that starts at i and continues until j</translate>}}<br/> |
− | [[utf8.title]] | + | [[utf8.title]] {{<translate>Convert UTF-8 string s to title case used to compare by ignore case</translate>}}<br/> |
− | [[utf8.upper]] | + | [[utf8.upper]] {{<translate>Receives a string and returns a copy of this string with all lowercase letters changed to uppercase. </translate>}}<br/> |
− | [[utf8.width]] | + | [[utf8.width]] {{<translate>calculate the width of UTF-8 string s</translate>}}<br/> |
− | [[utf8.widthindex]] | + | [[utf8.widthindex]] {{<translate>Return the character index at given location in string s.</translate>}}<br/> |
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Events === | === Events === |
Revision as of 14:19, 23 August 2018
Supported platforms:
Available since: Gideros 2016.06
Description
utf8 string library