Namespace
Varianti

std::regex_traits

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)
 
 
Elemento definito nell'header <regex>
template< class CharT >
class regex_traits;
(dal C++11)
Il modello tratto tipo regex_traits forniture std::basic_regex con l'insieme dei tipi e le funzioni necessarie per operare sul CharT tipo.
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.
Dal momento che molti di operazioni regex sono dipendenti dalle impostazioni internazionali (quando il flag std::regex_constants::collate è impostato), la classe regex_traits contiene in genere un'istanza di un std::locale come membro privato.
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.

[modifica] Specializzazioni standard

Due specializzazioni di std::regex_traits sono definiti dalla libreria standard:
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>
Queste specializzazioni consentono di utilizzare std::basic_regex<char> (aka std::regex) e std::basic_regex<wchar_t> (aka std::wregex), ma al fine di utilizzare, per esempio, std::basic_regex<char32_t>, fornita dall'utente std::regex_traits<char32_t> specializtion deve essere definita.
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.

[modifica] Membri tipi

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
Il locale usato per il comportamento localizzato nelle espressioni regolari. Deve essere 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
Rappresenta una classificazione dei caratteri ed è in grado di contenere un insieme specifico di attuazione restituito da lookup_classname. Deve essere un 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.

[modifica] Membri funzioni

costruisce l'oggetto 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.

(metodo pubblico)
[statico]
calcola la lunghezza di una stringa con terminazione null di caratteri
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.

(metodo pubblico statico)
determina la chiave di equivalenza per un carattere
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.

(metodo pubblico)
determina il case-insensitive chiave di equivalenza per un personaggio
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.

(metodo pubblico)
determina la chiave di ordinamento per la stringa data, utilizzato per fornire l'ordine di collazione
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.

(metodo pubblico)
determina la chiave primaria di ordinamento della sequenza di caratteri, utilizzato per determinare classe di equivalenza
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.

(metodo pubblico)
ottiene un elemento di confronto in base al 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.

(metodo pubblico)
ottiene una classe di caratteri per 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.

(metodo pubblico)
indica l'appartenenza a una classe di caratteri localizzato
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.

(metodo pubblico)
traduce il carattere che rappresenta una cifra numerica in un valore intero
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.

(metodo pubblico)
imposta il locale
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.

(metodo pubblico)
ottiene il locale
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.

(metodo pubblico)