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

NAME

6       wctype - define character class
7

SYNOPSIS

9       #include <wctype.h>
10
11       wctype_t wctype(const char *property);
12
13

DESCRIPTION

15       The  wctype()  function  is  defined for valid character class names as
16       defined in the current locale. The property argument is a string  iden‐
17       tifying  a  generic  character  class  for  which codeset-specific type
18       information is required. The following character class names  shall  be
19       defined in all locales:
20
21
22 alnum                        digit                        punct
23 alpha                        graph                        space
24 blank                        lower                        upper
25 cntrl                        print                        xdigit
26
27
28       Additional  character class names defined in the locale definition file
29       (category LC_CTYPE ) can also be specified.
30
31       The function shall return a value of type wctype_t, which can  be  used
32       as the second argument to subsequent calls of iswctype().  The wctype()
33       function shall determine values of wctype_t according to the  rules  of
34       the  coded  character  set defined by character type information in the
35       program's locale (category LC_CTYPE ). The values returned by  wctype()
36       shall  be  valid until a call to setlocale() that modifies the category
37       LC_CTYPE .
38

RETURN VALUE

40       The wctype() function shall return 0 if the given character class  name
41       is not valid for the current locale (category LC_CTYPE ); otherwise, it
42       shall return an object of type wctype_t that can be used  in  calls  to
43       iswctype().
44

ERRORS

46       No errors are defined.
47
48       The following sections are informative.
49

EXAMPLES

51       None.
52

APPLICATION USAGE

54       None.
55

RATIONALE

57       None.
58

FUTURE DIRECTIONS

60       None.
61

SEE ALSO

63       iswctype()  ,  the  Base  Definitions  volume  of IEEE Std 1003.1-2001,
64       <wctype.h>
65
67       Portions of this text are reprinted and reproduced in  electronic  form
68       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
69       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
70       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
71       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
72       event of any discrepancy between this version and the original IEEE and
73       The Open Group Standard, the original IEEE and The Open Group  Standard
74       is  the  referee document. The original Standard can be obtained online
75       at http://www.opengroup.org/unix/online.html .
76
77
78
79IEEE/The Open Group                  2003                            WCTYPE(P)
Impressum