MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / skip_bom

Function skip_bom

Source/Utils/json.hpp:7357–7369  ·  view source on GitHub ↗

! @brief skip the UTF-8 byte order mark @return true iff there is no BOM or the correct BOM has been skipped */

Source from the content-addressed store, hash-verified

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 {

Callers 1

scanFunction · 0.85

Calls 2

getFunction · 0.85
ungetFunction · 0.85

Tested by

no test coverage detected