◐ Shell
clean mode source ↗

std::basic_regex - cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

Definido no cabeçalho

<regex>

template < class CharT = char, class Traits = std::regex_traits<CharT> > class basic_regex;

(desde C++11)

O basic_regex modelo de classe fornece um quadro geral para a realização de expressões regulares.

Original:

The class template basic_regex provides a general framework for holding regular expressions.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Várias especializações para tipos de caracteres comuns são fornecidos:

Original:

Several specializations for common character types are provided:

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Defined in header <regex>

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
regex basic_regex<char>
wregex basic_regex<wchar_t>

Tipos de membro

Tipo de membro

Original:

Member type

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Definition
value_type CharT
traits_type Traits
string_type Traits::string_type
locale_type Traits::locale_type
flag_type std::regex_constants::syntax_option_type

Funções de membro

constructs the regex object
(função pública membro) [edit]

destrói o objeto regex

Original:

destructs the regex 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) [edit]

atribui o conteúdo

Original:

assigns the contents

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) [edit]

atribui o conteúdo

Original:

assigns the contents

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) [edit]

Observadores

Original:

Observers

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

retorna o número de sub-expressões marcante dentro da expressão regular

Original:

returns the number of marked sub-expressions within the regular expression

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) [edit]
returns the syntax flags
(função pública membro) [edit]

Localidade

Original:

Locale

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

obter informações de localidade

Original:

get locale information

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) [edit]

definir informações de localidade

Original:

set locale information

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) [edit]

Modificadores

Original:

Modifiers

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Trocar o conteúdo

Original:

swaps the contents

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) [edit]

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.

Valor

Original:

Value

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Effect(s)
icase

ignora caso quando a correspondência de caracteres

Original:

ignores case when matching characters

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

nosubs

não armazena sub-expressão partidas

Original:

does not store 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.

optimize

mais rápido correspondente construção, mais lento

Original:

faster matching, slower construction

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

collate

faz expressões alcance sensíveis à localidade

Original:

makes range expressions locale-sensitive

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

ECMAScript

usa um ECMA-262 (Perl 5) sintaxe

Original:

uses an ECMA-262 (Perl 5) syntax

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

basic

usa um POSIX básica sintaxe de expressão regular

Original:

uses a POSIX basic regular expression syntax

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

extended

utiliza uma sintaxe POSIX expressão regular extendida

Original:

uses a POSIX extended regular expression syntax

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

awk

utiliza um' awk sintaxe compatível

Original:

uses an awk-compatible syntax

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

grep

utiliza um' grep sintaxe compatível

Original:

uses a grep-compatible syntax

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

egrep

utiliza um grep' estendido compatível sintaxe

Original:

uses an extended grep-compatible syntax

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Não-membros funções

o algoritmo especializado std::swap

Original:

specializes the std::swap algorithm

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) [edit]