std::codecvt::unshift, std::codecvt::do_unshift - cppreference.com
De cppreference.com
<metanoindex/>
<tbody> </tbody>
| Definido no cabeçalho <locale> |
||
|
|
(1) | |
|
|
(2) | |
1)
função de membro público, chama a do_unshift função de membro da classe derivada mais.
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)
se a codificação representado por esta faceta codecvt é dependente do estado, e state representa um estado de conversão que não é o estado inicial turno, escreve os caracteres necessários para regressar ao estado inicial turno. Os caracteres são escritos para uma matriz de caracteres cujo primeiro elemento é apontado por to. Não mais do que personagens to_end-to são escritos. O to_next parâmetro é atualizado para apontar um passado o último caractere 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.
Valor de retorno
Um valor de std::codecvt_base::result tipo, que indica o estado de sucesso da seguinte forma:
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 os caracteres necessários foram escritos. Original: all necessary characters were written. The text has been machine-translated via Google Translate. |
partial
|
não há espaço suficiente no buffer de saída. Original: not enough space in the output buffer. The text has been machine-translated via Google Translate. |
error
|
erro não especificado ocorreu Original: unspecified error occurred The text has been machine-translated via Google Translate. |
noconv
|
a codificação não é dependente do estado, nenhuma seqüência de terminação necessário Original: the encoding is not state-dependent, no termination sequence necessary The text has been machine-translated via Google Translate. |
A especialização não-conversão std::codecvt<char, char, std::mbstate_t> sempre retorna 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.
Notas
Esta função é chamada por std::basic_filebuf::close() e em outras situações de finalização de um estado-dependente sequência de caracteres multibyte.
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.
Exemplo
Veja também
converte um caractere largo em sua representação multibyte, determinado estado Original: converts a wide character to its multibyte representation, given state The text has been machine-translated via Google Translate. (função) [edit] | |
Converte uma cadeia de internt para externT, como ao escrever para o arquivo Original: converts a string from internT to externT, such as when writing to file The text has been machine-translated via Google Translate. (virtual protegido função de membro) [edit] | |