Chapter 6. LOCALE technology
57
There are two types for wide characters:
wchar_t
and
wint_t
.
wchar_t
is a type which can
contain one wide character. It is just like 'char' type can be used for contain one character.
wint_t
can contain one wide character or
WEOF
, an substitution of
EOF
.
A string of wide characters is achieved by an array of
wchar_t
, just like a string of characters is
achieved by an array of
char
.
There are functions for
wchar_t
, substitute for functions for
char
.
strcat()
,
strncat()
>
wcscat()
,
wcsncat()
strcpy()
,
strncpy()
>
wcscpy()
,
wcsncpy()
strcmp()
,
strncmp()
>
wcscmp()
,
wcsncmp()
strcasecmp()
,
strncasecmp()
>
wcscasecmp()
,
wcsncasecmp()
strcoll()
,
strxfrm()
>
wcscoll()
,
wcsxfrm()
strchr()
,
strrchr()
>
wcschr()
,
wcsrchr()
strstr()
,
strpbrk()
>
wcsstr()
,
wcspbrk()
strtok()
,
strspn()
,
strcspn()
>
wcstok()
,
wcsspn()
,
wcscspn()
strtol()
,
strtoul()
,
strtod()
>
wcstol()
,
wcstoul()
,
wcstod()
strftime()
>
wcsftime()
strlen()
>
wcslen()
toupper()
,
tolower()
>
towupper()
,
towlower()
isalnum()
,
isalpha()
,
isblank()
,
iscntrl()
,
isdigit()
,
isgraph()
,
islower()
,
isprint()
,
ispunct()
,
isspace()
,
isupper()
,
isxdigit()
>
iswalnum()
,
iswalpha()
,
iswblank()
,
iswcntrl()
,
iswdigit()
,
iswgraph()
,
iswlower()
,
iswprint()
,
iswpunct()
,
iswspace()
,
iswupper()
,
iswxdigit()
(
isascii()
doesn't have its wide character
version).
memset()
,
memcpy()
,
memmove
,
memmove()
,
memchr()
>
wmemset()
,
wmemcpy()
,
wmemmove
,
wmemmove()
,
wmemchr()
There are additional functions for
wchar_t
.
wcwidth()
,
wcswidth()
wctrans()
,
towctrans()
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved