| 400 | } |
| 401 | |
| 402 | int istream_real::peek() { |
| 403 | if (mPos >= mBufferLen && fl::available() > 0) { |
| 404 | if (!readLine()) { |
| 405 | return -1; |
| 406 | } |
| 407 | } |
| 408 | |
| 409 | if (mPos < mBufferLen) { |
| 410 | return static_cast<int>(static_cast<unsigned char>(mBuffer[mPos])); |
| 411 | } |
| 412 | |
| 413 | return -1; |
| 414 | } |
| 415 | |
| 416 | } // namespace fl |
no test coverage detected