std::basic_filebuf::pbackfail
来自cppreference.com
< cpp | io | basic filebuf
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
protected: virtual int_type pbackfail( int_type c = Traits::eof() ) |
||
放的性格
1) c
回到取回区,在三种方式之一:原文:
Puts the character
c
back into the get area, in one of the three ways:如果
2) c
不是EOF字符,通过调用Traits::eq_int_type(c,traits::eof()),如果有房间的补篮确定,并且如果c
是完全相同的字符,最近读的从由一个“获取”区,所确定的Traits::eq(to_char_type(c),gptr()[-1])
,然后简单地递减gptr()
.原文:
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.如果
3) c
不是EOF字符,通过调用Traits::eq_int_type(c,traits::eof()),如果有房间的补篮确定,并且如果缓冲器被允许修改的get区,递减gptr()
和写入c
到那里。请注意,这并不修改相关联的字符序列(文件),但只在内存中的get区.原文:
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.如果
c
是EOF的字符(Traits::eq_int_type(c,traits::eof())回报true),并且如果有空间的一个补篮,递减gptr()
。这具有的效果,使读取的最后一个字符可用于读再次.原文:
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.如果该文件是不公开的(is_open()==false,该函数返回Traits::eof()立即.
原文:
If the file is not open (is_open()==false, this function returns Traits::eof() immediately.
目录 |
[编辑] 参数
c | - | 补篮,或EOF的字符
|
[编辑] 返回值
1-2) c
3) Traits::not_eof(c)
Traits::eof()失败的情况下.
[编辑] 示例
本章尚未完成 原因:暂无示例 |
[编辑] 另请参阅
[虚]</div></div>
|
将一个字符返回到输入序列中,有可能修改的输入序列中 原文: puts a character back into the input sequence, possibly modifying the input sequence (虚拟保护成员函数of std::basic_streambuf )
|
输入序列中的背面由一个移动的下一个指针 原文: moves the next pointer in the input sequence back by one (公共成员函数of std::basic_streambuf )
| |
把输入序列中的一个字符 原文: puts one character back in the input sequence (公共成员函数of std::basic_streambuf )
| |
unextracts一个字符 (公共成员函数of std::basic_istream )
| |
字符到输入流 (公共成员函数of std::basic_istream )
|