MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / expect

Method expect

externals/picojson/picojson.h:698–705  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696 }
697 }
698 bool expect(const int expected) {
699 skip_ws();
700 if (getc() != expected) {
701 ungetc();
702 return false;
703 }
704 return true;
705 }
706 bool match(const std::string &pattern) {
707 for (std::string::const_iterator pi(pattern.begin()); pi != pattern.end(); ++pi) {
708 if (getc() != *pi) {

Callers 2

_parse_arrayFunction · 0.80
_parse_objectFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected