MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / expect

Method expect

libraries/AP_JSON/AP_JSON.cpp:447–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445 }
446 }
447 bool expect(const int expected)
448 {
449 skip_ws();
450 if (getc() != expected) {
451 ungetc();
452 return false;
453 }
454 return true;
455 }
456 bool match(const std::string &pattern)
457 {
458 for (std::string::const_iterator pi(pattern.begin()); pi != pattern.end(); ++pi) {

Callers 2

_parse_arrayFunction · 0.45
_parse_objectFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected