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:
@ -67,9 +67,15 @@ int main(int argc, char *argv[])
|
||||
while (is.good())
|
||||
{
|
||||
token tok(is);
|
||||
// char ch;
|
||||
// is.get(ch);
|
||||
// is.putback(ch);
|
||||
int lookahead = is.peek();
|
||||
|
||||
if (count == 0)
|
||||
{
|
||||
Info<< "token: " << tok.info() << endl;
|
||||
Info<< "token: " << tok.info();
|
||||
Info<< " lookahead: '" << char(lookahead) << "'" << endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user