Biblioteca de expressão regular
Da cppreference.com
< cpp
![]() |
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. |
A biblioteca de expressão regular fornece uma classe que representa expressões regulares, uma espécie de mini-linguagem utilizada para encontrar um padrão em uma string. Também são fornecido na biblioteca de expressão regular classes utilitárias que suportam vários algoritmos, iteradores, exceções e caracterização de tipos.
Índice |
[editar] Principais classes
Essas classes encapsulam uma expressão regular e os resultados de correspondência de uma expressão regular dentro de uma sequência alvo de caracteres.
Original:
These classes encapsulate a regular expression and the results of matching a regular expression within a target sequence of characters.
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.
(C++11) |
objeto de expressão regular Original: regular expression object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (modelo de classe) |
(C++11) |
identifica a seqüência de caracteres combinados por uma expressão de sub- Original: identifies the sequence of characters matched by a sub-expression The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (modelo de classe) |
(C++11) |
identifica uma correspondência de expressão regular, incluindo todos os jogos sub-expressão Original: identifies one regular expression match, including all sub-expression matches The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (modelo de classe) |
[editar] Algoritmos
Estas funções são utilizadas para aplicar a expressão regular encapsuladas em um regex para uma sequência alvo de caracteres..
Original:
These functions are used to apply the regular expression encapsulated in a regex to a target sequence of characters..
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.
(C++11) |
tentativas de correspondem a uma expressão regular para a seqüência de caracteres inteiro Original: attempts to match a regular expression to the entire character sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (modelo de função) |
(C++11) |
tentativas de correspondem a uma expressão regular para qualquer parte da seqüência de caracteres Original: attempts to match a regular expression to any part of the character sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (modelo de função) |
(C++11) |
replaces occurrences of a regular expression with formatted replacement text (modelo de função) |
[editar] Iteradores
Os iteradores regex são usados para percorrer todo o conjunto de correspondências de expressões regulares encontrados dentro de uma seqüência.
Original:
The regex iterators are used to traverse the entire set of regular expression matches found within a sequence.
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.
(C++11) |
percorre todos os jogos regex dentro de uma seqüência de caracteres Original: iterates through all regex matches within a character sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (modelo de classe) |
(C++11) |
percorre o especificado sub-expressões dentro de todas as partidas regex em uma dada cadeia ou por meio de substrings incomparáveis Original: iterates through the specified sub-expressions within all regex matches in a given string or through unmatched substrings The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (modelo de classe) |
[editar] Exceções
Esta classe define o tipo de objetos lançados como exceções para relatar erros da biblioteca de expressões regulares.
Original:
This class defines the type of objects thrown as exceptions to report errors from the regular expressions 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.
(C++11) |
relatórios de erros gerados pela biblioteca de expressões regulares Original: reports errors generated by the regular expressions library The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe) |
[editar] Características
A regex classe características é usado para encapsular os aspectos localizáveis de um regex.
Original:
The regex traits class is used to encapsulate the localizable aspects of a regex.
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.
(C++11) |
metainformation fornece cerca de um tipo de personagem, exigido pela biblioteca regex Original: provides metainformation about a character type, required by the regex library The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (modelo de classe) |
[editar] Constantes
Defined in namespace
std::regex_constants | |
(C++11) |
opções gerais controlar o comportamento regex Original: general options controlling regex behavior The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (typedef) |
(C++11) |
opções específicas para correspondência Original: options specific to matching The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (typedef) |
(C++11) |
descreve diferentes tipos de erros correspondentes Original: describes different types of matching errors The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (typedef) |