]> git.saurik.com Git - apple/libc.git/blob - locale/FreeBSD/wctype.3.patch
Libc-763.11.tar.gz
[apple/libc.git] / locale / FreeBSD / wctype.3.patch
1 --- wctype.3.bsdnew 2009-11-10 13:13:11.000000000 -0800
2 +++ wctype.3 2009-11-10 14:11:00.000000000 -0800
3 @@ -28,21 +28,42 @@
4 .Dt WCTYPE 3
5 .Os
6 .Sh NAME
7 -.Nm iswctype , wctype
8 +.Nm iswctype ,
9 +.Nm iswctype_l ,
10 +.Nm wctype ,
11 +.Nm wctype_l
12 .Nd "wide character class functions"
13 .Sh LIBRARY
14 .Lb libc
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
23 .Ft wctype_t
24 -.Fn wctype "const char *property"
25 +.Fo wctype
26 +.Fa "const char *property"
27 +.Fc
28 +.In wctype.h
29 +.In xlocale.h
30 +.Ft int
31 +.Fo iswctype_l
32 +.Fa "wint_t wc"
33 +.Fa "wctype_t charclass"
34 +.Fa "locale_t loc"
35 +.Fc
36 +.Ft wctype_t
37 +.Fo wctype_l
38 +.Fa "const char *property"
39 +.Fa "locale_t loc"
40 +.Fc
41 .Sh DESCRIPTION
42 The
43 .Fn wctype
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 .
50 @@ -60,6 +81,18 @@ function checks whether the wide charact
51 .Fa wc
52 is in the character class
53 .Fa charclass .
54 +.Pp
55 +Although the
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
69 @@ -75,7 +108,7 @@ The
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 .
78 @@ -95,7 +128,8 @@ myiswalpha(wint_t wc)
79 .Ed
80 .Sh SEE ALSO
81 .Xr ctype 3 ,
82 -.Xr nextwctype 3
83 +.Xr nextwctype 3 ,
84 +.Xr xlocale 3
85 .Sh STANDARDS
86 The
87 .Fn iswctype