Difference between revisions of "Utf8.ncasecmp"
From GiderosMobile
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2016.06<br/> | '''Available since:''' Gideros 2016.06<br/> | ||
+ | '''Class:''' [[utf8]]<br/> | ||
+ | |||
=== Description === | === Description === | ||
− | + | Compares ''a'' and ''b'' without case. | |
− | < | + | <syntaxhighlight lang="lua"> |
(number) = utf8.ncasecmp(a,b) | (number) = utf8.ncasecmp(a,b) | ||
− | </ | + | </syntaxhighlight> |
− | '''a''': (string) | + | |
− | '''b''': (string) | + | -1 means a < b |
+ | |||
+ | 0 means a == b | ||
+ | |||
+ | 1 means a > b | ||
+ | |||
+ | === Parameters === | ||
+ | '''a''': (string) <br/> | ||
+ | '''b''': (string) <br/> | ||
+ | |||
+ | === Return values === | ||
'''Returns''' (number) compare state<br/> | '''Returns''' (number) compare state<br/> | ||
+ | |||
+ | {{Utf8}} |
Latest revision as of 22:04, 1 December 2023
Available since: Gideros 2016.06
Class: utf8
Description
Compares a and b without case.
(number) = utf8.ncasecmp(a,b)
-1 means a < b
0 means a == b
1 means a > b
Parameters
a: (string)
b: (string)
Return values
Returns (number) compare state