MCPcopy Create free account
hub / github.com/davemoore22/sorcery / get

Method get

src/resources/stringstore.cpp:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86auto Sorcery::StringStore::get(std::string_view key) const -> std::string {
87
88 if (_loaded)
89 return _strings.contains(std::string{key})
90 ? _strings.at(std::string{key})
91 : KEY_NOT_FOUND;
92 else
93 return STRINGS_NOT_LOADED;
94}

Callers

nothing calls this directly

Calls 2

containsMethod · 0.80
atMethod · 0.45

Tested by

no test coverage detected