std::ctype_byname<char>
提供:cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Defined in header <locale>
|
||
| template<> class ctype_byname : public std::ctype<char>; |
||
std::ctype_bynameのこの専門分野は、型charの文字分類機能をカプセル化します。その基本クラス
std::ctype<char>のような、汎用std::ctype_bynameとは異なり、テーブルルックアップは、文字を分類するために使用されますOriginal:
This specialization of std::ctype_byname encapsulates character classification features for type char. Like its base class
std::ctype<char> and unlike general-purpose std::ctype_byname, table lookup is used to classify charactersThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
目次 |
[編集] メンバータイプ
| メンバー·タイプ
Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
mask
|
ctype<char>::mask
|
[編集] メンバ関数
| 新しいctype_bynameの<char>をファセットを構築します Original: constructs a new ctype_byname<char> facet The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
| ctype_bynameの<char>をファセットを破棄します Original: destructs a ctype_byname<char> facet The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (メンバー関数を保護しました) | |
Inherited from std::ctype<char>
Member types
| メンバー·タイプ
Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
char_type
|
char
|
Member objects
| メンバー名
Original: Member name The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Type |
id (静的)
|
std::locale::id |
table_size (静的なconst)
|
分類表のstd::size_tサイズ、少なくとも256
Original: std::size_t size of the classification table, at least 256 The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Member functions
| 文字分類テーブルを取得します Original: obtains the character classification table The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数of std::ctype<char>)
| |
| [静的] |
"C"ロケールの文字分類テーブルを取得します Original: obtains the "C" locale character classification table The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共の静的メンバ関数of std::ctype<char>)
|
| 分類表を使用して、文字または文字シーケンスを分類しています Original: classifies a character or a character sequence, using the classification table The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数of std::ctype<char>)
| |
| 見つけ分類表を使って、指定された分類に準拠して、シーケンス内の最初の文字 Original: locates the first character in a sequence that conforms to given classification, using the classification table The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数of std::ctype<char>)
| |
| locates the first character in a sequence that fails given classification, using the classification table (パブリックメンバ関数of std::ctype<char>)
| |
do_toupperを呼び出します Original: invokes do_toupper The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数of std::ctype)
| |
do_tolowerを呼び出しますOriginal: invokes do_tolowerThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数of std::ctype)
| |
do_widenを呼び出します Original: invokes do_widen The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数of std::ctype)
| |
do_narrowを呼び出します Original: invokes do_narrow The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数of std::ctype)
| |
Protected member functions
| [仮想] |
文字または文字列を大文字に変換します Original: converts a character or characters to uppercase The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数of std::ctype)
|
| [仮想] |
小文字に文字または文字列に変換します Original: converts a character or characters to lowercase The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数of std::ctype)
|
| [仮想] |
charからcharTへの文字または文字列に変換します Original: converts a character or characters from char to charT The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数of std::ctype)
|
| [仮想] |
charTからcharへの文字または文字列に変換します Original: converts a character or characters from charT to char The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数of std::ctype)
|
Inherited from std::ctype_base
Member types
| タイプ
Original: Type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
mask
|
不特定のビットマスク型(列挙型、整数型、またはbitsetの)
Original: unspecified bitmask type (enumeration, integer type, or bitset) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Member constants
| space [静的] |
mask識別空白文字分類の値 Original: the value of mask identifying whitespace character classification The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共の静的メンバ定数) |
| print [静的] |
mask印刷可能な文字の分類を識別するための値 Original: the value of mask identifying printable character classification The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共の静的メンバ定数) |
| cntrl [静的] |
mask識別制御文字分類の値 Original: the value of mask identifying control character classification The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共の静的メンバ定数) |
| upper [静的] |
maskの値は、大文字の文字の分類を識別する Original: the value of mask identifying uppercase character classification The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共の静的メンバ定数) |
| lower [静的] |
mask小文字文字の分類を識別するための値 Original: the value of mask identifying lowercase character classification The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共の静的メンバ定数) |
| alpha [静的] |
maskアルファベット文字の分類を識別するための値 Original: the value of mask identifying alphabetic character classification The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共の静的メンバ定数) |
| digit [静的] |
mask桁文字の分類を識別するための値 Original: the value of mask identifying digit character classification The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共の静的メンバ定数) |
| punct [静的] |
mask識別句読点文字分類の値 Original: the value of mask identifying punctuation character classification The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共の静的メンバ定数) |
| xdigit [静的] |
mask進数文字の分類を識別するための値 Original: the value of mask identifying hexadecimal digit character classification The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共の静的メンバ定数) |
| blank [静的] (C++11) |
mask空白文字の分類を識別するための値 Original: the value of mask identifying blank character classification The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共の静的メンバ定数) |
| alnum [静的] |
alpha | digit (公共の静的メンバ定数) |
| graph [静的] |
alnum | punct (公共の静的メンバ定数) |
[編集] 例
#include <iostream> #include <locale> int main() { char c = '\xde'; // capital letter thorn std::locale loc("C"); std::cout << "isupper('Þ', C locale) returned " << std::boolalpha << std::isupper(c, loc) << '\n'; loc = std::locale(loc, new std::ctype_byname<char>("en_US.utf8")); std::cout << "isupper('Þ', C locale with Unicode ctype<char>) returned " << std::boolalpha << std::isupper(c, loc) << '\n'; loc = std::locale(loc, new std::ctype_byname<char>("is_IS.iso88591")); std::cout << "isupper('Þ', C locale with Islandic ctype<char>) returned " << std::boolalpha << std::isupper(c, loc) << '\n'; }
Output:
isupper('Þ', C locale) returned false
isupper('Þ', C locale with Unicode ctype<char>) returned false
isupper('Þ', C locale with Islandic ctype<char>) returned true[編集] も参照してください
| 文字の分類表を定義します Original: defines character classification tables The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) | |
| タイプstd::ctype用charの専門化 Original: specialization of std::ctype for type char The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレートの特殊化の2つの値を比較します) | |