MCPcopy Create free account
hub / github.com/apache/trafficserver / TranslateTagHandle

Method TranslateTagHandle

lib/yamlcpp/src/directives.cpp:6–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4Directives::Directives() : version{true, 1, 2}, tags{} {}
5
6std::string Directives::TranslateTagHandle(
7 const std::string& handle) const {
8 auto it = tags.find(handle);
9 if (it == tags.end()) {
10 if (handle == "!!")
11 return "tag:yaml.org,2002:";
12 return handle;
13 }
14
15 return it->second;
16}
17} // namespace YAML

Callers 1

TranslateMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected