chsvlib
chsv helper source code

◆ ucpsCmp()

int Chusov::String::ucpsCmp ( const ucp_t pszStr1,
const ucp_t pszStr2 
)
noexcept

Lexicographically compares two strings of Unicode code points.

Parameters
pszStr1A zero-terminated string that is the first (left) comparand.
pszStr2A zero-terminated string that is the second (right) comparand.
Returns
A negative value, if pszStr1 is lexicographically less than pszStr2, 0, if the strings are equal, and a positive value, if pszStr1 is lexicographically greater than pszStr2.
Remarks
The function repeats the functionality of the standard strcmp function but works with ucp_t characters.