std::regex_traits - cppreference.com
Espaços nominais
Variantes
Ações

std::regex_traits

De cppreference.com

<metanoindex/>

 
 
Biblioteca de expressões regulares
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.
(C++11)
Algoritmos
Original:
Algorithms
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Iteradores
Original:
Iterators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Exceções
Original:
Exceptions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Características
Original:
Traits
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Constantes
Original:
Constants
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
 
 
<tbody> </tbody>
Definido no cabeçalho <regex>
template< class CharT > class regex_traits;
(desde C++11)
O modelo de tipo traço regex_traits suprimentos std::basic_regex com o conjunto de tipos e funções necessárias para operar sobre o tipo 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.
Uma vez que muitas das operações de regex são sensíveis à localidade (quando a bandeira std::regex_constants::collate está definido), a classe regex_traits normalmente tem uma instância de uma std::locale como um membro particular.
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.

Especializações padrão

Duas especializações do std::regex_traits são definidos pela biblioteca padrão:
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>
Essas especializações tornar possível a utilização de std::basic_regex<char> (aka std::regex) e std::basic_regex<wchar_t> (aka std::wregex), mas, a fim de usar, por exemplo, std::basic_regex<char32_t>, fornecidos pelo utilizador std::regex_traits<char32_t> specializtion precisa de ser definida.
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.

Tipos de membro

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
O local utilizado para o comportamento localizada na expressão regular. Deve ser 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
Representa uma classificação de caracteres e é capaz de manter um conjunto de implementação específica retornado por lookup_classname. Deve ser um 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.

Funções de membro