1WCTYPE(3P) POSIX Programmer's Manual WCTYPE(3P)
2
3
4
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
12 wctype - define character class
13
15 #include <wctype.h>
16
17 wctype_t wctype(const char *property);
18
19
21 The wctype() function is defined for valid character class names as
22 defined in the current locale. The property argument is a string iden‐
23 tifying a generic character class for which codeset-specific type
24 information is required. The following character class names shall be
25 defined in all locales:
26
27
28 alnum digit punct
29 alpha graph space
30 blank lower upper
31 cntrl print xdigit
32
33
34 Additional character class names defined in the locale definition file
35 (category LC_CTYPE ) can also be specified.
36
37 The function shall return a value of type wctype_t, which can be used
38 as the second argument to subsequent calls of iswctype(). The wctype()
39 function shall determine values of wctype_t according to the rules of
40 the coded character set defined by character type information in the
41 program's locale (category LC_CTYPE ). The values returned by wctype()
42 shall be valid until a call to setlocale() that modifies the category
43 LC_CTYPE .
44
46 The wctype() function shall return 0 if the given character class name
47 is not valid for the current locale (category LC_CTYPE ); otherwise, it
48 shall return an object of type wctype_t that can be used in calls to
49 iswctype().
50
52 No errors are defined.
53
54 The following sections are informative.
55
57 None.
58
60 None.
61
63 None.
64
66 None.
67
69 iswctype(), the Base Definitions volume of IEEE Std 1003.1-2001,
70 <wctype.h>
71
73 Portions of this text are reprinted and reproduced in electronic form
74 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
75 -- Portable Operating System Interface (POSIX), The Open Group Base
76 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
77 Electrical and Electronics Engineers, Inc and The Open Group. In the
78 event of any discrepancy between this version and the original IEEE and
79 The Open Group Standard, the original IEEE and The Open Group Standard
80 is the referee document. The original Standard can be obtained online
81 at http://www.opengroup.org/unix/online.html .
82
83
84
85IEEE/The Open Group 2003 WCTYPE(3P)