Difference between revisions of "Utf8.ncasecmp"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2016.06<br/> === Description === Compare a and b without case, -1 means a < b, 0 means a == b and 1 means a > b. <source lang="lua"> (...") |
|||
Line 4: | Line 4: | ||
Compare a and b without case, -1 means a < b, 0 means a == b and 1 means a > b. | Compare a and b without case, -1 means a < b, 0 means a == b and 1 means a > b. | ||
<source lang="lua"> | <source lang="lua"> | ||
− | (number) | + | (number) = utf8.ncasecmp(a,b) |
</source> | </source> | ||
− | '''a | + | '''a''': (string) ''''''<br/> |
− | '''b | + | '''b''': (string) ''''''<br/> |
'''Returns''' (number) compare state<br/> | '''Returns''' (number) compare state<br/> |
Revision as of 10:16, 23 August 2018
Available since: Gideros 2016.06
Description
Compare a and b without case, -1 means a < b, 0 means a == b and 1 means a > b.
(number) = utf8.ncasecmp(a,b)
'a: (string) '
'b: (string) '
Returns (number) compare state