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
11

NAME

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

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

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

ERRORS

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

EXAMPLES

79       None.
80

APPLICATION USAGE

82       None.
83

RATIONALE

85       None.
86

FUTURE DIRECTIONS

88       None.
89

SEE ALSO

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