Str.strcasecmp

Warning g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. See g_strncasecmp() for a discussion of why this function is deprecated and how to replace it. A case-insensitive string comparison, corresponding to the standard strcasecmp() function on platforms which support it.

class Str
static
int
strcasecmp
(
string s1
,
string s2
)

Parameters

s1 string

a string.

s2 string

a string to compare with s1.

Return Value

Type: int

0 if the strings match, a negative value if s1 < s2, or a positive value if s1 > s2.

Meta