Namensräume
Varianten

std::regex_traits::lookup_classname

Aus cppreference.com
< cpp‎ | regex‎ | regex traits

 
 
Reguläre Ausdrücke Bibliothek
Classes
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)
Algorithmen
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)
Iteratoren
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)
Ausnahmen
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)
Traits
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)
Konstanten
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)
 
 
template<class ForwardIt >

char_class_type lookup_classname( ForwardIt first,
                                  ForwardIt last,

                                  bool icase =false)const;
Wenn die Zeichenfolge [first, last) steht für den Namen eines gültigen Charakter-Klasse in der Zeit durchdrungen locale (das heißt, die Zeichenfolge zwischen [: und :] in POSIX reguläre Ausdrücke), gibt die Implementierung definiert Wert, der diesen Charakter-Klasse. Andernfalls gibt Null .
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.
Wenn der Parameter icase ist true, ignoriert die Charakter-Klasse und Kleinschreibung, zB die Regex [:lower:] mit std::regex_constants::icase generiert einen Aufruf regex_traits<>::lookup_classname() mit [first, last) Angabe der String "lower" und icase ==true. Dieser Aufruf gibt den gleichen Bitmaske wie der Ruf durch die regex [:alpha:] mit icase ==false generiert .
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.
Die folgenden Zeichenklassen werden immer erkannt, sowohl schmale und breite Charakter Formen, sowie die Klassifikationen zurückgegeben (mit icase ==false) entsprechen den passenden Klassifikationen durch die std::ctype Facette des durchdrungen Gebietsschema erhalten, wie folgt:
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.
Charakter-Klasse
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 mit '_' optional hinzugefügt
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.
Die Klassifizierung nach der Zeichenfolge "w" zurückgegeben werden genau das gleiche wie "alnum", in welchem ​​Fall isctype() fügt '_' explizit .
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.

Inhaltsverzeichnis

[Bearbeiten]Parameter

first, last -
ein Paar von Iteratoren, die die Sequenz von Zeichen, die den Namen eines Charakters Klasse stellt bestimmt
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 -
wenn das stimmt, ignoriert die Groß-/ Kleinschreibung unterschieden im Charakter Klassifizierung
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.

[Bearbeiten]Rückgabewert

Die Bitmaske, der das Zeichen Klassifizierung durch die gegebene Zeichenklasse oder Null bestimmt werden, wenn die Klasse unbekannt ist .
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.

[Bearbeiten]Beispiel

[Bearbeiten]Siehe auch

zeigt die Mitgliedschaft in einer Zeichenklasse
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.

(öffentliche Elementfunktion)
close