| 142 | } |
| 143 | |
| 144 | int PropSetSimple::GetExpanded(const char *key, char *result) const { |
| 145 | std::string val = Get(key); |
| 146 | ExpandAllInPlace(*this, val, 100, VarChain(key)); |
| 147 | const int n = static_cast<int>(val.size()); |
| 148 | if (result) { |
| 149 | strcpy(result, val.c_str()); |
| 150 | } |
| 151 | return n; // Not including NUL |
| 152 | } |
| 153 | |
| 154 | int PropSetSimple::GetInt(const char *key, int defaultValue) const { |
| 155 | std::string val = Get(key); |
nothing calls this directly
no test coverage detected