diff options
author | danlark <danlark@yandex-team.ru> | 2022-02-10 16:46:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:08 +0300 |
commit | 3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (patch) | |
tree | 26154e1e9990f1bb4525d3e3fb5b6dac2c2c1da2 /library/cpp/codecs/greedy_dict/gd_entry.h | |
parent | cb68f224c46a8ee52ac3fdd2a32534b8bb8dc134 (diff) | |
download | ydb-3426a9bc7f169ae9da54cef557ad2a33f6e8eee0.tar.gz |
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/codecs/greedy_dict/gd_entry.h')
-rw-r--r-- | library/cpp/codecs/greedy_dict/gd_entry.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/codecs/greedy_dict/gd_entry.h b/library/cpp/codecs/greedy_dict/gd_entry.h index 18b5be0e15..2ddbd7531b 100644 --- a/library/cpp/codecs/greedy_dict/gd_entry.h +++ b/library/cpp/codecs/greedy_dict/gd_entry.h @@ -34,7 +34,7 @@ namespace NGreedyDict { return NearestPrefix != NoPrefix; } ui32 Len() const { - return Str.size(); + return Str.size(); } static bool StrLess(const TEntry& a, const TEntry& b) { @@ -58,14 +58,14 @@ namespace NGreedyDict { void InitWithAlpha(); void Add(TStringBuf a) { - push_back(TStringBuf(Pool.Append(a.data(), a.size()), a.size())); + push_back(TStringBuf(Pool.Append(a.data(), a.size()), a.size())); } void Add(TStringBuf a, TStringBuf b) { - size_t sz = a.size() + b.size(); + size_t sz = a.size() + b.size(); char* p = (char*)Pool.Allocate(sz); - memcpy(p, a.data(), a.size()); - memcpy(p + a.size(), b.data(), b.size()); + memcpy(p, a.data(), a.size()); + memcpy(p + a.size(), b.data(), b.size()); push_back(TStringBuf(p, sz)); } @@ -92,7 +92,7 @@ namespace NGreedyDict { const TEntry& p = Get(e.NearestPrefix); suff = e.Str; - suff.Skip(p.Str.size()); + suff.Skip(p.Str.size()); return &p; } |