Next: Normalization of streams of Unicode characters, Previous: Normalization of strings, Up: Normalization forms (composition and decomposition) <uninorm.h>
[Contents][Index]
The following functions compare Unicode string, ignoring differences in normalization.
Compares s1 and s2, ignoring differences in normalization.
nf must be either UNINORM_NFD
or UNINORM_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 with errno
set.
Converts the string s of length n to a NUL-terminated byte
sequence, in such a way that comparing u8_normxfrm (s1)
and
u8_normxfrm (s2)
with the u8_cmp2
function is equivalent to
comparing s1 and s2 with the u8_normcoll
function.
nf must be either UNINORM_NFC
or UNINORM_NFKC
.
The resultbuf and lengthp arguments are as described in chapter Conventions.
Compares s1 and s2, ignoring differences in normalization, using the collation rules of the current locale.
nf must be either UNINORM_NFC
or UNINORM_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 with errno
set.