Espaços nominais
Variantes
Acções

std::regex_traits

Da cppreference.com
< cpp‎ | regex

 
 
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.
basic_regex(C++11)
sub_match(C++11)
match_results(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.
regex_match(C++11)
regex_search(C++11)
regex_replace(C++11)
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.
regex_iterator(C++11)
regex_token_iterator(C++11)
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.
regex_error(C++11)
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.
regex_traits(C++11)
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.
syntax_option_type(C++11)
match_flag_type(C++11)
error_type(C++11)
 
 
Defined in header <regex>
template< class CharT >
class regex_traits;
(a partir do 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.

[editar] 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.

[editar] 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.

[editar] Funções de membro

constrói o objeto regex_traits
Original:
constructs the regex_traits object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(função pública membro)
[estática]
calcula o comprimento de uma seqüência de caracteres NULL-Terminated
Original:
calculates the length of a null-terminated character string
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(função public static membro)
determina a chave de equivalência para um personagem
Original:
determines the equivalence key for a character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(função pública membro)
determina a chave de maiúsculas e minúsculas de equivalência para um personagem
Original:
determines the case-insensitive equivalence key for a character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(função pública membro)
determina a chave de classificação para a string dada, usado para fornecer ordem agrupamento
Original:
determines the sort key for the given string, used to provide collation order
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(função pública membro)
determina a chave principal de classificação para a seqüência de caracteres, usado para determinar a classe de equivalência
Original:
determines the primary sort key for the character sequence, used to determine equivalence class
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(função pública membro)
Obtém um elemento de agrupamento pelo nome
Original:
gets a collation element by name
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(função pública membro)
recebe uma classe de personagem pelo nome
Original:
gets a character class by name
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(função pública membro)
Indica a participação em uma classe de caracteres localizada
Original:
indicates membership in a localized character class
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(função pública membro)
traduz o caractere que representa um dígito numérico em um valor integral
Original:
translates the character representing a numeric digit into an integral value
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(função pública membro)
define a localidade
Original:
sets the locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(função pública membro)
fica o local
Original:
gets the locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(função pública membro)