Espacios de nombres
Variantes
Acciones

Null-terminated multibyte strings

De cppreference.com
< cpp‎ | string

 
 
Strings biblioteca
Terminadas en nulo
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.
Cadenas de bytes
Multibyte cuerdas
Cadenas anchas
Clases
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
 
Terminadas en nulo de varios bytes
Ancho / multibyte conversiones
Original:
Wide/multibyte conversions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
mbsinit
Tipos
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
mbstate_t
 
Una cadena multibyte terminada en cero (NTMBS), o "cadena multibyte", es una secuencia de bytes nulos seguido por un byte con valor cero (el carácter nulo de terminación) .
Original:
A null-terminated multibyte string (NTMBS), or "multibyte string", is a sequence of nonzero bytes followed by a byte with value zero (the terminating null character).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Cada carácter almacenado en la cadena puede ocupar más de un byte. La codificación utilizada para representar los caracteres en una cadena de caracteres multibyte es específico del entorno local: puede ser UTF-8, GB18030, EUC-JP, Shift-JIS, etc Por ejemplo, la matriz de caracteres {'\xe4','\xbd','\xa0','\xe5','\xa5','\xbd','\0'} es un NTMBS sujetan la cadena "你好" en codificación UTF-8 multibyte: los tres primeros bytes codificar el 你 carácter, los siguientes tres bytes codificar el 好 carácter. La misma cadena codificada en GB18030 es la {'\xc4', '\xe3', '\xba', '\xc3', '\0' matriz char}, donde cada uno de los dos caracteres se codifica como una secuencia de dos bytes .
Original:
Each character stored in the string may occupy more than one byte. The encoding used to represent characters in a multibyte character string is locale-specific: it may be UTF-8, GB18030, EUC-JP, Shift-JIS, etc. For example, the char array {'\xe4','\xbd','\xa0','\xe5','\xa5','\xbd','\0'} is an NTMBS holding the string "你好" in UTF-8 multibyte encoding: the first three bytes encode the character 你, the next three bytes encode the character 好. The same string encoded in GB18030 is the char array {'\xc4', '\xe3', '\xba', '\xc3', '\0'}, where each of the two characters is encoded as a two-byte sequence.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
En algunas codificaciones multibyte, cualquier secuencia de caracteres multibyte dado puede representar diferentes personajes en función de las secuencias de bytes anteriores, conocidos como "secuencias de desplazamiento". Codificaciones se conocen como dependiente del estado: el conocimiento del estado de cambio actual está obligado a interpretar cada personaje. Un NTMBS sólo es válido si comienza y termina en el estado inicial de cambios: si una secuencia de cambio se utilizó la secuencia unshift correspondiente tiene que estar presente antes de que el carácter nulo de terminación. Ejemplos de este tipo son las codificaciones JIS 7-bit, BOCU-1 y SCSU .
Original:
In some multibyte encodings, any given multibyte character sequence may represent different characters depending on the previous byte sequences, known as "shift sequences". Such encodings are known as state-dependent: knowledge of the current shift state is required to interpret each character. An NTMBS is only valid if it begins and ends in the initial shift state: if a shift sequence was used, the corresponding unshift sequence has to be present before the terminating null character. Examples of such encodings are the 7-bit JIS, BOCU-1 and SCSU.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Una cadena de caracteres multibyte es compatible con esquema de cadena de bytes terminada en cero (BNA), es decir, se pueden guardar, copiar y examinados utilizando las mismas instalaciones, excepto para el cálculo del número de caracteres. Si la configuración regional correcta es, en efecto, funciones I / O también se encargan de cadenas multibyte. Las cadenas multibyte se puede convertir en y desde las cadenas anchas utilizando las funciones miembro std::codecvt, std::wstring_convert, o las siguientes funciones dependientes de la localidad de conversión:
Original:
A multibyte character string is layout-compatible with null-terminated byte string (NTBS), that is, can be stored, copied, and examined using the same facilities, except for calculating the number of characters. If the correct locale is in effect, I/O functions also handle multibyte strings. Multibyte strings can be converted to and from wide strings using the std::codecvt member functions, std::wstring_convert, or the following locale-dependent conversion functions:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Multibyte / conversiones de caracteres de ancho

Defined in header <cstdlib>
devuelve el número de bytes en el carácter multibyte siguiente
Original:
returns the number of bytes in the next multibyte character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función) [edit]
convierte el carácter multibyte al lado de caracteres anchos
Original:
converts the next multibyte character to wide character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función) [edit]
convierte una carácter ancho a su representación multibyte
Original:
converts a wide character to its multibyte representation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función) [edit]
convierte una cadena de caracteres multibyte estrecho para cadena ancha
Original:
converts a narrow multibyte character string to wide string
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función) [edit]
convierte una cadena ancha para reducir cadena de caracteres multibyte
Original:
converts a wide string to narrow multibyte character string
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función) [edit]
Defined in header <cwchar>
Comprueba si el objeto mbstate_t representa el estado inicial de cambios
Original:
checks if the mbstate_t object represents initial shift state
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función) [edit]
ensancha un carácter estrecho de un solo byte a caracteres anchos, si es posible
Original:
widens a single-byte narrow character to wide character, if possible
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función) [edit]
reduce un carácter ancho a un carácter estrecho de un solo byte, si es posible
Original:
narrows a wide character to a single-byte narrow character, if possible
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función) [edit]
devuelve el número de bytes en el siguiente carácter multibyte, estado dado
Original:
returns the number of bytes in the next multibyte character, given state
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función) [edit]
convierte el carácter multibyte junto al carácter amplio, estado dado
Original:
converts the next multibyte character to wide character, given state
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función) [edit]
convierte una carácter ancho a su representación multibyte, estado dado
Original:
converts a wide character to its multibyte representation, given state
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función) [edit]
convierte una cadena de caracteres multibyte estrecho a la cadena de ancho, estado dado
Original:
converts a narrow multibyte character string to wide string, given state
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función) [edit]
convierte una cadena a cadena estrecha gama de caracteres multibyte, estado dado
Original:
converts a wide string to narrow multibyte character string, given state
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función) [edit]
Defined in header <cuchar>
(C++11)
generar el próximo 16-bit de ancho carácter de una cadena multibyte estrecho
Original:
generate the next 16-bit wide character from a narrow multibyte string
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función) [edit]
(C++11)
convertir un carácter ancho de 16-bit para reducir cadena multibyte
Original:
convert a 16-bit wide character to narrow multibyte string
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función) [edit]
(C++11)
generar el próximo 32-bit de ancho carácter de una cadena multibyte estrecho
Original:
generate the next 32-bit wide character from a narrow multibyte string
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función) [edit]
(C++11)
convertir un carácter ancho de 32-bit para reducir cadena multibyte
Original:
convert a 32-bit wide character to narrow multibyte string
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función) [edit]

[editar] Tipos

Defined in header <cwchar>
conversión de la información de estado necesaria para repetir las cadenas de caracteres multibyte
Original:
conversion state information necessary to iterate multibyte character strings
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(clase) [edit]

[editar] Macros

Defined in header <climits>
MB_LEN_MAX
número máximo de bytes en un carácter multibyte
Original:
maximum number of bytes in a multibyte character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante) [edit]
Defined in header <cstdlib>
MB_CUR_MAX
número máximo de bytes en un carácter multibyte en la actual C locale
(variables macro)
Original:
maximum number of bytes in a multibyte character in the current C locale
(variables macro)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
Defined in header <cuchar>
__STDC_UTF_16__
indica que la codificación UTF-16 es utilizado por mbrtoc16 y c16rtomb
Original:
indicates that UTF-16 encoding is used by mbrtoc16 and c16rtomb
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)
__STDC_UTF_32__
indica que la codificación UTF-32 es utilizado por mbrtoc32 y c32rtomb
Original:
indicates that UTF-32 encoding is used by mbrtoc32 and c32rtomb
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro constante)