logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

wcscasecmp.3p (4401B)


  1. '\" et
  2. .TH WCSCASECMP "3P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. wcscasecmp,
  12. wcscasecmp_l,
  13. wcsncasecmp,
  14. wcsncasecmp_l
  15. \(em case-insensitive wide-character string comparison
  16. .SH SYNOPSIS
  17. .LP
  18. .nf
  19. #include <wchar.h>
  20. .P
  21. int wcscasecmp(const wchar_t *\fIws1\fP, const wchar_t *\fIws2\fP);
  22. int wcscasecmp_l(const wchar_t *\fIws1\fP, const wchar_t *\fIws2\fP,
  23. locale_t \fIlocale\fP);
  24. int wcsncasecmp(const wchar_t *\fIws1\fP, const wchar_t *\fIws2\fP, size_t \fIn\fP);
  25. int wcsncasecmp_l(const wchar_t *\fIws1\fP, const wchar_t *\fIws2\fP,
  26. size_t \fIn\fP, locale_t \fIlocale\fP);
  27. .fi
  28. .SH DESCRIPTION
  29. The
  30. \fIwcscasecmp\fR()
  31. and
  32. \fIwcsncasecmp\fR()
  33. functions are the wide-character equivalent of the
  34. \fIstrcasecmp\fR()
  35. and
  36. \fIstrncasecmp\fR()
  37. functions, respectively.
  38. .P
  39. The
  40. \fIwcscasecmp\fR()
  41. and
  42. \fIwcscasecmp_l\fR()
  43. functions shall compare, while ignoring differences in case, the
  44. wide-character string pointed to by
  45. .IR ws1
  46. to the wide-character string pointed to by
  47. .IR ws2 .
  48. .P
  49. The
  50. \fIwcsncasecmp\fR()
  51. and
  52. \fIwcsncasecmp_l\fR()
  53. functions shall compare, while ignoring differences in case, not more
  54. than
  55. .IR n
  56. wide-characters from the wide-character string pointed to by
  57. .IR ws1
  58. to the wide-character string pointed to by
  59. .IR ws2 .
  60. .P
  61. The
  62. \fIwcscasecmp\fR()
  63. and
  64. \fIwcsncasecmp\fR()
  65. functions use the current locale to determine the case of the wide
  66. characters.
  67. .P
  68. The
  69. \fIwcscasecmp_l\fR()
  70. and
  71. \fIwcsncasecmp_l\fR()
  72. functions use the locale represented by
  73. .IR locale
  74. to determine the case of the wide characters.
  75. .P
  76. When the
  77. .IR LC_CTYPE
  78. category of the locale being used is from the POSIX locale, these
  79. functions shall behave as if the wide-character strings had been converted
  80. to lowercase and then a comparison of wide-character codes performed.
  81. Otherwise, the results are unspecified.
  82. .P
  83. The information for
  84. \fIwcscasecmp_l\fR()
  85. and
  86. \fIwcsncasecmp_l\fR()
  87. about the case of the characters comes from the locale represented by
  88. .IR locale .
  89. .P
  90. The behavior is undefined if the
  91. .IR locale
  92. argument to
  93. \fIwcscasecmp_l\fR()
  94. or
  95. \fIwcsncasecmp_l\fR()
  96. is the special locale object LC_GLOBAL_LOCALE or is not a valid locale
  97. object handle.
  98. .SH "RETURN VALUE"
  99. Upon completion, the
  100. \fIwcscasecmp\fR()
  101. and
  102. \fIwcscasecmp_l\fR()
  103. functions shall return an integer greater than, equal to, or less than 0
  104. if the wide-character string pointed to by
  105. .IR ws1
  106. is, ignoring case, greater than, equal to, or less than the
  107. wide-character string pointed to by
  108. .IR ws2 ,
  109. respectively.
  110. .P
  111. Upon completion, the
  112. \fIwcsncasecmp\fR()
  113. and
  114. \fIwcsncasecmp_l\fR()
  115. functions shall return an integer greater than, equal to, or less than 0
  116. if the possibly null wide-character terminated string pointed to by
  117. .IR ws1
  118. is, ignoring case, greater than, equal to, or less than the possibly
  119. null wide-character terminated string pointed to by
  120. .IR ws2 ,
  121. respectively.
  122. .P
  123. No return values are reserved to indicate an error.
  124. .SH ERRORS
  125. No errors are defined.
  126. .LP
  127. .IR "The following sections are informative."
  128. .SH EXAMPLES
  129. None.
  130. .SH "APPLICATION USAGE"
  131. None.
  132. .SH RATIONALE
  133. None.
  134. .SH "FUTURE DIRECTIONS"
  135. None.
  136. .SH "SEE ALSO"
  137. .IR "\fIstrcasecmp\fR\^(\|)",
  138. .IR "\fIwcscmp\fR\^(\|)",
  139. .IR "\fIwcsncmp\fR\^(\|)"
  140. .P
  141. The Base Definitions volume of POSIX.1\(hy2017,
  142. .IR "\fB<wchar.h>\fP"
  143. .\"
  144. .SH COPYRIGHT
  145. Portions of this text are reprinted and reproduced in electronic form
  146. from IEEE Std 1003.1-2017, Standard for Information Technology
  147. -- Portable Operating System Interface (POSIX), The Open Group Base
  148. Specifications Issue 7, 2018 Edition,
  149. Copyright (C) 2018 by the Institute of
  150. Electrical and Electronics Engineers, Inc and The Open Group.
  151. In the event of any discrepancy between this version and the original IEEE and
  152. The Open Group Standard, the original IEEE and The Open Group Standard
  153. is the referee document. The original Standard can be obtained online at
  154. http://www.opengroup.org/unix/online.html .
  155. .PP
  156. Any typographical or formatting errors that appear
  157. in this page are most likely
  158. to have been introduced during the conversion of the source files to
  159. man page format. To report such errors, see
  160. https://www.kernel.org/doc/man-pages/reporting_bugs.html .