cpp/io/basic filebuf/overflow: differenze tra le versioni
Da cppreference.com.
< cpp | io | basic filebuf
P12 (Discussione | contributi) m (una revisione importata: Translate from the English version) |
m (r2.7.3) (Bot: Aggiungo de, en, es, fr, ja, pt, ru, zh) |
||
Riga 31: | Riga 31: | ||
{{dcl list template | cpp/io/basic_filebuf/dcl list underflow}} | {{dcl list template | cpp/io/basic_filebuf/dcl list underflow}} | ||
{{dcl list end}} | {{dcl list end}} | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ |
Versione delle 22:38, 2 nov 2012
![]() |
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
protected: virtual int_type overflow ( int_type c = Traits::eof() ); |
||
Si comporta come il std::basic_streambuf::overflow classe di base, salvo che per scrivere i dati dall'area di messa alla sequenza di caratteri associata (al file), utilizza prima codecvt::out() del locale imbevuta per convertire i caratteri in esterno (possibilmente multibyte) rappresentazione, memorizzata in un buffer temporaneo (allocato grande quanto necessario), quindi utilizza file di I / O per copiare tutti completamente convertiti byte nel file.
Original:
Behaves like the base class std::basic_streambuf::overflow, except that to write the data from the put area to the associated character sequence (to the file), first uses codecvt::out() of the imbued locale to convert the characters into external (possibly multibyte) representation, stored in a temporary buffer (allocated as large as necessary), then uses file I/O to copy all fully-converted bytes into the file.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Se la conversione non riesce con std::codecvt_base::error, restituisce Traits::eof() senza tentare alcun output.
Original:
If the conversion fails with std::codecvt_base::error, returns Traits::eof() without attempting any output.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Se il file associato non è aperto (is_open()==false, restituisce Traits::eof() prima di fare qualsiasi cosa.
Original:
If the associated file is not open (is_open()==false, returns Traits::eof() before doing anything.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Indice |
Parametri
(Nessuno)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Valore di ritorno
Traits::not_eof(c) per indicare il successo o Traits::eof() per indicare l'errore.
Original:
Traits::not_eof(c) to indicate success or Traits::eof() to indicate failure.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Esempio
This section is incomplete Reason: no example |