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

Method check_namespace

lib_acl_cpp/src/serialize/gsoner.cpp:371–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371bool gsoner::check_namespace(void)
372{
373 std::string temp = codes_.substr(pos_, strlen("namespace"));
374 if (temp == "namespace") {
375 pos_ += (int) strlen("namespace");
376 std::string name = next_token(default_delimiters_+"{");
377 namespaces_.push_back(name);
378 pos_++; //skip {
379 return true;
380 }
381
382 return false;
383}
384
385bool gsoner::check_namespace_end(void)
386{

Callers

nothing calls this directly

Calls 3

next_tokenFunction · 0.85
substrMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected