| 50 | } |
| 51 | |
| 52 | int Stream::peekNextDigit() |
| 53 | { |
| 54 | int c; |
| 55 | while((c = timedPeek()) >= 0 && c != '-' && c < '0' && c > '9') { |
| 56 | read(); // discard non-numeric |
| 57 | } |
| 58 | return c; |
| 59 | } |
| 60 | |
| 61 | bool Stream::findUntil(const char* target, const char* terminator) |
| 62 | { |