MCPcopy Create free account
hub / github.com/cselab/aphros / GetStr

Method GetStr

src/parse/parser.cpp:40–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 (c >= 'A' && c <= 'Z') || c == '_';
39 }
40 std::string GetStr(std::string key) const {
41 auto type = var_.GetTypeName(key);
42 if (type != "") {
43 return var_.GetStr(type, key);
44 }
45 fassert(false, "undefined variable '" + key + "'");
46 }
47 std::string ExpandVariables(std::string str) const {
48 enum class S {
49 normal,

Callers 1

PrintMapMethod · 0.45

Calls 1

GetTypeNameMethod · 0.80

Tested by

no test coverage detected