| 1644 | } |
| 1645 | |
| 1646 | bool Param::hasSection(const std::string &key) const |
| 1647 | { |
| 1648 | if (key.back() == ':') |
| 1649 | { |
| 1650 | // Remove trailing colon from key |
| 1651 | return root_.findParentOf(key.substr(0, key.size() - 1)) != nullptr; |
| 1652 | } |
| 1653 | else |
| 1654 | { |
| 1655 | return root_.findParentOf(key) != nullptr; |
| 1656 | } |
| 1657 | } |
| 1658 | |
| 1659 | Param::ParamEntry& Param::getEntry_(const std::string& key) const |
| 1660 | { |
no test coverage detected