close
Varianti

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

Da cppreference.com.

<metanoindex/>

 
 
Localizzazioni libreria
Impostazioni internazionali e sfaccettature
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
Carattere classificazione
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.
Conversioni
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 categoria classi di 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.
Facet categorie
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.
Locale specifici aspetti
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.
Codice di conversione sfaccettature
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.
 
 
<tbody> </tbody>
Elemento definito nell'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)

funzione membro pubblica, chiama la do_unshift funzione membro della classe più derivata.
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 la codifica rappresentato da questa faccetta codecvt è stato-dipendente, e state rappresenta uno stato di conversione che non è stato spostamento iniziale, scrive i caratteri necessari per ritornare allo stato iniziale di spostamento. I personaggi sono scritti in un array di caratteri il cui primo elemento è puntato da to. Non più di caratteri to_end-to sono scritti. Il to_next parametro viene aggiornato per puntare un passato l'ultimo carattere scritto.
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.

Valore di ritorno

Un valore di std::codecvt_base::result tipo, che indica lo stato di successo come segue:
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
tutti i caratteri necessari sono stati scritti. state ora rappresenta lo stato iniziale del cambio
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
abbastanza spazio nel buffer di uscita. 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
Errore non specificato
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 codifica non è dipendente dallo stato, nessuna sequenza di terminazione necessarie
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 specializzazione non convertire std::codecvt<char, char, std::mbstate_t> restituisce sempre 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.

Note

Questa funzione viene chiamata da std::basic_filebuf::close() e in altre situazioni in cui la finalizzazione di un dipendente dallo stato sequenza di caratteri 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.

Esempio

Vedi anche

converte un carattere esteso alla sua rappresentazione multibyte, determinato stato
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.

(funzione) [modifica]
[virtuale]
converte una stringa da internt a externT, come ad esempio durante la scrittura su file
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.

(virtuale protetto funzione membro) [modifica]