名前空間
変種
操作

std::regex_traits

提供: cppreference.com
< cpp‎ | regex

 
 
正規表現ライブラリ
クラス
Original:
Classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_regex(C++11)
sub_match(C++11)
match_results(C++11)
アルゴリズム
Original:
Algorithms
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
regex_match(C++11)
regex_search(C++11)
regex_replace(C++11)
イテレータ
Original:
Iterators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
regex_iterator(C++11)
regex_token_iterator(C++11)
例外
Original:
Exceptions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
regex_error(C++11)
形質
Original:
Traits
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
regex_traits(C++11)
定数
Original:
Constants
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
syntax_option_type(C++11)
match_flag_type(C++11)
error_type(C++11)
 
 
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.
正規表現の操作の多くは、(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.

[編集] 標準の専門分野

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

[編集] メンバータイプ

タイプ
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.

(パブリックメンバ関数)