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

Method removeRaw

base/poco/Util/src/MapConfiguration.cpp:92–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90
91
92void MapConfiguration::removeRaw(const std::string& key)
93{
94 std::string prefix = key;
95 if (!prefix.empty()) prefix += '.';
96 std::string::size_type psize = prefix.size();
97 StringMap::iterator it = _map.begin();
98 StringMap::iterator itCur;
99 while (it != _map.end())
100 {
101 itCur = it++;
102 if ((itCur->first == key) || (itCur->first.compare(0, psize, prefix) == 0))
103 {
104 _map.erase(itCur);
105 }
106 }
107}
108
109
110MapConfiguration::iterator MapConfiguration::begin() const

Callers

nothing calls this directly

Calls 6

emptyMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
compareMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected