aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/containers/comptrie/comptrie_builder.inl
diff options
context:
space:
mode:
authordanlark <danlark@yandex-team.ru>2022-02-10 16:46:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:08 +0300
commit3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (patch)
tree26154e1e9990f1bb4525d3e3fb5b6dac2c2c1da2 /library/cpp/containers/comptrie/comptrie_builder.inl
parentcb68f224c46a8ee52ac3fdd2a32534b8bb8dc134 (diff)
downloadydb-3426a9bc7f169ae9da54cef557ad2a33f6e8eee0.tar.gz
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/containers/comptrie/comptrie_builder.inl')
-rw-r--r--library/cpp/containers/comptrie/comptrie_builder.inl14
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/containers/comptrie/comptrie_builder.inl b/library/cpp/containers/comptrie/comptrie_builder.inl
index f273fa6571..350938ea65 100644
--- a/library/cpp/containers/comptrie/comptrie_builder.inl
+++ b/library/cpp/containers/comptrie/comptrie_builder.inl
@@ -232,7 +232,7 @@ public:
}
TCompactTrie<char, D, S> trie(Buffer.Get(), Buffer.Size(), packer);
- result = trie.Find(key.data(), key.size(), value);
+ result = trie.Find(key.data(), key.size(), value);
return nullptr;
}
@@ -245,7 +245,7 @@ public:
TCompactTrie<char, D, S> trie(Buffer.Get(), Buffer.Size(), packer);
size_t prefixLen = 0;
- result = trie.FindLongestPrefix(key.data(), key.size(), &prefixLen, value);
+ result = trie.FindLongestPrefix(key.data(), key.size(), &prefixLen, value);
key = key.SubStr(prefixLen);
return nullptr;
@@ -298,7 +298,7 @@ public:
}
TCompactTrie<char, D, S> trie(TBlob::FromFile(Data->FileName), packer);
- result = trie.Find(key.data(), key.size(), value);
+ result = trie.Find(key.data(), key.size(), value);
return nullptr;
}
@@ -310,7 +310,7 @@ public:
TCompactTrie<char, D, S> trie(TBlob::FromFile(Data->FileName), packer);
size_t prefixLen = 0;
- result = trie.FindLongestPrefix(key.data(), key.size(), &prefixLen, value);
+ result = trie.FindLongestPrefix(key.data(), key.size(), &prefixLen, value);
key = key.SubStr(prefixLen);
return nullptr;
@@ -735,7 +735,7 @@ bool TCompactTrieBuilder<T, D, S>::TCompactTrieBuilderImpl::FindLongestPrefixImp
endResult = true;
}
if (endResult && prefixLen)
- *prefixLen = keyTail ? key.size() - keyTail.size() : key.size();
+ *prefixLen = keyTail ? key.size() - keyTail.size() : key.size();
return endResult;
}
@@ -1021,11 +1021,11 @@ const typename TCompactTrieBuilder<T, D, S>::TCompactTrieBuilderImpl::TNode*
if (it != this->end()) {
const char* const arcLabel = it->Label.AsCharPtr();
const size_t arcLabelLen = it->Label.Length();
- if (key.size() >= arcLabelLen && memcmp(key.data(), arcLabel, arcLabelLen) == 0) {
+ if (key.size() >= arcLabelLen && memcmp(key.data(), arcLabel, arcLabelLen) == 0) {
const TStringBuf srcKey = key;
key = key.SubStr(arcLabelLen);
const TNode* const node = it->Node;
- if (srcKey.size() == arcLabelLen) {
+ if (srcKey.size() == arcLabelLen) {
// unpack value of it->Node, if it has value
if (!node->IsFinal())
return nullptr;