Espacios de nombres
Variantes
Acciones

std::c32rtomb

De cppreference.com
< cpp‎ | string‎ | multibyte
 
 
 
Cadenas multibyte terminadas en nulo
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.
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.
 
Definido en el archivo de encabezado <cuchar>
std::size_t c32rtomb(char* s, char32_t c32, std::mbstate_t* ps );
(desde C++11)
Convierte un carácter ancho de 32-bit en la representación multibyte estrecho .
Original:
Converts a 32-bit wide character to its narrow multibyte representation.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si s no es un puntero nulo, la función determina el número de bytes necesarios para almacenar la representación de caracteres multibyte de c32 (incluidas las secuencias de desplazamiento), y almacena la representación de caracteres multibyte en la matriz de caracteres cuyo primer elemento es apuntado por s. En la mayoría de los bytes MB_CUR_MAX puede ser escrito por esta función .
Original:
If s is not a null pointer, the function determines the number of bytes necessary to store the multibyte character representation of c32 (including any shift sequences), and stores the multibyte character representation in the character array whose first element is pointed to by s. At most MB_CUR_MAX bytes can be written by this function.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si s es un puntero nulo, la llamada es equivalente a std::c32rtomb(buf, U'\0', ps) por alguna buf buffer interno .
Original:
If s is a null pointer, the call is equivalent to std::c32rtomb(buf, U'\0', ps) for some internal buffer buf.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si c32 es el U'\0' nulo carácter amplio, un byte nulo es almacenado, precedida de una secuencia de cambios necesarios para restaurar el estado inicial de cambios y el estado de conversión *ps parámetro se actualiza para representar el estado inicial de cambios .
Original:
If c32 is the null wide character U'\0', a null byte is stored, preceded by any shift sequence necessary to restore the initial shift state and the conversion state parameter *ps is updated to represent the 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.
Si el __STDC_UTF_32__ macro se define, la codificación de 32-bit utilizado por esta función es UTF-32, de lo contrario, es definido por la implantación. En cualquier caso, la codificación multibyte utilizado por esta función se especifica por la configuración regional C actualmente activo .
Original:
If the macro __STDC_UTF_32__ is defined, the 32-bit encoding used by this function is UTF-32, otherwise it is implementation-defined. In any case, the multibyte encoding used by this function is specified by the currently active C locale.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar]Parámetros

s -
puntero al array de caracteres estrecho donde se realizará el carácter multibyte almacenados
Original:
pointer to narrow character array where the multibyte character will be stored
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
c32 -
el carácter de 32 bits para convertir
Original:
the 32-bit character to convert
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ps -
puntero al objeto de estado de conversión que se utiliza al interpretar la cadena multibyte
Original:
pointer to the conversion state object used when interpreting the multibyte string
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar]Valor de retorno

En caso de éxito, devuelve el número de bytes (incluyendo las secuencias de cambio) por escrito a la matriz de caracteres cuyo primer elemento es apuntado por s. Este valor puede ser 0, por ejemplo al procesar la primera char32_t en multi-char32_t-secuencia de caracteres (no se produce en UTF-32) .
Original:
On success, returns the number of bytes (including any shift sequences) written to the character array whose first element is pointed to by s. This value may be 0, e.g. when processing the first char32_t in multi-char32_t-character sequence (does not occur in UTF-32).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
En caso de fallo (si c32 no es válida 32-bit personaje), regresa -1, tiendas EILSEQ en errno y deja *ps en estado indeterminado .
Original:
On failure (if c32 is not a valid 32-bit character), returns -1, stores EILSEQ in errno, and leaves *ps in unspecified state.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar]Ver también

(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)[editar]
[virtual]
convierte una cadena de internt a externT, tales como cuando se escribe en el archivo
Original:
converts a string from internT to externT, such as when writing to file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función miembro virtual protegida de std::codecvt)[editar]
Documentación de C para c32rtomb
close