std::basic_filebuf::pbackfail
Da 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() ) |
||
Coloca o carácter
1) c
de volta para a área de get, em uma das três formas: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.
Se
2) c
não é o carácter EOF, conforme determinado ligando Traits::eq_int_type(c,traits::eof()) e se existe espaço para um putback, e se c
é exactamente o caractere que foi mais recentemente ler a partir da área get, conforme determinado por Traits::eq(to_char_type(c),gptr()[-1])
, em seguida, simplesmente por um gptr()
decrementa.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
não é o personagem EOF, como determinado chamando Traits::eq_int_type(c,traits::eof()) e se há espaço para uma putback, e se o tampão é permitido modificar o GET área, diminui gptr()
e escreve c
para lá. Note-se que esta não modifica a seqüência de caracteres associada (o arquivo), mas apenas o começo área na memória.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
é o personagem EOF (Traits::eq_int_type(c,traits::eof()) retornos true), e se há espaço para uma putback, diminui gptr()
. Isto tem o efeito de tornar o último caracter lido disponível para a leitura, mais uma vez.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 o arquivo não está aberto (is_open()==false, esta função retorna Traits::eof() imediatamente.
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.
Índice |
[editar] Parâmetros
c | - | o personagem 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. |
[editar] Valor de retorno
1-2) c
3) Traits::not_eof(c)
Traits::eof() em caso de falha.
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.
[editar] Exemplo
Esta seção está incompleta Motivo: sem exemplo |
[editar] Veja também
[virtual] |
coloca um caractere de volta para a sequência de entrada, possivelmente modificando a sequência de entrada 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. (virtual protegido of std::basic_streambuf função de membro)
|
move o ponteiro próximo da sequência de entrada volta a um 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. (of std::basic_streambuf função pública membro)
| |
coloca um personagem de volta na seqüência de entrada 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. (of std::basic_streambuf função pública membro)
| |
unextracts um personagem 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. (of std::basic_istream função pública membro)
| |
coloca personagem em fluxo de entrada 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. (of std::basic_istream função pública membro)
|