MCPcopy Create free account
hub / github.com/bcndev/bytecoin / demangle

Method demangle

src/common/exception.cpp:20–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20std::string common::demangle(const char *name) {
21 std::string str = boost::core::demangle(name);
22 boost::replace_all(str, "cn::", "");
23 boost::replace_all(str, "api::walletd::", "");
24 boost::replace_all(str, "api::cnd::", "");
25 boost::replace_all(str, "crypto::", "");
26 return str;
27}
28
29std::string common::what(const std::exception &e) { return what_impl(e, 0); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected