名前空間
変種
操作

std::basic_filebuf::pbackfail

提供: cppreference.com
< cpp‎ | io‎ | basic filebuf

 
 
 
std::basic_filebuf
パブリックメンバ関数
Original:
Public member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
メンバ関数を保護しました
Original:
Protected member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_filebuf::pbackfail
非メンバ関数
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
protected:
virtual int_type pbackfail( int_type c = Traits::eof() )
3つの方法のいずれかで、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.
1)
単純に、1ずつデクリメントcTraits::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.
2)
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.
3)
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.
ファイルが開いていない場合(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.

目次

[編集] パラメータ

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.

[編集]

[編集] 参照

[仮想]
おそらく入力シーケンスを変更して、入力シーケンスに戻す文字を入れます
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.

(std::basic_streambufの仮想protectedメンバ関数) [edit]
入力シーケンス内の次のポインタは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.

(std::basic_streambufのパブリックメンバ関数) [edit]
入力シーケンスで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.

(std::basic_streambufのパブリックメンバ関数) [edit]
文字の抽出を取り消します
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.

(std::basic_istreamのパブリックメンバ関数) [edit]
入力ストリームに文字を入れます
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.

(std::basic_istreamのパブリックメンバ関数) [edit]