◐ Shell
clean mode source ↗

std::sub_match - cppreference.com

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.

Click here for the English version of this page

<metanoindex/>

<tbody> </tbody>

Elemento definito nell'header

<regex>

template< class BidirIt > class sub_match;

(dal C++11)

Il sub_match modello di classe viene utilizzato dal motore delle espressioni regolari per indicare sequenze di caratteri a cui corrisponde marcata sotto-espressioni.

Original:

The class template sub_match is used by the regular expression engine to denote sequences of characters matched by marked sub-expressions.

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

Una partita è una coppia [begin, end) all'interno dell'intervallo di riferimento di pari passo con l'espressione regolare, ma con funzioni di osservatori aggiuntivi per migliorare la chiarezza del codice.

Original:

A match is a [begin, end) pair within the target range matched by the regular expression, but with additional observer functions to enhance code clarity.

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

Solo il costruttore di default è accessibile al pubblico. Istanze di sub_match sono normalmente costruiti e popolato come parte di un contenitore std::match_results durante la lavorazione di uno degli algoritmi regex.

Original:

Only the default constructor is publicly accessible. Instances of sub_match are normally constructed and populated as a part of a std::match_results container during the processing of one of the regex algorithms.

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

Le funzioni membro restituire valori di default definiti meno che il membro matched è true.

Original:

The member functions return defined default values unless the matched member is true.

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

sub_match eredita da std::pair<BidirIt, BidirIt>, anche se non può essere trattata come un oggetto std::pair perché funzioni membro come swap e assegnazione non funzionerà come previsto.

Original:

sub_match inherits from std::pair<BidirIt, BidirIt>, although it cannot be treated as a std::pair object because member functions such as swap and assignment will not work as expected.

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

Tipo requisiti

Specializzazioni

Diverse specializzazioni per i tipi più comuni sequenze di caratteri sono:

Original:

Several specializations for common character sequence 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.

Definizione nell'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
csub_match sub_match<const char*>
wcsub_match sub_match<const wchar_t*>
ssub_match sub_match<std::string::const_iterator>
wssub_match sub_match<std::wstring::const_iterator>

Membri tipi

Membro tipo

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
iterator BidirIt
value_type std::iterator_traits<BidirIt>::value_type
difference_type std::iterator_traits<BidirIt>::difference_type
string_type std::basic_string<value_type>

Membri oggetti

matched

Indica se questa partita ha avuto successo .

Original:

Indicates if this match was successful.

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

Inherited from std::pair

first

Avvio della sequenza di partita .

Original:

Start of the match sequence.

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

second

One-past-the-fine della sequenza di partita .

Original:

One-past-the-end of the match sequence.

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

Membri funzioni

costruisce l'oggetto partita

Original:

constructs the match object

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


(metodo pubblico) [modifica]

Osservatori

Original:

Observers

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

restituisce la lunghezza della partita (se presente)

Original:

returns the length of the match (if any)

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


(metodo pubblico) [modifica]

viene convertito nel tipo stringa sottostante

Original:

converts to the underlying string type

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


(metodo pubblico) [modifica]

confronta sottosuccessione abbinato (se presente)

Original:

compares matched subsequence (if any)

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


(metodo pubblico) [modifica]

Non membri funzioni

lessicografico confronta i valori nel contenitore

Original:

lexicographically compares the values in the container

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


(funzione) [modifica]

in uscita il sottosequenza carattere corrispondente

Original:

outputs the matched character subsequence

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


(funzione di modello)

Vedi anche

scorre sottocorrispondenze regex

Original:

iterates through regex submatches

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


(classe template)