MCPcopy Create free account
hub / github.com/apache/thrift / get_namespace

Method get_namespace

compiler/cpp/src/thrift/parse/t_program.h:321–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319 }
320
321 std::string get_namespace(std::string language) const {
322 std::map<std::string, std::string>::const_iterator iter;
323 if ((iter = namespaces_.find(language)) != namespaces_.end()
324 || (iter = namespaces_.find("*")) != namespaces_.end()) {
325 return iter->second;
326 }
327 return std::string();
328 }
329
330 const std::map<std::string, std::string>& get_all_namespaces() const {
331 return namespaces_;

Callers 1

is_common_namespaceMethod · 0.45

Calls 3

stringFunction · 0.85
findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected