Print this page
Garrett's man page edits.
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man3c/wctype.3c
+++ new/usr/src/man/man3c/wctype.3c
1 1 '\" te
2 +.\" Copyright 2014 Garrett D'Amore <garrett@damore.org>
2 3 .\" Copyright (c) 1992, X/Open Company Limited All Rights Reserved Portions Copyright (c) 2002, Sun Microsystems, Inc. All Rights Reserved
3 4 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
4 5 .\" http://www.opengroup.org/bookstore/.
5 6 .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
6 7 .\" This notice shall appear on any product containing this material.
7 8 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
8 9 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
9 10 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
10 -.TH WCTYPE 3C "Aug 14, 2002"
11 +.TH WCTYPE 3C "Jun 25, 2014"
11 12 .SH NAME
12 13 wctype, wctype_l \- define character class
13 14 .SH SYNOPSIS
14 15 .LP
15 16 .nf
16 17 #include <wchar.h>
17 18
18 19 \fBwctype_t\fR \fBwctype\fR(\fBconst char *\fR\fIcharclass\fR);
20 +.fi
21 +.LP
22 +.nf
19 23 \fBwctype_t\fR \fBwctype_l\fR(\fBconst char *\fR\fIcharclass\fR, \fBlocale_t\fR \fIloc\fR);
20 24 .fi
21 25
22 26 .SH DESCRIPTION
23 -.sp
24 27 .LP
25 28 The \fBwctype()\fR function is defined for valid character class names as
26 29 defined in the current locale. The \fIcharclass\fR is a string identifying a
27 30 generic character class for which codeset-specific type information is
28 31 required. The following character class names are defined in all locales:
29 -.sp
30 -
31 -.sp
32 +.IP
32 33 .TS
33 34 l l l
34 35 l l l .
35 -alnum alpha blank
36 -cntrl digit graph
37 -lower print punct
38 -space upper xdigit
36 +"alnum" "alpha" "blank"
37 +"cntrl" "digit" "graph"
38 +"lower" "print" "punct"
39 +"space" "upper" "xdigit"
39 40 .TE
40 41
41 -.sp
42 42 .LP
43 43 Additional character class names defined in the locale definition file
44 44 (category \fBLC_CTYPE\fR) can also be specified.
45 -.sp
46 45 .LP
47 46 The function returns a value of type \fBwctype_t\fR, which can be used as the
48 -second argument to subsequent calls of \fBiswctype\fR(3C). \fBwctype()\fR
49 -determines values of \fBwctype_t\fR according to the rules of the coded
50 -character set defined by character type information in the program's locale
47 +second argument to subsequent calls of \fBiswctype\fR(3C). The \fBwctype()\fR
48 +function determines values of \fBwctype_t\fR according to the rules of the coded
49 +character set defined by character type information in the current locale
51 50 (category \fBLC_CTYPE\fR). The values returned by \fBwctype()\fR are valid
52 -until a call to \fBsetlocale\fR(3C) that modifies the category \fBLC_CTYPE\fR.
53 -.sp
51 +only in the locale, or locales with the same \fBLC_CTYPE\fR category.
54 52 .LP
55 53 The function \fBwctype_l()\fR behaves identically to \fBwctype()\fR, except
56 -instead of operating in the current environemtn, it operates in the environment
54 +instead of operating in the current locale, it operates in the locale
57 55 specified by \fIloc\fR.
58 56 .SH RETURN VALUES
59 -.sp
60 57 .LP
61 -The \fBwctype()\fR function returns \fB0\fR if the given character class name
62 -is not valid for the current locale (category \fBLC_CTYPE\fR); otherwise it
58 +These functions return \fB0\fR if the given character class name
59 +is not valid for the locale (category \fBLC_CTYPE\fR); otherwise it
63 60 returns an object of type \fBwctype_t\fR that can be used in calls to
64 -\fBiswctype()\fR.
61 +\fBiswctype\fR(3C).
65 62 .SH ATTRIBUTES
66 -.sp
67 63 .LP
68 64 See \fBattributes\fR(5) for descriptions of the following attributes:
69 -.sp
70 -
71 -.sp
72 65 .TS
73 66 box;
74 67 c | c
75 68 l | l .
76 69 ATTRIBUTE TYPE ATTRIBUTE VALUE
77 70 _
78 71 CSI Enabled
79 72 _
80 73 Interface Stability Standard
81 74 _
82 -MT-Level MT-Safe with exceptions
75 +MT-Level MT-Safe
83 76 .TE
84 77
85 78 .SH SEE ALSO
86 -.sp
87 79 .LP
88 -\fBiswctype\fR(3C), \fBsetlocale\fR(3C), \fBattributes\fR(5),
80 +\fBiswctype\fR(3C), \fBnewlocale\fR(3C), \fBsetlocale\fR(3C),
81 +\fBuselocale\fR(3C),
82 +\fBattributes\fR(5),
89 83 \fBstandards\fR(5)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX