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

wctype.3p (3911B)


  1. '\" et
  2. .TH WCTYPE "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. wctype,
  12. wctype_l
  13. \(em define character class
  14. .SH SYNOPSIS
  15. .LP
  16. .nf
  17. #include <wctype.h>
  18. .P
  19. wctype_t wctype(const char *\fIproperty\fP);
  20. wctype_t wctype_l(const char *\fIproperty\fP, locale_t \fIlocale\fP);
  21. .fi
  22. .SH DESCRIPTION
  23. For
  24. \fIwctype\fR():
  25. The functionality described on this reference page is aligned with the
  26. ISO\ C standard. Any conflict between the requirements described here and the
  27. ISO\ C standard is unintentional. This volume of POSIX.1\(hy2017 defers to the ISO\ C standard.
  28. .P
  29. The
  30. \fIwctype\fR()
  31. and
  32. \fIwctype_l\fR()
  33. functions are defined for valid character class names as defined
  34. in the current locale
  35. or in the locale represented by
  36. .IR locale ,
  37. respectively.
  38. .P
  39. The
  40. .IR property
  41. argument is a string identifying a generic character class for which
  42. codeset-specific type information is required. The following character
  43. class names shall be defined in all locales:
  44. .sp
  45. .RS
  46. .TS
  47. tab(!);
  48. lB lB lB.
  49. T{
  50. .nf
  51. alnum
  52. alpha
  53. blank
  54. cntrl
  55. T}!T{
  56. .nf
  57. digit
  58. graph
  59. lower
  60. print
  61. T}!T{
  62. .nf
  63. punct
  64. space
  65. upper
  66. xdigit
  67. .fi
  68. T}
  69. .TE
  70. .RE
  71. .P
  72. Additional character class names defined in the locale definition file
  73. (category
  74. .IR LC_CTYPE )
  75. can also be specified.
  76. .P
  77. These functions shall return a value of type
  78. .BR wctype_t ,
  79. which can be used as the second argument to subsequent calls of
  80. \fIiswctype\fR()
  81. and
  82. \fIiswctype_l\fR().
  83. .P
  84. The
  85. \fIwctype\fR()
  86. and
  87. \fIwctype_l\fR()
  88. functions shall determine values of
  89. .BR wctype_t
  90. according to the rules of the coded character set defined by character
  91. type information in the current locale
  92. or in the locale represented by
  93. .IR locale ,
  94. respectively (category
  95. .IR LC_CTYPE ).
  96. .P
  97. The values returned by
  98. \fIwctype\fR()
  99. shall be valid until a call to
  100. \fIsetlocale\fR()
  101. that modifies the category
  102. .IR LC_CTYPE .
  103. .P
  104. The values returned by
  105. \fIwctype_l\fR()
  106. shall be valid only in calls to
  107. \fIiswctype_l\fR()
  108. with a locale represented by
  109. .IR locale
  110. with the same
  111. .IR LC_CTYPE
  112. category value.
  113. .P
  114. The behavior is undefined if the
  115. .IR locale
  116. argument to
  117. \fIwctype_l\fR()
  118. is the special locale object LC_GLOBAL_LOCALE or is not a valid locale
  119. object handle.
  120. .SH "RETURN VALUE"
  121. The
  122. \fIwctype\fR()
  123. and
  124. \fIwctype_l\fR()
  125. functions shall return 0 if the given character class name is not
  126. valid for the current locale (category
  127. .IR LC_CTYPE );
  128. otherwise, they shall return an object of type
  129. .BR wctype_t
  130. that can be used in calls to
  131. \fIiswctype\fR()
  132. and
  133. \fIiswctype_l\fR().
  134. .SH ERRORS
  135. No errors are defined.
  136. .LP
  137. .IR "The following sections are informative."
  138. .SH EXAMPLES
  139. None.
  140. .SH "APPLICATION USAGE"
  141. None.
  142. .SH RATIONALE
  143. None.
  144. .SH "FUTURE DIRECTIONS"
  145. None.
  146. .SH "SEE ALSO"
  147. .IR "\fIiswctype\fR\^(\|)"
  148. .P
  149. The Base Definitions volume of POSIX.1\(hy2017,
  150. .IR "\fB<wctype.h>\fP"
  151. .\"
  152. .SH COPYRIGHT
  153. Portions of this text are reprinted and reproduced in electronic form
  154. from IEEE Std 1003.1-2017, Standard for Information Technology
  155. -- Portable Operating System Interface (POSIX), The Open Group Base
  156. Specifications Issue 7, 2018 Edition,
  157. Copyright (C) 2018 by the Institute of
  158. Electrical and Electronics Engineers, Inc and The Open Group.
  159. In the event of any discrepancy between this version and the original IEEE and
  160. The Open Group Standard, the original IEEE and The Open Group Standard
  161. is the referee document. The original Standard can be obtained online at
  162. http://www.opengroup.org/unix/online.html .
  163. .PP
  164. Any typographical or formatting errors that appear
  165. in this page are most likely
  166. to have been introduced during the conversion of the source files to
  167. man page format. To report such errors, see
  168. https://www.kernel.org/doc/man-pages/reporting_bugs.html .