クリックして評価とフィードバックをお寄せください
MSDN
MSDN ライブラリ
Visual Studio 2010
Visual Studio
Visual Studio の言語
Visual C++
Visual C++ のリファレンス
Standard C++ Library
Header Files
<locale>
<locale> Classes
ctype Class
ctype Member Functions
 ctype::do_narrow
すべて縮小/すべて展開 すべて縮小
このページは次のバージョンについて記述しています。
Microsoft Visual Studio 2010/.NET Framework 4

その他のバージョンについては、以下の情報を参照してください。
Visual Studio 2010 - Visual C++
ctype::do_narrow

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;
ch

The character of type Chartype used by the locale to be converted.

default

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

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 const pointer to the first character of type char in the destination range that stores the converted range of characters.

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.

The second protected member template function stores in dest[I] the value do_narrow(first [I], default), for I in the interval [0, lastfirst).

See the example for narrow, which calls do_narrow.

Header: <locale>

Namespace: std

Reference

Other Resources

コミュニティ コンテンツ   コミュニティ コンテンツとは
新しいコンテンツの追加 RSS  注釈
Processing
© 2012 Microsoft. All rights reserved. 使用条件 | 商標 | プライバシー
Page view tracker