*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> wctype (3)              
Title
Content
Arch
Section
 

WCTYPE(3)

Contents


NAME    [Toc]    [Back]

     iswctype, wctype -- wide character class functions

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <wctype.h>

     int
     iswctype(wint_t wc, wctype_t charclass);

     wctype_t
     wctype(const char *property);

DESCRIPTION    [Toc]    [Back]

     The wctype() function returns a value of type wctype_t which represents
     the requested wide character class and may be used as the second argument
     for calls to iswctype().

     The following character class names are recognised:

	   alnum   cntrl   ideogram    print   special
	   alpha   digit   lower       punct   upper
	   blank   graph   phonogram   space   xdigit

     The iswctype() function checks whether the wide character wc is in the
     character class charclass.

RETURN VALUES    [Toc]    [Back]

     The iswctype() function returns non-zero if and only if wc has the property
 described by charclass, or charclass is zero.

     The wctype() function returns 0 if property is invalid, otherwise it
     returns a value of type wctype_t that can be used in subsequent calls to
     iswctype().

EXAMPLES    [Toc]    [Back]

     Reimplement iswalpha(3) in terms of iswctype() and wctype():

	   int
	   myiswalpha(wint_t wc)
	   {
		   return (iswctype(wc, wctype("alpha")));
	   }

SEE ALSO    [Toc]    [Back]

      
      
     ctype(3)

STANDARDS    [Toc]    [Back]

     The iswctype() and wctype() functions conform to IEEE Std 1003.1-2001
     (``POSIX.1'').  The ``ideogram'', ``phonogram'' and ``special'' character
     classes are extensions.

HISTORY    [Toc]    [Back]

     The iswctype() and wctype() functions first appeared in FreeBSD 5.0.


FreeBSD 5.2.1			October 3, 2002 		 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
towctrans FreeBSD wide character mapping functions
wctrans FreeBSD wide character mapping functions
wcschr Linux search a wide character in a wide-character string
wcsrchr Linux search a wide character in a wide-character string
wmemchr Linux search a wide character in a wide-character array
getcchar Tru64 Get a wide character string and rendition from a cchar_t or set a cchar_t from a wide-character stri...
setcchar Tru64 Get a wide character string and rendition from a cchar_t or set a cchar_t from a wide-character stri...
curs_getcchar Tru64 Get a wide character string and rendition from a cchar_t or set a cchar_t from a wide-character stri...
wcsspn Linux advance in a wide-character string, skipping any of a set of wide characters
wmemset Linux fill an array of wide-characters with a constant wide character
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service