Difference between revisions of "Utf8.ncasecmp"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
 
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2016.06<br/>
'''<translate>Available since</translate>:''' Gideros 2016.06<br/>
+
'''Class:''' [[utf8]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/utf8|utf8]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>Compare a and b without case, -1 means a < b, 0 means a == b and 1 means a > b.</translate>
+
Compares ''a'' and ''b'' without case.
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
(number) = utf8.ncasecmp(a,b)
 
(number) = utf8.ncasecmp(a,b)
</source>
+
</syntaxhighlight>
=== <translate>Parameters</translate> ===
+
 
'''a''': (string) <translate></translate> <br/>
+
-1 means a < b
'''b''': (string) <translate></translate> <br/>
+
 
=== <translate>Return values</translate> ===
+
0 means a == b
'''<translate>Returns</translate>''' (number) <translate>compare state</translate><br/>
+
 
 +
1 means a > b
 +
 
 +
=== Parameters ===
 +
'''a''': (string) <br/>
 +
'''b''': (string) <br/>
 +
 
 +
=== Return values ===
 +
'''Returns''' (number) compare state<br/>
  
 
{{Utf8}}
 
{{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