名前空間
変種
操作

std::regex_traits::lookup_classname

提供: cppreference.com
< cpp‎ | regex‎ | regex traits

 
 
正規表現ライブラリ
クラス
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)
 
std::regex_traits
メンバー関数
Original:
Member Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
regex_traits::regex_traits
regex_traits::length
regex_traits::translate
regex_traits::translate_nocase
regex_traits::transform
regex_traits::transform_primary
regex_traits::lookup_collatename
regex_traits::lookup_classname
regex_traits::isctype
regex_traits::value
regex_traits::imbue
regex_traits::getloc
 
template< class ForwardIt >

char_class_type lookup_classname( ForwardIt first,
                                  ForwardIt last,

                                  bool icase = false ) const;
文字シーケンス[first, last)は現在吹き込まロケール(POSIXの正規表現で[::]との間にある文字列である)で有効な文字クラスの名前を表している場合、この文字クラスを表す実装定義の値を返します。それ以外の場合は、ゼロを返します。.
Original:
If the character sequence [first, last) represents the name of a valid character class in the currently imbued locale (that is, the string between [: and :] in POSIX regular expressions), returns the implementation-defined value representing this character class. Otherwise, returns zero.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
パラメータicasetrueがある場合は、文字クラスは、例えば、大文字と小文字を無視する[:lower:]とregexstd::regex_constants::icaseregex_traits<>::lookup_classname()[first, last)を示すと"lower"icase == trueへの呼び出しを生成します。この呼び出しは、[:alpha:]icase == falseと正規表現によって生成されたコールと同じビットマスクを返します。.
Original:
If the parameter icase is true, the character class ignores character case, e.g. the regex [:lower:] with std::regex_constants::icase generates a call to regex_traits<>::lookup_classname() with [first, last) indicating the string "lower" and icase == true. This call returns the same bitmask as the call generated by the regex [:alpha:] with icase == false.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
次の文字クラスは、常に(icase == false付き)ナローとワイドの両方の文字形で、認識され、分類が返され、次のように吹き込まれたロケールのstd::ctypeファセットによって得られたマッチングの分類に対応しています
Original:
The following character classes are always recognized, in both narrow and wide character forms, and the classifications returned (with icase == false) correspond to the matching classifications obtained by the std::ctype facet of the imbued locale, as follows:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
文字クラス
Original:
character class
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
std::ctype classification
"alnum" std::ctype_base::alnum
"alpha" std::ctype_base::alpha
"blank" std::ctype_base::blank
"cntrl" std::ctype_base::cntrl
"digit" std::ctype_base::digit
"graph" std::ctype_base::graph
"lower" std::ctype_base::lower
"print" std::ctype_base::print
"punct" std::ctype_base::punct
"space" std::ctype_base::space
"upper" std::ctype_base::upper
"xdigit" std::ctype_base::xdigit
"d" std::ctype_base::digit
"s" std::ctype_base::space
"w"
std::ctype_base::alnum '_'を、オプションで追加された
Original:
std::ctype_base::alnum with '_' optionally added
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
文字列"w"に対して返さ分類はケース"alnum"明示的に '_'を付加するには、isctype()とまったく同じであってもよい.
Original:
The classification returned for the string "w" may be exactly the same as "alnum", in which case isctype() adds '_' explicitly.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目次

[編集] パラメータ

first, last -
文字クラスの名前を表す文字のシーケンスを決定イテレータのペア
Original:
a pair of iterators which determines the sequence of characters that represents a name of a character class
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
icase -
trueの場合、文字の分類で大文字/小文字の区別を無視します
Original:
if true, ignores the upper/lower case distinction in the character classification
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Type requirements
-
ForwardIt must meet the requirements of ForwardIterator.

[編集] 値を返します

クラスが不明の場合は、指定した文字クラス、またはゼロで決定文字分類を表すビットマスク.
Original:
The bitmask representing the character classification determined by the given character class, or zero if the class is unknown.
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 character class
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

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