1WCSCASECMP(3P)             POSIX Programmer's Manual            WCSCASECMP(3P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       wcscasecmp, wcscasecmp_l, wcsncasecmp, wcsncasecmp_l — case-insensitive
13       wide-character string comparison
14

SYNOPSIS

16       #include <wchar.h>
17
18       int wcscasecmp(const wchar_t *ws1, const wchar_t *ws2);
19       int wcscasecmp_l(const wchar_t *ws1, const wchar_t *ws2,
20           locale_t locale);
21       int wcsncasecmp(const wchar_t *ws1, const wchar_t *ws2, size_t n);
22       int wcsncasecmp_l(const wchar_t *ws1, const wchar_t *ws2,
23           size_t n, locale_t locale);
24

DESCRIPTION

26       The  wcscasecmp()  and  wcsncasecmp()  functions are the wide-character
27       equivalent of the strcasecmp()  and  strncasecmp()  functions,  respec‐
28       tively.
29
30       The  wcscasecmp()  and  wcscasecmp_l()  functions  shall compare, while
31       ignoring differences in case, the wide-character string pointed  to  by
32       ws1 to the wide-character string pointed to by ws2.
33
34       The  wcsncasecmp()  and  wcsncasecmp_l() functions shall compare, while
35       ignoring differences in case, not more than n wide-characters from  the
36       wide-character  string  pointed  to by ws1 to the wide-character string
37       pointed to by ws2.
38
39       The wcscasecmp() and wcsncasecmp() functions use the current locale  to
40       determine the case of the wide characters.
41
42       The  wcscasecmp_l() and wcsncasecmp_l() functions use the locale repre‐
43       sented by locale to determine the case of the wide characters.
44
45       When the LC_CTYPE category of the locale being used is from  the  POSIX
46       locale,  these  functions shall behave as if the wide-character strings
47       had been converted to lowercase and then a comparison of wide-character
48       codes performed.  Otherwise, the results are unspecified.
49
50       The  information  for wcscasecmp_l() and wcsncasecmp_l() about the case
51       of the characters comes from the locale represented by locale.
52
53       The behavior is undefined if the locale argument to  wcscasecmp_l()  or
54       wcsncasecmp_l() is the special locale object LC_GLOBAL_LOCALE or is not
55       a valid locale object handle.
56

RETURN VALUE

58       Upon completion, the wcscasecmp() and  wcscasecmp_l()  functions  shall
59       return  an  integer greater than, equal to, or less than 0 if the wide-
60       character string pointed to by ws1 is,  ignoring  case,  greater  than,
61       equal  to,  or  less  than the wide-character string pointed to by ws2,
62       respectively.
63
64       Upon completion, the wcsncasecmp() and wcsncasecmp_l() functions  shall
65       return  an integer greater than, equal to, or less than 0 if the possi‐
66       bly null wide-character terminated string pointed to by ws1 is,  ignor‐
67       ing  case, greater than, equal to, or less than the possibly null wide-
68       character terminated string pointed to by ws2, respectively.
69
70       No return values are reserved to indicate an error.
71

ERRORS

73       No errors are defined.
74
75       The following sections are informative.
76

EXAMPLES

78       None.
79

APPLICATION USAGE

81       None.
82

RATIONALE

84       None.
85

FUTURE DIRECTIONS

87       None.
88

SEE ALSO

90       strcasecmp(), wcscmp(), wcsncmp()
91
92       The Base Definitions volume of POSIX.1‐2017, <wchar.h>
93
95       Portions of this text are reprinted and reproduced in  electronic  form
96       from  IEEE Std 1003.1-2017, Standard for Information Technology -- Por‐
97       table Operating System Interface (POSIX), The Open Group Base  Specifi‐
98       cations  Issue  7, 2018 Edition, Copyright (C) 2018 by the Institute of
99       Electrical and Electronics Engineers, Inc and The Open Group.   In  the
100       event of any discrepancy between this version and the original IEEE and
101       The Open Group Standard, the original IEEE and The Open Group  Standard
102       is  the  referee document. The original Standard can be obtained online
103       at http://www.opengroup.org/unix/online.html .
104
105       Any typographical or formatting errors that appear  in  this  page  are
106       most likely to have been introduced during the conversion of the source
107       files to man page format. To report such errors,  see  https://www.ker
108       nel.org/doc/man-pages/reporting_bugs.html .
109
110
111
112IEEE/The Open Group                  2017                       WCSCASECMP(3P)
Impressum