]>
Commit | Line | Data |
---|---|---|
1f2f436a A |
1 | --- wctype.3.bsdnew 2009-11-10 13:13:11.000000000 -0800 |
2 | +++ wctype.3 2009-11-10 14:11:00.000000000 -0800 | |
224c7076 | 3 | @@ -28,21 +28,42 @@ |
3d9156a7 A |
4 | .Dt WCTYPE 3 |
5 | .Os | |
6 | .Sh NAME | |
7 | -.Nm iswctype , wctype | |
224c7076 A |
8 | +.Nm iswctype , |
9 | +.Nm iswctype_l , | |
10 | +.Nm wctype , | |
11 | +.Nm wctype_l | |
3d9156a7 A |
12 | .Nd "wide character class functions" |
13 | .Sh LIBRARY | |
14 | .Lb libc | |
224c7076 A |
15 | .Sh SYNOPSIS |
16 | .In wctype.h | |
17 | .Ft int | |
18 | -.Fn iswctype "wint_t wc" "wctype_t charclass" | |
19 | +.Fo iswctype | |
20 | +.Fa "wint_t wc" | |
21 | +.Fa "wctype_t charclass" | |
22 | +.Fc | |
3d9156a7 | 23 | .Ft wctype_t |
224c7076 A |
24 | -.Fn wctype "const char *property" |
25 | +.Fo wctype | |
26 | +.Fa "const char *property" | |
27 | +.Fc | |
28 | +.In wctype.h | |
3d9156a7 A |
29 | +.In xlocale.h |
30 | +.Ft int | |
224c7076 A |
31 | +.Fo iswctype_l |
32 | +.Fa "wint_t wc" | |
33 | +.Fa "wctype_t charclass" | |
34 | +.Fa "locale_t loc" | |
35 | +.Fc | |
3d9156a7 | 36 | +.Ft wctype_t |
224c7076 A |
37 | +.Fo wctype_l |
38 | +.Fa "const char *property" | |
39 | +.Fa "locale_t loc" | |
40 | +.Fc | |
3d9156a7 A |
41 | .Sh DESCRIPTION |
42 | The | |
43 | .Fn wctype | |
224c7076 A |
44 | function returns a value of type |
45 | -.Vt wctype_t | |
46 | +.Vt wctype_t , | |
47 | which represents the requested wide character class and | |
48 | may be used as the second argument for calls to | |
49 | .Fn iswctype . | |
1f2f436a | 50 | @@ -60,6 +81,18 @@ function checks whether the wide charact |
3d9156a7 A |
51 | .Fa wc |
52 | is in the character class | |
53 | .Fa charclass . | |
54 | +.Pp | |
224c7076 | 55 | +Although the |
3d9156a7 A |
56 | +.Fn iswctype |
57 | +and | |
58 | +.Fn wctype | |
59 | +functions use the current locale, the | |
60 | +.Fn iswctype_l | |
61 | +and | |
62 | +.Fn wctype_l | |
63 | +functions may be passed locales directly. See | |
64 | +.Xr xlocale 3 | |
65 | +for more information. | |
66 | .Sh RETURN VALUES | |
67 | The | |
68 | .Fn iswctype | |
1f2f436a | 69 | @@ -75,7 +108,7 @@ The |
224c7076 A |
70 | .Fn wctype |
71 | function returns 0 if | |
72 | .Fa property | |
73 | -is invalid, otherwise it returns a value of type | |
74 | +is invalid; otherwise, it returns a value of type | |
75 | .Vt wctype_t | |
76 | that can be used in subsequent calls to | |
77 | .Fn iswctype . | |
1f2f436a | 78 | @@ -95,7 +128,8 @@ myiswalpha(wint_t wc) |
3d9156a7 A |
79 | .Ed |
80 | .Sh SEE ALSO | |
1f2f436a A |
81 | .Xr ctype 3 , |
82 | -.Xr nextwctype 3 | |
83 | +.Xr nextwctype 3 , | |
3d9156a7 A |
84 | +.Xr xlocale 3 |
85 | .Sh STANDARDS | |
86 | The | |
87 | .Fn iswctype |