2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2014 Garrett D'Amore <garrett@damore.org>
22 .Nd case-insensitive wide-character string comparison
28 .Fa "const wchar_t *ws1"
29 .Fa "const wchar_t *ws2"
34 .Fa "const wchar_t *ws1"
35 .Fa "const wchar_t *ws2"
41 .Fa "const wchar_t *ws1"
42 .Fa "const wchar_t *ws2"
48 .Fa "const wchar_t *ws1"
49 .Fa "const wchar_t *ws2"
54 These functions perform case-insensitive comparison of wide-character
59 Pairs of wide-characters from each of
63 are compared consecutively, ignoring differences in case (if the
64 .\"POSIX\." locale upper case characters are treated as lower case). If
65 the two values are different, the comparision stops and either
66 a negative value is returned if the character from
68 is less than that from
70 or a positive is returned if the character from
72 is greater than that from
74 The comparison also stops if both characters are null wide-characters,
81 comparisons have been made without finding a difference. In either of
82 these two cases, 0 is returned.
90 category of the current locale to determine case. The
96 category of the locale pointed to by
104 results in undefined behavior.
112 functions are the wide-character equivalents of the
118 functions, respectively.
120 These functions return a negative value if, ignoring case,
124 or a positive value if
135 .Sh INTERFACE STABILITY
143 .Xr strcasecmp_l 3C ,
145 .Xr strncasecmp_l 3C ,
157 functions were introduced in