std::regex_traits
Aus 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. |
<metanoindex/>
<tbody> </tbody>| definiert in Header <regex>
|
||
template< class CharT > class regex_traits; |
(seit C++11) | |
Die Art Merkmal Vorlage
regex_traits liefert std::basic_regex mit dem Satz von Typen und Funktionen notwendig, von der Art CharT betreiben .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.
Da viele der regex Operationen locale-empfindlich sind (wenn std::regex_constants::collate Flag gesetzt ist), die regex_traits Klasse hält in der Regel eine Instanz einer std::locale als private Mitglied .
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.
Standard Spezialisierungen
Zwei Spezialisierungen
std::regex_traits werden von der Standard-Bibliothek definiert: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>
|
Diese Spezialisierungen machen es möglich,
std::basic_regex<char> (aka std::regex) und std::basic_regex<wchar_t> (aka std::wregex), aber um zu bedienen, beispielsweise std::basic_regex<char32_t> muss vom Benutzer bereitgestellten specializtion std::regex_traits<char32_t> definiert werden .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.
Mitglied Typen
Type
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
|
Das Gebietsschema für lokalisierte Verhalten im regulären Ausdruck verwendet. Muss
CopyConstructible seinOriginal: The locale used for localized behavior in the regular expression. Must be CopyConstructibleThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |