Print this page
2964 need POSIX 2008 locale object support
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Approved by: TBD

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      -wctype \- define character class
       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);
  19   20  .fi
       21 +.LP
       22 +.nf
       23 +\fBwctype_t\fR \fBwctype_l\fR(\fBconst char *\fR\fIcharclass\fR, \fBlocale_t\fR \fIloc\fR);
       24 +.fi
  20   25  
  21   26  .SH DESCRIPTION
  22      -.sp
  23   27  .LP
  24   28  The \fBwctype()\fR function is defined for valid character class names as
  25   29  defined in the current locale. The \fIcharclass\fR is a string identifying a
  26   30  generic character class for which codeset-specific type information is
  27   31  required. The following character class names are defined in all locales:
  28      -.sp
  29      -
  30      -.sp
       32 +.IP
  31   33  .TS
  32   34  l l l
  33   35  l l l .
  34      -alnum   alpha   blank
  35      -cntrl   digit   graph
  36      -lower   print   punct
  37      -space   upper   xdigit
       36 +"alnum" "alpha" "blank"
       37 +"cntrl" "digit" "graph"
       38 +"lower" "print" "punct"
       39 +"space" "upper" "xdigit"
  38   40  .TE
  39   41  
  40      -.sp
  41   42  .LP
  42   43  Additional character class names defined in the locale definition file
  43   44  (category \fBLC_CTYPE\fR) can also be specified.
  44      -.sp
  45   45  .LP
  46   46  The function returns a value of type \fBwctype_t\fR, which can be used as the
  47      -second argument to subsequent calls of \fBiswctype\fR(3C). \fBwctype()\fR
  48      -determines values of \fBwctype_t\fR according to the rules of the coded
  49      -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
  50   50  (category \fBLC_CTYPE\fR). The values returned by \fBwctype()\fR are valid
  51      -until a call to \fBsetlocale\fR(3C) that modifies the category \fBLC_CTYPE\fR.
       51 +only in the locale, or locales with the same \fBLC_CTYPE\fR category.
       52 +.LP
       53 +The function \fBwctype_l()\fR behaves identically to \fBwctype()\fR, except
       54 +instead of operating in the current locale, it operates in the locale
       55 +specified by \fIloc\fR.
  52   56  .SH RETURN VALUES
  53      -.sp
  54   57  .LP
  55      -The \fBwctype()\fR function returns \fB0\fR if the given character class name
  56      -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
  57   60  returns an object of type \fBwctype_t\fR that can be used in calls to
  58      -\fBiswctype()\fR.
       61 +\fBiswctype\fR(3C).
  59   62  .SH ATTRIBUTES
  60      -.sp
  61   63  .LP
  62   64  See \fBattributes\fR(5) for descriptions of the following attributes:
  63      -.sp
  64      -
  65      -.sp
  66   65  .TS
  67   66  box;
  68   67  c | c
  69   68  l | l .
  70   69  ATTRIBUTE TYPE  ATTRIBUTE VALUE
  71   70  _
  72   71  CSI     Enabled
  73   72  _
  74   73  Interface Stability     Standard
  75   74  _
  76      -MT-Level        MT-Safe with exceptions
       75 +MT-Level        MT-Safe
  77   76  .TE
  78   77  
  79   78  .SH SEE ALSO
  80      -.sp
  81   79  .LP
  82      -\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),
  83   83  \fBstandards\fR(5)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX