MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / skip_bom

Function skip_bom

Source/external/json.hpp:8787–8799  ·  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

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 {

Callers 1

scanFunction · 0.85

Calls 2

getFunction · 0.85
ungetFunction · 0.85

Tested by

no test coverage detected