1WCTRANS(3P)                POSIX Programmer's Manual               WCTRANS(3P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       wctrans - define character mapping
13

SYNOPSIS

15       #include <wctype.h>
16
17       wctrans_t wctrans(const char *charclass);
18
19

DESCRIPTION

21       The wctrans() function is defined for  valid  character  mapping  names
22       identified in the current locale. The charclass is a string identifying
23       a generic character mapping name for which codeset-specific information
24       is  required.  The following character mapping names are defined in all
25       locales: tolower and toupper.
26
27       The function shall return a value of type wctrans_t, which can be  used
28       as  the  second  argument  to  subsequent  calls  of  towctrans().  The
29       wctrans() function shall determine values of wctrans_t according to the
30       rules  of the coded character set defined by character mapping informa‐
31       tion in the program's locale (category LC_CTYPE ). The values  returned
32       by  wctrans()  shall be valid until a call to setlocale() that modifies
33       the category LC_CTYPE.
34

RETURN VALUE

36       The wctrans() function shall return 0  and may set  errno  to  indicate
37       the error if the given character mapping name is not valid for the cur‐
38       rent locale (category LC_CTYPE ); otherwise, it shall return a non-zero
39       object of type wctrans_t that can be used in calls to towctrans().
40

ERRORS

42       The wctrans() function may fail if:
43
44       EINVAL The  character mapping name pointed to by charclass is not valid
45              in the current locale.
46
47
48       The following sections are informative.
49

EXAMPLES

51       None.
52

APPLICATION USAGE

54       None.
55

RATIONALE

57       None.
58

FUTURE DIRECTIONS

60       None.
61

SEE ALSO

63       towctrans(),  the  Base  Definitions  volume  of  IEEE Std 1003.1-2001,
64       <wctype.h>
65
67       Portions  of  this text are reprinted and reproduced in electronic form
68       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
69       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
70       Specifications Issue 6, Copyright (C) 2001-2003  by  the  Institute  of
71       Electrical  and  Electronics  Engineers, Inc and The Open Group. In the
72       event of any discrepancy between this version and the original IEEE and
73       The  Open Group Standard, the original IEEE and The Open Group Standard
74       is the referee document. The original Standard can be  obtained  online
75       at http://www.opengroup.org/unix/online.html .
76
77
78
79IEEE/The Open Group                  2003                          WCTRANS(3P)
Impressum