Difference between revisions of "Utf8.fold"
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>convert UTF-8 string s to folded case used to compare by ignore case. if s is a number, it's treat as a code point and return a convert code point (number). utf8.lower/utf8.upper has the same extension.</translate> | <translate>convert UTF-8 string s to folded case used to compare by ignore case. if s is a number, it's treat as a code point and return a convert code point (number). utf8.lower/utf8.upper has the same extension.</translate> | ||
<source lang="lua"> | <source lang="lua"> | ||
(string) = utf8.fold(s) | (string) = utf8.fold(s) | ||
</source> | </source> | ||
− | === Parameters === | + | === <translate>Parameters</translate> === |
'''s''': (string) <translate></translate> <br/> | '''s''': (string) <translate></translate> <br/> | ||
− | === Return values === | + | === <translate>Return values</translate> === |
− | '''Returns''' (string) <translate>folded case string</translate><br/> | + | '''<translate>Returns</translate>''' (string) <translate>folded case string</translate><br/> |
Revision as of 07:28, 24 August 2018
Available since: Gideros 2016.06
Description
convert UTF-8 string s to folded case used to compare by ignore case. if s is a number, it's treat as a code point and return a convert code point (number). utf8.lower/utf8.upper has the same extension.
(string) = utf8.fold(s)
Parameters
s: (string)
Return values
Returns (string) folded case string