std::basic_filebuf::pbackfail
De cppreference.com
< cpp | io | basic filebuf
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
protected: virtual int_type pbackfail( int_type c = Traits::eof() ) |
||
Met le caractère
1) c
de nouveau dans la zone de get, dans l'une des trois façons suivantes: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.
Si
2) c
n'est pas le caractère EOF, tel que déterminé par l'appel Traits::eq_int_type(c,traits::eof()) et s'il ya de la place pour un putback, et si c
est exactement le personnage qui a été le plus lu récemment dans la zone get, tel que déterminé par Traits::eq(to_char_type(c),gptr()[-1])
, il vous suffit gptr()
décrémente par un .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.
Si
3) c
n'est pas le caractère EOF, tel que déterminé par l'appel Traits::eq_int_type(c,traits::eof()) et s'il ya de la place pour un putback, et si le tampon est autorisé à modifier les obtenir de la région, et décrémente gptr()
c
écrit là-bas. Notez que cela ne modifie pas la séquence de caractères associé (le fichier), mais seule la zone de la mémoire se .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.
Si
c
est le caractère EOF (Traits::eq_int_type(c,traits::eof()) retours true), et s'il ya de la place pour un putback, décrémente gptr()
. Cela a pour effet de rendre le dernier caractère lu disponibles pour la lecture une fois de plus .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.
Si le fichier n'est pas ouvert (is_open()==false, cette fonction retourne immédiatement .. Traits::eof()
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.
Sommaire |
[modifier] Paramètres
c | - | le caractère à putback ou 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. |
[modifier] Retourne la valeur
1-2) c
3) Traits::not_eof(c)
Traits::eof() en cas d'échec .
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.
[modifier] Exemple
This section is incomplete Reason: no example |
[modifier] Voir aussi
[ virtuel ]Original: virtual The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
met un caractère en arrière dans la séquence d'entrée, éventuellement de modifier la séquence d'entrée 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. (fonction membre virtuelle protégée de std::basic_streambuf )
|
déplace le pointeur suivant de l'arrière par une séquence d'entrée 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. (fonction membre publique de std::basic_streambuf )
| |
met un caractère en arrière dans la séquence d'entrée 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. (fonction membre publique de std::basic_streambuf )
| |
unextracts un caractère 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. (fonction membre publique de std::basic_istream )
| |
met caractère dans le flux d'entrée 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. (fonction membre publique de std::basic_istream )
|