std::basic_filebuf::pbackfail
提供: cppreference.com
< cpp | io | basic filebuf
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
protected: virtual int_type pbackfail( int_type c = Traits::eof() ) |
||
3つの方法のいずれかで、
1) c
取り戻すエリアに文字を入れます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ずつデクリメント
2) c
Traits::eq_int_type(c,traits::eof())は、プットバックの余地がある場合c
を呼び出すとによって決定されるEOF文字でない場合、およびTraits::eq(to_char_type(c),gptr()[-1])
はまさに最も最近gptr()
によって決定されるように、get領域から読み込まれた文字である場合.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.
c
がEOF文字でない場合は、プットバックの余地がある場合Traits::eq_int_type(c,traits::eof())を呼び出すとによって決定され、バッファは取得面積、デクリメントgptr()
を修正することを許可されていて、そこにc
を書き込みます。これは関連する文字列(ファイル)を変更しませんが、専用メモリ領域を取得.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.
c
は、EOF文字(Traits::eq_int_type(c,traits::eof())戻りtrue)で、プットバックの余地がある場合、デクリメントgptr()
。場合これが最後の文字が再度読み取り可能な読みにするという効果を持っている.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.
ファイルが開いていない場合(is_open()==false、この関数が返す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.
目次 |
[編集] パラメータ
c | - | プットバック、または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. |
[編集] 値を返します
1-2) c
3) Traits::not_eof(c)
Traits::eof()障害が発生した場合の.
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.
[編集] 例
This section is incomplete Reason: no example |
[編集] も参照してください
[仮想] |
おそらく入力シーケンスを変更して、入力シーケンスに戻す文字を入れます 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. (仮想protectedメンバ関数of std::basic_streambuf )
|
入力シーケンス内の次のポインタは1で戻ります 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 )
| |
入力シーケンスで1つ前の文字を入れます 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 )
| |
文字をunextracts 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 )
| |
入力ストリームに文字を入れます 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 )
|