MCPcopy Create free account
hub / github.com/Samsung/UTopia / getClassNameWithNamespace

Function getClassNameWithNamespace

lib/utils/StringUtil.cpp:83–94  ·  view source on GitHub ↗

TOBE : handle anonymous namespace

Source from the content-addressed store, hash-verified

81
82// TOBE : handle anonymous namespace
83std::string getClassNameWithNamespace(std::string FullMethodName) {
84 std::vector<std::string> Tokens = util::split(FullMethodName, "::");
85 if (Tokens.size() == 1)
86 return "";
87 std::string ClassName;
88 int i;
89 for (i = 0; i < (signed)Tokens.size() - 2; i++) {
90 ClassName += Tokens[i] + "::";
91 }
92 ClassName += Tokens[i];
93 return ClassName;
94}
95
96std::string getMethodName(std::string FullMethodName) {
97 std::vector<std::string> Tokens = util::split(FullMethodName, "::");

Callers 2

FunctionNodeMethod · 0.85
TEST_FFunction · 0.85

Calls 2

splitFunction · 0.85
sizeMethod · 0.80

Tested by 1

TEST_FFunction · 0.68