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), = utf8.ncasecmp(ab,)
+
(number) = utf8.ncasecmp(a,b)
 
</source>
 
</source>
'''a:''' (string)  ''''''<br/>
+
'''a''': (string)  ''''''<br/>
'''b:''' (string)  ''''''<br/>
+
'''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