MCPcopy Create free account
hub / github.com/apache/impala / DemangleNameOnly

Method DemangleNameOnly

be/src/util/symbols-util.cc:76–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76string SymbolsUtil::DemangleNameOnly(const string& symbol) {
77 string fn_name = DemangleNoArgs(symbol);
78 // Chop off namespace and/or class name if present (e.g. "impala::foo" => "foo")
79 // TODO: fix for templates
80 return fn_name.substr(fn_name.find_last_of(':') + 1);
81}
82
83// Appends <Length><String> to the stream.
84// e.g. Hello --> "5Hello"

Callers

nothing calls this directly

Calls 2

substrMethod · 0.80
find_last_ofMethod · 0.45

Tested by

no test coverage detected