mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Add missing low-level peek() to ISstream.
This commit is contained in:
@ -137,6 +137,12 @@ public:
|
||||
//- Raw, low-level get character function.
|
||||
inline ISstream& get(char&);
|
||||
|
||||
//- Raw, low-level peek function.
|
||||
// Does not remove the character from the stream.
|
||||
// Returns the next character in the stream or EOF if the
|
||||
// end of file is read.
|
||||
inline int peek();
|
||||
|
||||
//- Raw, low-level getline into a string function.
|
||||
inline ISstream& getLine(string&);
|
||||
|
||||
|
||||
@ -69,6 +69,12 @@ inline Foam::ISstream& Foam::ISstream::get(char& c)
|
||||
}
|
||||
|
||||
|
||||
inline int Foam::ISstream::peek()
|
||||
{
|
||||
return is_.peek();
|
||||
}
|
||||
|
||||
|
||||
inline Foam::ISstream& Foam::ISstream::getLine(string& s)
|
||||
{
|
||||
getline(is_, s);
|
||||
|
||||
Reference in New Issue
Block a user