Difference between revisions of "Utf8.fold"
From GiderosMobile
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
| − | + | '''Available since:''' Gideros 2016.06<br/> | |
| − | ''' | + | '''Class:''' [[utf8]]<br/> |
| − | ''' | + | |
| − | === | + | === Description === |
| − | + | Converts UTF-8 string ''s'' to folded case used to compare ignoring case. | |
| − | < | + | <syntaxhighlight lang="lua"> |
(string) = utf8.fold(s) | (string) = utf8.fold(s) | ||
| − | </ | + | </syntaxhighlight> |
| − | === | + | |
| − | '''s''': (string) | + | If ''s'' is a number, it is treated as a code point and returns a convert code point (number). |
| − | === | + | |
| − | ''' | + | utf8.lower/utf8.upper has the same extension. |
| + | |||
| + | === Parameters === | ||
| + | '''s''': (string) <br/> | ||
| + | |||
| + | === Return values === | ||
| + | '''Returns''' (string) folded case string<br/> | ||
{{Utf8}} | {{Utf8}} | ||
Latest revision as of 21:48, 1 December 2023
Available since: Gideros 2016.06
Class: utf8
Description
Converts UTF-8 string s to folded case used to compare ignoring case.
(string) = utf8.fold(s)
If s is a number, it is treated as a code point and returns a convert code point (number).
utf8.lower/utf8.upper has the same extension.
Parameters
s: (string)
Return values
Returns (string) folded case string