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"> (...")
 
 
(8 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 ===
Compare a and b without case, -1 means a < b, 0 means a == b and 1 means a > b.
+
Compares ''a'' and ''b'' without case.
<source lang="lua">
+
<syntaxhighlight lang="lua">
(number), = utf8.ncasecmp(ab,)
+
(number) = utf8.ncasecmp(a,b)
</source>
+
</syntaxhighlight>
'''a:''' (string) ''''''<br/>
+
 
'''b:''' (string) ''''''<br/>
+
-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