Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ctype::_Do_narrow_s

ctype::_Do_narrow_s 

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 const CharType *_Do_narrow_s(
    const CharType *_First,
    const CharType *_Last,
    char _Dfault,
    char *_Dest,
    size_t _Dest_size
) const;

Parameters

_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.

_Dfault

The default value to be assigned by the member function to characters of type CharType that do not have counterpart characters of type char.

_Dest

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

_Dest_size

The size of _Dest in bytes.

This protected member function returns a pointer to the destination range of native characters converted from characters of type CharType.

This protected member template function stores in _Dest [I] the value _Do_narrow_s(_First [I], _Dfault), for I in the interval [0, _Last_First).

See the example for ctype::_Narrow_s, which calls _Do_narrow_s.

Header: <locale>

Community Additions

ADD
Show:
© 2015 Microsoft