std::basic_filebuf::pbackfail
Da cppreference.com.
< cpp | io | basic filebuf
![]() | 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 pbackfail( int_type c = Traits::eof()) | ||
Mette il carattere
1) c
indietro nell'area get, in uno dei tre modi:Original:
Puts the character
c
back into the get area, in one of the three ways: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.
c
se non è il carattere EOF, come determinato chiamando Traits::eq_int_type(c,traits::eof()) e se vi è spazio per un putback, e se c
è esattamente il personaggio che è stato più recentemente letto dalla zona get, come determinato da Traits::eq(to_char_type(c),gptr()[-1])
, quindi semplicemente gptr()
decrementa di uno.Original:
If
c
is not the EOF character, as determined by calling Traits::eq_int_type(c,traits::eof()) and if there is room for a putback, and if c
is exactly the character that was most recently read from the get area, as determined by Traits::eq(to_char_type(c),gptr()[-1])
, then simply decrements gptr()
by one.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
3) c
non è il carattere EOF, come determinata dalla chiamata Traits::eq_int_type(c,traits::eof()) e se c'è spazio per un putback, e se il buffer è permesso di modificare le ottenere zona, diminuisce gptr()
e c
scrive a lì. Si noti che questo non modifica la sequenza di caratteri associata (il file), ma solo la zona di ottenere in memoria.Original:
If
c
is not the EOF character, as determined by calling Traits::eq_int_type(c,traits::eof()) and if there is room for a putback, and if the buffer is allowed to modify the get area, decrements gptr()
and writes c
to there. Note that this does not modify the associated character sequence (the file), but only the get area in memory.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
c
è il carattere EOF (Traits::eq_int_type(c,traits::eof()) ritorna true), e se c'è spazio per un putback, decrementa gptr()
. Questo ha l'effetto di rendere il carattere letto disponibili per la lettura di nuovo.Original:
If
c
is the EOF character (Traits::eq_int_type(c,traits::eof()) returns true), and if there is room for a putback, decrements gptr()
. This has the effect of making the last character read available for reading once again.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 non è aperto (is_open()==false, questa funzione restituisce Traits::eof() immediatamente.
Original:
If the file is not open (is_open()==false, this function returns Traits::eof() immediately.
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
c | - | il carattere di putback, o eof Original: the character to putback, or eof The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifica]Valore di ritorno
1-2) c
3) Traits::not_eof(c)
Traits::eof() in caso di guasto.
Original:
Traits::eof() in case of 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] | mette un carattere indietro nella sequenza di ingresso, eventualmente modificando la sequenza di ingresso Original: puts a character back into the input sequence, possibly modifying the input sequence 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) |
sposta il puntatore successivo nella sequenza di input retro di uno Original: moves the next pointer in the input sequence back by one The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (metodo pubblico) | |
mette un carattere indietro nella sequenza di input Original: puts one character back in the input sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (metodo pubblico) | |
unextracts un carattere Original: unextracts a character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (metodo pubblico) | |
mette carattere nel flusso di input Original: puts character into input stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (metodo pubblico) |