13.1.3 wchars
OMG IDL defines a wchar
data type that encodes wide
characters from any character set. As with character data, an
implementation is free to use any code set internally for encoding
wide characters, though, again, conversion to another form may be
required for transmission. The size of wchar
is
implementation-dependent.
The syntax for defining a wchar
is:
<wide_char_type> ::= “wchar”
A code example for wchar
is:
wchar_t wmixed[256];
Note:
Thewchar
and wstring
data types enable users to interact with computers in their native written language. Some languages, such as Japanese and Chinese, have thousands of unique characters. These character sets do not fit within a byte. A number of schemes have been used to support multi-byte character sets, but they have proved to be unwieldy to use. Wide characters and wide strings make it easier to interact with this kind of complexity.
Parent topic: Mappings