peek ahead
| 195 | |
| 196 | // peek ahead |
| 197 | byte input_buffer::peek() |
| 198 | { |
| 199 | if (error_ == 0 && check(current_, size_) == 0) |
| 200 | return buffer_[current_]; |
| 201 | |
| 202 | error_ = -1; |
| 203 | return 0; |
| 204 | } |
| 205 | |
| 206 | |
| 207 | // write function, should use at/near construction |