! @brief skip the UTF-8 byte order mark @return true iff there is no BOM or the correct BOM has been skipped */
| 8785 | @return true iff there is no BOM or the correct BOM has been skipped |
| 8786 | */ |
| 8787 | bool skip_bom() |
| 8788 | { |
| 8789 | if (get() == 0xEF) |
| 8790 | { |
| 8791 | // check if we completely parse the BOM |
| 8792 | return get() == 0xBB && get() == 0xBF; |
| 8793 | } |
| 8794 | |
| 8795 | // the first character is not the beginning of the BOM; unget it to |
| 8796 | // process is later |
| 8797 | unget(); |
| 8798 | return true; |
| 8799 | } |
| 8800 | |
| 8801 | void skip_whitespace() |
| 8802 | { |