| 89 | } |
| 90 | |
| 91 | utils::optional<std::string> PropertiesFile::getValue(const std::string& key) const { |
| 92 | const auto it = findKey(key); |
| 93 | if (it != lines_.end()) { |
| 94 | return it->getValue(); |
| 95 | } else { |
| 96 | return utils::nullopt; |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | void PropertiesFile::update(const std::string& key, const std::string& value) { |
| 101 | auto it = findKey(key); |
no test coverage detected