| 123 | |
| 124 | |
| 125 | void IniFileConfiguration::removeRaw(const std::string& key) |
| 126 | { |
| 127 | std::string prefix = key; |
| 128 | if (!prefix.empty()) prefix += '.'; |
| 129 | std::string::size_type psize = prefix.size(); |
| 130 | IStringMap::iterator it = _map.begin(); |
| 131 | IStringMap::iterator itCur; |
| 132 | while (it != _map.end()) |
| 133 | { |
| 134 | itCur = it++; |
| 135 | if ((icompare(itCur->first, key) == 0) || (icompare(itCur->first, psize, prefix) == 0)) |
| 136 | { |
| 137 | _map.erase(itCur); |
| 138 | } |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | |
| 143 | bool IniFileConfiguration::ICompare::operator () (const std::string& s1, const std::string& s2) const |