Function qt_core::qstricmp

source ·
pub unsafe fn qstricmp(arg1: *const c_char, arg2: *const c_char) -> c_int
Expand description

A safe stricmp() function.

Calls C++ function: int qstricmp(const char* arg1, const char* arg2).

C++ documentation:

A safe stricmp() function.

Compares str1 and str2 ignoring the case of the characters. The encoding of the strings is assumed to be Latin-1.

Returns a negative value if str1 is less than str2, 0 if str1 is equal to str2 or a positive value if str1 is greater than str2.

Special case 1: Returns 0 if str1 and str2 are both 0.

Special case 2: Returns a random non-zero value if str1 is 0 or str2 is 0 (but not both).

See also qstrcmp(), qstrncmp(), qstrnicmp(), and 8-bit Character Comparisons.