Espacios de nombres
Variantes
Acciones

Strings library

De cppreference.com
El C + + biblioteca de cuerdas incluye soporte para dos tipos generales de cadenas:
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 clase con plantilla diseñada para manipular cadenas de cualquier tipo de caracteres .
    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.
  • Terminadas en nulo - conjuntos de caracteres terminada por un carácter especial' nulo .
    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.

Contenido

std::basic_string

El std::basic_string clase con plantilla generaliza como secuencias de caracteres son manipulados y almacenados. Cadena creación, manipulación y destrucción se manejan por un conjunto conveniente de los métodos de clase y funciones relacionadas .
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.
Varias especializaciones de std::basic_string se proporcionan para los tipos más utilizados:
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.
Definido en el archivo de encabezado <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>

Terminadas en nulo

Terminadas en nulo son arreglos de caracteres que termina con un carácter especial' nulo. C + + proporciona funciones para crear, revisar, modificar y terminadas en nulo .
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.
Hay tres tipos de series terminadas en nulo:
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.

El apoyo adicional

char_traits

La biblioteca también ofrece cadena char_traits clase de plantilla que define los tipos y funciones de std::basic_string. Las especializaciones se entiende por:
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.
Definido en el archivo de encabezado <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>;


(desde C++11)
(desde C++11)