! @brief skip the UTF-8 byte order mark @return true iff there is no BOM or the correct BOM has been skipped */
| 7355 | @return true iff there is no BOM or the correct BOM has been skipped |
| 7356 | */ |
| 7357 | bool skip_bom() |
| 7358 | { |
| 7359 | if (get() == 0xEF) |
| 7360 | { |
| 7361 | // check if we completely parse the BOM |
| 7362 | return get() == 0xBB && get() == 0xBF; |
| 7363 | } |
| 7364 | |
| 7365 | // the first character is not the beginning of the BOM; unget it to |
| 7366 | // process is later |
| 7367 | unget(); |
| 7368 | return true; |
| 7369 | } |
| 7370 | |
| 7371 | void skip_whitespace() |
| 7372 | { |