TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ skip_bom()

template<typename BasicJsonType , typename InputAdapterType >
bool nlohmann::detail::lexer< BasicJsonType, InputAdapterType >::skip_bom ( )
inline

skip the UTF-8 byte order mark

Returns
true iff there is no BOM or the correct BOM has been skipped

Definition at line 8093 of file json.hpp.

8094 {
8095 if (get() == 0xEF)
8096 {
8097 // check if we completely parse the BOM
8098 return get() == 0xBB && get() == 0xBF;
8099 }
8100
8101 // the first character is not the beginning of the BOM; unget it to
8102 // process is later
8103 unget();
8104 return true;
8105 }
void unget()
unget current character (read it again on next get)
Definition: json.hpp:7979