MCPcopy Create free account
hub / github.com/acl-dev/acl / check_include

Method check_include

lib_acl_cpp/src/serialize/gsoner.cpp:578–600  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

576}
577
578bool gsoner::check_include(void)
579{
580 std::string tmp = codes_.substr(pos_, strlen("#include"));
581 if (tmp == "#include") {
582 pos_ += (int) strlen("#include");
583 skip_space_comment();
584 char sym = codes_[pos_++];
585 if(sym == '<') {
586 sym = '>';
587 }
588 std::string include;
589 while (codes_[pos_] != sym) {
590 include.push_back(codes_[pos_]);
591 pos_++;
592 }
593 pos_++;
594 includes_.push_back(include);
595
596 return true;
597 }
598
599 return false;
600}
601
602bool gsoner::check_comment(void)
603{

Callers

nothing calls this directly

Calls 2

substrMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected