cpp/io/basic filebuf/overflow: differenze tra le versioni
Da cppreference.com.
< cpp | io | basic filebuf
m (r2.7.3) (Bot: Aggiungo de, en, es, fr, ja, pt, ru, zh) |
m (Use {{lc}}. Update links. Various fixes.) |
||
Riga 9: | Riga 9: | ||
{{tr|Si comporta come il {{c|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 {{ltt|cpp/locale/codecvt/do_out|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.|Behaves like the base class {{c|std::basic_streambuf::overflow}}, except that to write the data from the put area to the associated character sequence (to the file), first uses {{ltt|cpp/locale/codecvt/do_out|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.}} | {{tr|Si comporta come il {{c|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 {{ltt|cpp/locale/codecvt/do_out|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.|Behaves like the base class {{c|std::basic_streambuf::overflow}}, except that to write the data from the put area to the associated character sequence (to the file), first uses {{ltt|cpp/locale/codecvt/do_out|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.}} | ||
− | {{tr|Se la conversione non riesce con {{ | + | {{tr|Se la conversione non riesce con {{|std::codecvt_base::error}}, restituisce {{c|Traits::eof()}} senza tentare alcun output.|If the conversion fails with {{|std::codecvt_base::error}}, returns {{c|Traits::eof()}} without attempting any output.}} |
{{tr|Se il file associato non è aperto ({{c|1=is_open()==false}}, restituisce {{c|Traits::eof()}} prima di fare qualsiasi cosa.|If the associated file is not open ({{c|1=is_open()==false}}, returns {{c|Traits::eof()}} before doing anything.}} | {{tr|Se il file associato non è aperto ({{c|1=is_open()==false}}, restituisce {{c|Traits::eof()}} prima di fare qualsiasi cosa.|If the associated file is not open ({{c|1=is_open()==false}}, returns {{c|Traits::eof()}} before doing anything.}} | ||
Riga 27: | Riga 27: | ||
===Vedi anche=== | ===Vedi anche=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| cpp/io/basic_streambuf/overflow}} |
− | {{ | + | {{| cpp/io/basic_filebuf/underflow}} |
− | {{ | + | {{end}} |
[[de:cpp/io/basic filebuf/overflow]] | [[de:cpp/io/basic filebuf/overflow]] |
Versione attuale delle 13:12, 2 lug 2013
![]() |
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 |
[modifica] 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.
[modifica] 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.
[modifica] Esempio
This section is incomplete Reason: no example |
[modifica] Vedi anche
[virtuale] |
scrive caratteri della sequenza di emissione associato dalla zona put Original: writes characters to the associated output sequence from the put area 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 of std::basic_streambuf membro)
|
[virtuale] |
legge dal file associato Original: reads from the associated 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) |