aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/deprecated
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/deprecated
parentcb68f224c46a8ee52ac3fdd2a32534b8bb8dc134 (diff)
downloadydb-3426a9bc7f169ae9da54cef557ad2a33f6e8eee0.tar.gz
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/deprecated')
-rw-r--r--library/cpp/deprecated/kmp/kmp.cpp2
-rw-r--r--library/cpp/deprecated/kmp/kmp.h10
-rw-r--r--library/cpp/deprecated/kmp/kmp_ut.cpp4
-rw-r--r--library/cpp/deprecated/mapped_file/mapped_file.cpp6
-rw-r--r--library/cpp/deprecated/split/split_iterator.cpp6
-rw-r--r--library/cpp/deprecated/split/split_iterator.h2
6 files changed, 15 insertions, 15 deletions
diff --git a/library/cpp/deprecated/kmp/kmp.cpp b/library/cpp/deprecated/kmp/kmp.cpp
index d02074c94a..c2a35a2878 100644
--- a/library/cpp/deprecated/kmp/kmp.cpp
+++ b/library/cpp/deprecated/kmp/kmp.cpp
@@ -16,6 +16,6 @@ TKMPMatcher::TKMPMatcher(const TString& pattern)
void TKMPMatcher::ComputePrefixFunction() {
ssize_t* pf;
- ::ComputePrefixFunction(Pattern.data(), Pattern.data() + Pattern.size(), &pf);
+ ::ComputePrefixFunction(Pattern.data(), Pattern.data() + Pattern.size(), &pf);
PrefixFunction.Reset(pf);
}
diff --git a/library/cpp/deprecated/kmp/kmp.h b/library/cpp/deprecated/kmp/kmp.h
index a7f72eece6..85090f6b2b 100644
--- a/library/cpp/deprecated/kmp/kmp.h
+++ b/library/cpp/deprecated/kmp/kmp.h
@@ -42,7 +42,7 @@ public:
bool SubStr(const char* begin, const char* end, const char*& result) const {
Y_ASSERT(begin <= end);
- ssize_t m = Pattern.size();
+ ssize_t m = Pattern.size();
ssize_t n = end - begin;
ssize_t i, j;
for (i = 0, j = 0; (i < n) && (j < m); ++i, ++j) {
@@ -80,7 +80,7 @@ public:
: Callback(callback)
, Pattern(patternBegin, patternEnd)
, State(0)
- , Candidate(Pattern.size())
+ , Candidate(Pattern.size())
{
ssize_t* pf;
ComputePrefixFunction(patternBegin, patternEnd, &pf);
@@ -89,14 +89,14 @@ public:
void Push(const T& symbol) {
while ((State >= 0) && (Pattern[State] != symbol)) {
- Y_ASSERT(State <= (ssize_t) Pattern.size());
+ Y_ASSERT(State <= (ssize_t) Pattern.size());
State = PrefixFunction[State];
- Y_ASSERT(State <= (ssize_t) Pattern.size());
+ Y_ASSERT(State <= (ssize_t) Pattern.size());
}
if (State >= 0)
Candidate[State] = symbol;
++State;
- if (State == (ssize_t) Pattern.size()) {
+ if (State == (ssize_t) Pattern.size()) {
Callback->OnMatch(Candidate.begin(), Candidate.end());
State = 0;
}
diff --git a/library/cpp/deprecated/kmp/kmp_ut.cpp b/library/cpp/deprecated/kmp/kmp_ut.cpp
index c2eda83c57..f3bcf8f4a6 100644
--- a/library/cpp/deprecated/kmp/kmp_ut.cpp
+++ b/library/cpp/deprecated/kmp/kmp_ut.cpp
@@ -11,8 +11,8 @@ static TVector<int> FindAll(const TString& pattern, const TString& string) {
const char* begin = string.begin();
const char* end = string.end();
while (kmp.SubStr(begin, end, pResult)) {
- result.push_back(int(pResult - string.data()));
- begin = pResult + pattern.size();
+ result.push_back(int(pResult - string.data()));
+ begin = pResult + pattern.size();
}
return result;
}
diff --git a/library/cpp/deprecated/mapped_file/mapped_file.cpp b/library/cpp/deprecated/mapped_file/mapped_file.cpp
index b0e4511299..50f1c98056 100644
--- a/library/cpp/deprecated/mapped_file/mapped_file.cpp
+++ b/library/cpp/deprecated/mapped_file/mapped_file.cpp
@@ -29,7 +29,7 @@ void TMappedFile::precharge(size_t off, size_t size) const {
void TMappedFile::init(const TString& name) {
THolder<TFileMap> map(new TFileMap(name));
- TMappedFile newFile(map.Get(), name.data());
+ TMappedFile newFile(map.Get(), name.data());
Y_UNUSED(map.Release());
newFile.swap(*this);
newFile.term();
@@ -37,7 +37,7 @@ void TMappedFile::init(const TString& name) {
void TMappedFile::init(const TString& name, size_t length, TFileMap::EOpenMode om) {
THolder<TFileMap> map(new TFileMap(name, length, om));
- TMappedFile newFile(map.Get(), name.data());
+ TMappedFile newFile(map.Get(), name.data());
Y_UNUSED(map.Release());
newFile.swap(*this);
newFile.term();
@@ -53,7 +53,7 @@ void TMappedFile::init(const TFile& file, TFileMap::EOpenMode om, const char* db
void TMappedFile::init(const TString& name, TFileMap::EOpenMode om) {
THolder<TFileMap> map(new TFileMap(name, om));
- TMappedFile newFile(map.Get(), name.data());
+ TMappedFile newFile(map.Get(), name.data());
Y_UNUSED(map.Release());
newFile.swap(*this);
newFile.term();
diff --git a/library/cpp/deprecated/split/split_iterator.cpp b/library/cpp/deprecated/split/split_iterator.cpp
index 32262d25bd..659889a70f 100644
--- a/library/cpp/deprecated/split/split_iterator.cpp
+++ b/library/cpp/deprecated/split/split_iterator.cpp
@@ -22,8 +22,8 @@ TSplitBase::TSplitBase(const char* str, size_t length)
}
TSplitBase::TSplitBase(const TString& s)
- : Str(s.data())
- , Len(s.size())
+ : Str(s.data())
+ , Len(s.size())
{
}
@@ -276,7 +276,7 @@ TCharSplitWithoutTags::TIterator TCharSplitWithoutTags::Iterator() const {
TSubstringSplitDelimiter::TSubstringSplitDelimiter(const TString& s)
: Matcher(s)
- , Len(s.size())
+ , Len(s.size())
{
}
diff --git a/library/cpp/deprecated/split/split_iterator.h b/library/cpp/deprecated/split/split_iterator.h
index 0eacc29228..1081ae13c0 100644
--- a/library/cpp/deprecated/split/split_iterator.h
+++ b/library/cpp/deprecated/split/split_iterator.h
@@ -52,7 +52,7 @@ inline TString ToString(const TUi32Region& r) {
template <>
inline TUi32Region FromString(const TString& s) {
TUi32Region result;
- sscanf(s.data(), "(%" PRIu32 ", %" PRIu32 ")", &result.Begin, &result.End);
+ sscanf(s.data(), "(%" PRIu32 ", %" PRIu32 ")", &result.Begin, &result.End);
return result;
}