This documentation is archived and is not being maintained.
ctype::do_narrow
Visual Studio 2010
A virtual function called to convert a character of type CharType used by a locale to the corresponding character of type char in the native character set.
virtual char do_narrow(
CharType ch,
char default = '\0'
) const;
virtual const CharType* do_narrow(
const CharType* first,
const CharType* last,
char default,
char* dest
) const;
The first protected member function returns the native character of type char that corresponds to the parameter character of type CharType or default if no counterpart is defined.
The second protected member function returns a pointer to the destination range of native characters converted from characters of type CharType.
Show: