MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / ParseFalse

Method ParseFalse

rapidjson/reader.h:731–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729
730 template<unsigned parseFlags, typename InputStream, typename Handler>
731 void ParseFalse(InputStream& is, Handler& handler) {
732 RAPIDJSON_ASSERT(is.Peek() == 'f');
733 is.Take();
734
735 if (RAPIDJSON_LIKELY(Consume(is, 'a') && Consume(is, 'l') && Consume(is, 's') && Consume(is, 'e'))) {
736 if (RAPIDJSON_UNLIKELY(!handler.Bool(false)))
737 RAPIDJSON_PARSE_ERROR(kParseErrorTermination, is.Tell());
738 }
739 else
740 RAPIDJSON_PARSE_ERROR(kParseErrorValueInvalid, is.Tell());
741 }
742
743 template<typename InputStream>
744 RAPIDJSON_FORCEINLINE static bool Consume(InputStream& is, typename InputStream::Ch expect) {

Callers

nothing calls this directly

Calls 4

PeekMethod · 0.45
TakeMethod · 0.45
BoolMethod · 0.45
TellMethod · 0.45

Tested by

no test coverage detected