Namespace
Varianti

std::sub_match

Da cppreference.com.
< cpp‎ | regex

 
 
Espressioni regolari libreria
Classi
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)
Algoritmi
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)
Iteratori
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)
Eccezioni
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)
Tratti
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)
Costanti
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)
 
std::sub_match
Membri funzioni
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
sub_match::sub_match(C++11)
sub_match::length(C++11)
sub_match::str
sub_match::operator string_type
(C++11)
sub_match::compare(C++11)
Non membri funzioni
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
operator==
operator!=
operator<<
operator<=
operator>
operator>=
(C++11)
operator<<(C++11)
 
Defined in 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.

Indice

[modifica] Tipo requisiti

-
BidirIt must meet the requirements of BidirectionalIterator.

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

[modifica] 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>

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

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

(membro pubblico funzione) [edit]
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.

(membro pubblico funzione) [edit]
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.

(membro pubblico funzione) [edit]
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.

(membro pubblico funzione) [edit]

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

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