다음을 통해 공유


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.

virtual CharType do_widen(
    char byte
) const;
virtual const char *do_widen(
    const char* first, 
    const char* 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 character immediately following 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.

Return Value

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.

Remarks

The second protected member template function stores in dest[I] the value do_widen(first[I]), for I in the interval [0, last - first).

Example

See the example for widen, which calls do_widen.

Requirements

Header: <locale>

Namespace: std

See Also

Reference

ctype Class

Other Resources

ctype Members