Character Manipulation Sample

Description

The ctype<T> facet of a locale can be used to manipulate characters, for example converting them to upper case or converting between char and wchar_t character types. These manipulations are carried out by functions applied to a facet obtained from a locale.

Concept

The sample program obtains two facets from the classic (C) locale. ctype<char> is used for characters, and ctype<wchar_t> for wide characters. The program does some upper and lower case manipulations on individual characters and on strings of characters, and then does widening and narrowing conversions between char and wchar_t. Output of the program is:

	A
	abc
	97
	255
more here ???

Supported
Supported
Supported