MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / removeRaw

Method removeRaw

base/poco/Util/src/IniFileConfiguration.cpp:125–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123
124
125void 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
143bool IniFileConfiguration::ICompare::operator () (const std::string& s1, const std::string& s2) const

Callers

nothing calls this directly

Calls 6

icompareFunction · 0.50
emptyMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected