[−][src]Function qt_core::qstrcmp_2_q_byte_array
pub unsafe fn qstrcmp_2_q_byte_array(
str1: impl CastInto<Ref<QByteArray>>,
str2: impl CastInto<Ref<QByteArray>>
) -> c_int
A safe strcmp()
function.
Calls C++ function: int qstrcmp(const QByteArray& str1, const QByteArray& str2)
.
Warning: no exact match found in C++ documentation. Below is the C++ documentation for int qstrcmp(const char *str1, const char *str2)
:
A safe strcmp()
function.
Compares str1 and str2. 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 an arbitrary non-zero value if str1 is 0 or str2 is 0 (but not both).
See also qstrncmp(), qstricmp(), qstrnicmp(), and 8-bit Character Comparisons.