MCPcopy Create free account
hub / github.com/catboost/catboost / AddNameWithCheck

Method AddNameWithCheck

library/cpp/charset/codepage.cpp:135–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133
134private:
135 inline void AddNameWithCheck(const TString& name, ECharset code) {
136 if (Data.find(name.c_str()) == Data.end()) {
137 Data.insert(TData::value_type(Pool.Append(name.data(), name.size() + 1), code));
138 } else {
139 Y_ASSERT(Data.find(name.c_str())->second == code);
140 }
141 }
142
143 inline void AddName(const TString& name, ECharset code) {
144 AddNameWithCheck(name, code);

Callers

nothing calls this directly

Calls 8

value_typeFunction · 0.50
findMethod · 0.45
c_strMethod · 0.45
endMethod · 0.45
insertMethod · 0.45
AppendMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected