std::regex_traits
提供: cppreference.com
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
Defined in header <regex>
|
||
template< class CharT > class regex_traits; |
(C++11およびそれ以降) | |
型形質のテンプレート
regex_traits
タイプstd::basic_regex上で動作するために必要な型と関数のセットを持つ電源CharT
.Original:
The type trait template
regex_traits
supplies std::basic_regex with the set of types and functions necessary to operate on the type CharT
.The 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.
正規表現の操作の多くは、(std::regex_constants::collateフラグが設定されている場合)ロケールに依存しますので、regex_traitsクラスは、通常のプライベートメンバとしてstd::localeのインスタンスを保持している.
Original:
Since many of regex operations are locale-sensitive (when std::regex_constants::collate flag is set), the regex_traits class typically holds an instance of a std::locale as a private member.
The 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.
[編集] 標準の専門分野
std::regex_traits
の2つの専門分野は、標準ライブラリで定義されていますOriginal:
Two specializations of
std::regex_traits
are defined by the standard library:The 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.
std::regex_traits<char>
| |
std::regex_traits<wchar_t>
|
これらの特殊化std::basic_regex<char>を使用することが可能になる(別名std::regex)とstd::basic_regex<wchar_t>(別名std::wregex)ですが、使用するために、例えば、std::basic_regex<char32_t>、ユーザ提供specializtionのstd::regex_traits<char32_t>を定義する必要があります.
Original:
These specializations make it possible to use std::basic_regex<char> (aka std::regex) and std::basic_regex<wchar_t> (aka std::wregex), but in order to use, for example, std::basic_regex<char32_t>, user-provided specializtion std::regex_traits<char32_t> needs to be defined.
The 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: 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
|
CharT
|
string_type
|
std::basic_string<CharT> |
locale_type
|
ロケールは、正規表現内の局所的な振る舞いに使われる。
CopyConstructible でなければなりませんOriginal: The locale used for localized behavior in the regular expression. Must be CopyConstructible The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
char_class_type
|
文字の分類を表し、
lookup_classname によって返された実装の特定のセットを保持することができる。 BitmaskType でなければなりません.Original: Represents a character classification and is capable of holding an implementation specific set returned by lookup_classname . Must be a BitmaskType .The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[編集] メンバ関数
regex_traitsオブジェクトを作成します Original: constructs the regex_traits object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
[静的] |
NULLで終わる文字列の長さを計算します Original: calculates the length of a null-terminated character string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリック静的メンバ関数) |
文字の等価鍵を決定する Original: determines the equivalence key for a character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
文字の大文字小文字を区別しない等価キーを決定します Original: determines the case-insensitive equivalence key for a character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
照合順序を提供するために使用される特定の文字列の並べ替えキーを決定します Original: determines the sort key for the given string, used to provide collation order The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
等価クラスを決定するために使用される文字シーケンスのプライマリソートキーを決定します Original: determines the primary sort key for the character sequence, used to determine equivalence class The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
名前で照合要素を取得します Original: gets a collation element by name The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
名前で文字クラスを取得します Original: gets a character class by name The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
ローカライズされた文字クラス内のメンバーシップを示しています Original: indicates membership in a localized character class The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
整数値に数字を表す文字を変換します Original: translates the character representing a numeric digit into an integral value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
ロケールを設定します Original: sets the locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
ロケールを取得します Original: gets the locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) |