The following functions compare Unicode string, ignoring differences in normalization.
Compares s1 and s2, ignoring differences in normalization.
nf must be either
UNINORM_NFDorUNINORM_NFKD.If successful, sets
*resultp to -1 if s1 < s2, 0 if s1 = s2, 1 if s1 > s2, and returns 0. Upon failure, returns -1 witherrnoset.
Converts the string s of length n to a NUL-terminated byte sequence, in such a way that comparing
u8_normxfrm (s1)andu8_normxfrm (s2)with theu8_cmp2function is equivalent to comparing s1 and s2 with theu8_normcollfunction.nf must be either
UNINORM_NFCorUNINORM_NFKC.
Compares s1 and s2, ignoring differences in normalization, using the collation rules of the current locale.
nf must be either
UNINORM_NFCorUNINORM_NFKC.If successful, sets
*resultp to -1 if s1 < s2, 0 if s1 = s2, 1 if s1 > s2, and returns 0. Upon failure, returns -1 witherrnoset.