Espacios de nombres
Variantes
Acciones

std::codecvt::unshift, std::codecvt::do_unshift

De cppreference.com
< cpp‎ | locale‎ | codecvt

 
 
Localizaciones biblioteca
Locales y facetas
Original:
Locales and facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
locale
Carácter clasificación
Original:
Character classification
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Conversiones
Original:
Conversions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Facet clases categoría base
Original:
Facet category base classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Categorías faceta
Original:
Facet categories
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Específico de la localidad facetas
Original:
Locale-specific facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Facetas código de conversión
Original:
Code conversion facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
codecvt_utf8(C++11)
codecvt_utf16(C++11)
C locale
Original:
C locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
 
Defined in header <locale>
public:

result unshift( stateT& state,
                externT* to,
                externT* to_end,

                externT*& to_next) const
(1)
protected:

result do_unshift( stateT& state,
                   externT* to,
                   externT* to_end,

                   externT*& to_next) const
(2)
1)
función miembro pública, llama a la función do_unshift miembro de la clase más derivada .
Original:
public member function, calls the member function do_unshift of the most derived class.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
si la codificación representada por esta faceta codecvt es dependiente del estado, y state representa un estado de conversión que no es el estado inicial de cambios, escribe los caracteres necesarios para volver al estado inicial de cambios. Los caracteres se escriben en una matriz de caracteres cuyo primer elemento es apuntado por to. No más de to_end-to caracteres se escriben. El to_next parámetro se actualiza para señalar un más allá del último carácter escrito .
Original:
if the encoding represented by this codecvt facet is state-dependent, and state represents a conversion state that is not the initial shift state, writes the characters necessary to return to the initial shift state. The characters are written to a character array whose first element is pointed to by to. No more than to_end-to characters are written. The parameter to_next is updated to point one past the last character written.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Contenido

[editar] Valor de retorno

Un valor de std::codecvt_base::result tipo, que indica el estado de éxito de la siguiente manera:
Original:
A value of type std::codecvt_base::result, indicating the success status as follows:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ok
todos los caracteres necesarios fueron escritos. state ahora representa el estado inicial de cambios
Original:
all necessary characters were written. state now 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.
partial
no hay suficiente espacio en la memoria intermedia de salida. to_next == to_end
Original:
not enough space in the output buffer. to_next == to_end
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
error
error no especificado
Original:
unspecified error occurred
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
noconv
la codificación no es dependiente del estado, ninguna secuencia de terminación necesario
Original:
the encoding is not state-dependent, no termination sequence necessary
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La especialización no convertir std::codecvt<char, char, std::mbstate_t> siempre devuelve std::codecvt_base::noconv
Original:
The non-converting specialization std::codecvt<char, char, std::mbstate_t> always returns std::codecvt_base::noconv
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Notas

Esta función es llamada por std::basic_filebuf::close() y en otras situaciones al finalizar una secuencia multibyte dependiente del estado personaje .
Original:
This function is called by std::basic_filebuf::close() and in other situations when finalizing a state-dependent multibyte character sequence.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Ejemplo

[editar] Ver también

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]
[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.

(virtuales protegidos miembro de función) [edit]