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

Method check_use_namespace

lib_acl_cpp/src/serialize/gsoner.cpp:353–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353bool gsoner::check_use_namespace(void)
354{
355 //using namespace xxx;
356 int pos = pos_;
357 std::string token = codes_.substr(pos_, strlen("using"));
358 if (token == "using") {
359 pos_ += (int)strlen("using");
360 if(next_token(default_delimiters_) == "namespace") {
361 token = next_token(default_delimiters_ + ";");
362 pos_++;//skip ;
363 std::cout << "find:using namespace " << token << std::endl;;
364 return true;
365 }
366 }
367 pos_ = pos;
368 return false;
369}
370
371bool gsoner::check_namespace(void)
372{

Callers

nothing calls this directly

Calls 2

next_tokenFunction · 0.85
substrMethod · 0.80

Tested by

no test coverage detected