wctype(3c) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

wctype(3c)

wctype(3C)               Standard C Library Functions               wctype(3C)

NAME
       wctype, wctype_l - define character class

SYNOPSIS
       #include <wchar.h>

       wctype_t wctype(const char *charclass);

       wctype_t wctype_l(const char *charclass, locale_t locale);

DESCRIPTION
       The  wctype()  and wctype_l() functions are defined for valid character
       class names as defined in the current locale or in  the  locale  repre‐
       sented by locale, respectively. The charclass is a string identifying a
       generic  character class for which codeset-specific type information is
       required. The following character class names are defined  in  all  lo‐
       cales:

       tab();  lw(1.83i)  lw(1.83i)  lw(1.83i) alnumalphablank cntrldigitgraph
       lowerprintpunct spaceupperxdigit



       Additional character class names defined in the locale definition  file
       (category  LC_CTYPE)  can  also  be  specified.  For  example,  see the
       wctype_ja(3C) man page for additional character class names defined  in
       Japanese locales.


       These  functions  return a value of type wctype_t, which can be used as
       the second argument to  subsequent  calls  of  iswctype(3C)  and  iswc‐
       type_l(3C).


       The  wctype() and wctype_l() functions determine values of wctype_t ac‐
       cording to the rules of the coded character set  defined  by  character
       type information in the current locale or the locale represented by lo‐
       cale (category LC_CTYPE).


       The values returned by wctype() are valid until a call to setlocale(3C)
       that modifies the category LC_CTYPE.


       The  values  returned  by  wctype_l()  are valid only in calls to iswc‐
       type_l() with a locale represented by locale  with  the  same  LC_CTYPE
       category value.


       The  behavior  is undefined if the locale argument to wctype_l() is the
       special locale object LC_GLOBAL_LOCALE or is not a valid locale  object
       handle.

RETURN VALUES
       The  wctype()  and wctype_l() functions return 0 if the given character
       class name is not valid for the current locale or for the locale repre‐
       sented by locale, respectively (category LC_CTYPE); otherwise they  re‐
       turn an object of type wctype_t that can be used in calls to iswctype()
       and iswctype_l().

ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:

       tab()  box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
       TRIBUTE VALUE _ CSIEnabled _ Interface StabilityStandard _  MT-LevelMT-
       Safe


SEE ALSO
       duplocale(3C),   freelocale(3C),  iswctype(3C),  newlocale(3C),  setlo‐
       cale(3C), wctype_ja(3C), uselocale(3C), attributes(7), standards(7)


       Handling Characters and Character Strings in Internationalizing and Lo‐
       calizing Applications in Oracle Solaris

HISTORY
       The wctype_l() function was added to  Solaris  in  the  Oracle  Solaris
       11.4.0 release.


       The wctype() function was added to Solaris in the Solaris 2.4 release.

Oracle Solaris 11.4               25 Nov 2024                       wctype(3C)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3