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

Method MapKeyToString

util/generic/hash_table.cpp:8–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6const void* const _yhashtable_empty_data[] = {(void*)3, nullptr, (void*)1};
7
8TString NPrivate::MapKeyToString(TStringBuf key) {
9 constexpr size_t HASH_KEY_MAX_LENGTH = 500;
10 try {
11 return EscapeC(key.substr(0, HASH_KEY_MAX_LENGTH));
12 } catch (...) {
13 return "TStringBuf";
14 }
15}
16
17TString NPrivate::MapKeyToString(unsigned short key) {
18 return ToString(key);

Callers

nothing calls this directly

Calls 3

EscapeCFunction · 0.50
ToStringFunction · 0.50
substrMethod · 0.45

Tested by

no test coverage detected