| 79 | } |
| 80 | |
| 81 | const char *PropSetSimple::Get(const char *key) const { |
| 82 | mapss *props = static_cast<mapss *>(impl); |
| 83 | mapss::const_iterator keyPos = props->find(std::string(key)); |
| 84 | if (keyPos != props->end()) { |
| 85 | return keyPos->second.c_str(); |
| 86 | } else { |
| 87 | return ""; |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | // There is some inconsistency between GetExpanded("foo") and Expand("$(foo)"). |
| 92 | // A solution is to keep a stack of variables that have been expanded, so that |
no outgoing calls
no test coverage detected