Export (0) Print
Expand All

ctype::do_widen 

A virtual function called to converts a character of type char in the native character set to the corresponding character of type CharType used by a locale.

This method is potentially unsafe, as it relies on the caller to check that the passed values are correct. Consider using ctype::_Do_widen_s instead.


virtual CharType do_widen(
   char _Byte
) const;
virtual const char *do_widen(
   const CharType* _First, 
   const CharType* _Last,
   CharType* _Dest 
) const;

Parameters

_Byte

The character of type char in the native character set to be converted.

_First

A pointer to the first character in the range of characters to be converted.

_Last

A pointer to the last character in the range of characters to be converted.

_Dest

A pointer to the first character of type CharType in the destination range that stores the converted range of characters.

The first protected member function returns the character of type CharType that corresponds to the parameter character of native type char.

The second protected member function returns a pointer to the destination range of characters of type CharType used by a locale converted from native characters of type char.

The second protected member template function stores in _Dest [I] the value do_widen(_First [I]), for I in the interval [0, _Last - _First).

See the example for widen, which calls do_widen.

Header: <locale>

Reference

ctype Class

Other Resources

ctype Members

Community Additions

ADD
Show:
© 2014 Microsoft