Difference between revisions of "Utf8.ncasecmp"
From GiderosMobile
Line 2: | Line 2: | ||
'''Available since:''' Gideros 2016.06<br/> | '''Available since:''' Gideros 2016.06<br/> | ||
=== Description === | === Description === | ||
− | Compare a and b without case, -1 means a < b, 0 means a == b and 1 means a > b. | + | <translate>Compare a and b without case, -1 means a < b, 0 means a == b and 1 means a > b.</translate> |
<source lang="lua"> | <source lang="lua"> | ||
(number) = utf8.ncasecmp(a,b) | (number) = utf8.ncasecmp(a,b) | ||
</source> | </source> | ||
=== Parameters === | === Parameters === | ||
− | '''a''': (string) | + | '''a''': (string) <translate></translate> <br/> |
− | '''b''': (string) | + | '''b''': (string) <translate></translate> <br/> |
=== Return values === | === Return values === | ||
− | '''Returns''' (number) compare state<br/> | + | '''Returns''' (number) <translate>compare state</translate><br/> |
Revision as of 13:32, 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)
Parameters
a: (string)
b: (string)
Return values
Returns (number) compare state