Difference between revisions of "Utf8.fold"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== <translate>Description</translate> ===
 
=== <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">
+
<syntaxhighlight lang="lua">
 
(string) = utf8.fold(s)
 
(string) = utf8.fold(s)
 
</source>
 
</source>

Revision as of 15:32, 13 July 2023


Available since: Gideros 2016.06
Class: utf8

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. <syntaxhighlight lang="lua"> (string) = utf8.fold(s) </source>

Parameters

s: (string)

Return values

Returns (string) folded case string