Namespace
Varianti

Strings library

Da cppreference.com.
< cpp


 
 
Stringhe libreria
Null-stringhe terminate
Original:
Null-terminated strings
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Byte stringhe
Multibyte stringhe
Stringhe larghe
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_string
char_traits
 
La libreria C + + le stringhe include il supporto per due tipi generali di stringhe:
Original:
The C++ strings library includes support for two general types of strings:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
  • std::basic_string - una classe basata su modelli progettati per manipolare le stringhe di qualsiasi tipo di carattere.
    Original:
    std::basic_string - a templated class designed to manipulate strings of any character type.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • Null-stringhe terminate - array di caratteri terminati da uno speciale carattere nullo.
    Original:
    Null-terminated strings - arrays of characters terminated by a special null character.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.

Indice

[modifica] std::basic_string

Il std::basic_string classe basata su modelli generalizza come sequenze di caratteri vengono manipolati e immagazzinati. String creazione, la manipolazione e la distruzione sono tutte gestite da un pratico set di metodi di classe e delle relative funzioni.
Original:
The templated class std::basic_string generalizes how sequences of characters are manipulated and stored. String creation, manipulation, and destruction are all handled by a convenient set of class methods and related functions.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Specializzazioni Diversi std::basic_string sono previste per i tipi di uso comune:
Original:
Several specializations of std::basic_string are provided for commonly-used types:
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 <string>
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
std::string std::basic_string<char>
std::wstring std::basic_string<wchar_t>
std::u16string std::basic_string<char16_t>
std::u32string std::basic_string<char32_t>

[modifica] Null-stringhe terminate

Terminazione Null le stringhe sono array di caratteri che vengono terminati da una speciale nullo carattere. C + + fornisce funzioni per creare, controllare e modificare stringhe null-terminate.
Original:
Null-terminated strings are arrays of characters that are terminated by a special null character. C++ provides functions to create, inspect, and modify null-terminated strings.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Ci sono tre tipi di stringhe null-terminate:
Original:
There are three types of null-terminated strings:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifica] Supporto aggiuntivo

[modifica] char_traits

La libreria fornisce anche stringa modello char_traits classe che definisce i tipi e le funzioni per std::basic_string. Le specializzazioni sono definiti i seguenti:
Original:
The string library also provides class template char_traits that defines types and functions for std::basic_string. The following specializations are defined:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Elemento definito nell'header <string>
template<> class char_traits<std::string>;

template<> class char_traits<std::wstring>;
template<> class char_traits<std::u16string>;

template<> class char_traits<std::u32string>;


(dal C++11)
(dal C++11)