Manual Pages for UNIX Darwin command on man wctrans_l
MyWebUniversity

Manual Pages for UNIX Darwin command on man wctrans_l

WCTRANS(3) BSD Library Functions Manual WCTRANS(3)

NAME

ttoowwccttrraannss, wwccttrraannss, ttoowwccttrraannssll, wwccttrraannssll - wide character mapping

functions LLIIBBRRAARRYY

Standard C Library (libc, -lc)

SYNOPSIS

##iinncclluuddee <>

wintt ttoowwccttrraannss(wintt wc, wctranst desc); wctranst wwccttrraannss(const char *charclass);

##iinncclluuddee <>

wintt ttoowwccttrraannssll(wintt wc, wctranst desc, localet loc); wctranst wwccttrraannssll(const char *charclass, localet loc);

DESCRIPTION

The wwccttrraannss() function returns a value of type wctranst which represents the requested wide character mapping operation and may be used as the second argument for calls to ttoowwccttrraannss(). The following character mapping names are recognised: tolower toupper The ttoowwccttrraannss() function transliterates the wide character wc according to the mapping described by desc. While the ttoowwccttrraannss() and wwccttrraannss() functions use the current locale, the ttoowwccttrraannssll() and wwccttrraannssll() functions may be passed locales directly. See xlocale(3) for more information.

RETURN VALUES

The ttoowwccttrraannss() function returns the transliterated character if success-

ful, otherwise it returns the character unchanged and sets errno.

The wwccttrraannss() function returns non-zero if successful, otherwise it

returns zero and sets errno. EEXXAAMMPPLLEESS Reimplement ttoowwuuppppeerr() in terms of ttoowwccttrraannss() and wwccttrraannss(): wintt mytowupper(wintt wc) { return (towctrans(wc, wctrans("toupper"))); } EERRRROORRSS The ttoowwccttrraannss() function will fail if: [EINVAL] The supplied desc argument is invalid. The wwccttrraannss() function will fail if: [EINVAL] The requested mapping name is invalid.

SEE ALSO

tolower(3), toupper(3), wctype(3), xlocale(3) STANDARDS

The ttoowwccttrraannss() and wwccttrraannss() functions conform to IEEE Std 1003.1-2001

(``POSIX.1''). HISTORY The ttoowwccttrraannss() and wwccttrraannss() functions first appeared in FreeBSD 5.0. BSD October 3, 2002 BSD




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™