std::basic_filebuf::pbackfail
Aus cppreference.com
<metanoindex/>
<tbody> </tbody> protected: virtual int_type pbackfail( int_type c = Traits::eof() ) |
||
Versetzt den Charakter
c zurück in die get-Bereich, in einer der drei Möglichkeiten: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.
1)
Wenn
c nicht die EOF-Zeichen, wie durch den Aufruf Traits::eq_int_type(c,traits::eof()) und wenn es Raum für eine putback bestimmt, und wenn c genau ist das Zeichen, dass wurde zuletzt von der get-Bereich, wie Traits::eq(to_char_type(c),gptr()[-1]) bestimmt, dann einfach dekrementiert gptr() einzeln gelesen .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.
2)
Wenn
c nicht das EOF-Zeichen, wie durch Aufrufen Traits::eq_int_type(c,traits::eof()) und wenn es Raum für eine putback bestimmt, und wenn der Puffer erlaubt, die Fläche zu erhalten, dekrementiert gptr() modifizieren und schreibt c nach dort. Beachten Sie, dass dies nicht zu ändern die zugehörige Zeichenfolge (die Datei), sondern nur die sich im Arbeitsspeicher .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.
3)
Wenn
c ist die EOF-Zeichen (Traits::eq_int_type(c,traits::eof()) kehrt true), und wenn es Raum für eine putback, dekrementiert gptr(). Dies hat den Effekt, dass das letzte Zeichen ausgelesen zum Lesen wieder .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.
Wenn die Datei nicht geöffnet ist (
is_open()==false diese Funktion kehrt Traits::eof() sofort .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.
Parameter
| c | - | das Zeichen putback oder 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. |
Rückgabewert
1-2) c
3) Traits::not_eof(c)
Traits::eof() im Falle des Scheiterns .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.
Beispiel
| This section is incomplete Reason: no example |
