std::regex_traits
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
<tbody> </tbody>| Elemento definito nell'header <regex>
|
||
template< class CharT > class regex_traits; |
(dal C++11) | |
Il modello tratto tipo
regex_traits forniture std::basic_regex con l'insieme dei tipi e le funzioni necessarie per operare sul CharT tipo.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.
Dal momento che molti di operazioni regex sono dipendenti dalle impostazioni internazionali (quando il flag std::regex_constants::collate è impostato), la classe regex_traits contiene in genere un'istanza di un std::locale come membro privato.
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.
Specializzazioni standard
Due specializzazioni di
std::regex_traits sono definiti dalla libreria standard: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>
|
Queste specializzazioni consentono di utilizzare
std::basic_regex<char> (aka std::regex) e std::basic_regex<wchar_t> (aka std::wregex), ma al fine di utilizzare, per esempio, std::basic_regex<char32_t>, fornita dall'utente std::regex_traits<char32_t> specializtion deve essere definita.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.
Membri tipi
Tipo
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
|
|