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 "POSIX" locale
64 upper case characters are treated as lower case).
65 If the two values are different, the comparison stops and either a negative
66 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.
82 In either of these two cases, 0 is returned.
90 category of the current locale to determine case.
97 category of the locale pointed to by
105 results in undefined behavior.
113 functions are the wide-character equivalents of the
119 functions, respectively.
121 These functions return a negative value if, ignoring case,
125 or a positive value if
136 .Sh INTERFACE STABILITY
144 .Xr strcasecmp_l 3C ,
146 .Xr strncasecmp_l 3C ,
158 functions were introduced in