Function qt_core::qstrnicmp_2_char_uint
source · pub unsafe fn qstrnicmp_2_char_uint(
arg1: *const c_char,
arg2: *const c_char,
len: c_uint
) -> c_int
Expand description
A safe strnicmp()
function.
Calls C++ function: int qstrnicmp(const char* arg1, const char* arg2, unsigned int len)
.
A safe strnicmp()
function.
Compares at most len bytes of 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(), qstricmp(), and 8-bit Character Comparisons.