std::basic_filebuf::pbackfail
De cppreference.com
|
|
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
protected: virtual int_type pbackfail( int_type c = Traits::eof() ) |
||
Pone el carácter
c de nuevo en el área de obtención, en una de las tres maneras: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)
Si
c no es el carácter EOF, tal como se determina llamando Traits::eq_int_type(c,traits::eof()) y si hay espacio para un lanzamiento de dos, y si c es exactamente el carácter que fue más recientemente leído del área get, según lo determinado por Traits::eq(to_char_type(c),gptr()[-1]), entonces simplemente gptr() decrementa por 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.
2)
Si
c no es el carácter EOF, según lo determinado por llamar Traits::eq_int_type(c,traits::eof()) y si hay espacio para un rebote ofensivo, y si el buffer está permitido modificar el GET de la zona, disminuye gptr() c y escribe allí. Tenga en cuenta que esto no modifica la secuencia de caracteres asociado (el archivo), pero sólo el área de obtener en la 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.
3)
Si
c es el carácter EOF (Traits::eq_int_type(c,traits::eof()) vuelve true), y si hay espacio para un lanzamiento de dos, disminuye gptr(). Esto tiene el efecto de hacer que el último carácter leído disponibles para leer una vez más .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 el archivo no está abierto (
is_open()==false, esta función devuelve inmediatamente 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.
Parámetros
| c | - | el carácter a 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. |
Valor de retorno
1-2) c
3) Traits::not_eof(c)
Traits::eof() en caso de fallo .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.
Ejemplo
| Esta sección está incompleta Razón: sin ejemplo |
Ver también
[virtual] |
Pone un carácter de nuevo en la secuencia de entrada, posiblemente modificando tal secuencia. (función miembro virtual protegida de std::basic_streambuf<CharT,Traits>)
|
| Mueve el puntero siguiente en la secuencia de entrada hacia atrás en uno. (función miembro pública de std::basic_streambuf<CharT,Traits>)
| |
| Pone un carácter de nuevo en la secuencia de entrada. (función miembro pública de std::basic_streambuf<CharT,Traits>)
| |
unextracts un carácter 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. (función miembro pública de std::basic_istream)
| |
pone personaje en la corriente 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. (función miembro pública de std::basic_istream)
|