diff options
author | danlark <danlark@yandex-team.ru> | 2022-02-10 16:46:10 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:10 +0300 |
commit | baa58daefa91fde4b4769facdbd2903763b9c6a8 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/charset/codepage.cpp | |
parent | 3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (diff) | |
download | ydb-baa58daefa91fde4b4769facdbd2903763b9c6a8.tar.gz |
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/charset/codepage.cpp')
-rw-r--r-- | library/cpp/charset/codepage.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/charset/codepage.cpp b/library/cpp/charset/codepage.cpp index c880c972c7..0431bef31b 100644 --- a/library/cpp/charset/codepage.cpp +++ b/library/cpp/charset/codepage.cpp @@ -136,7 +136,7 @@ private: private: inline void AddNameWithCheck(const TString& name, ECharset code) { if (Data.find(name.c_str()) == Data.end()) { - Data.insert(TData::value_type(Pool.Append(name.data(), name.size() + 1), code)); + Data.insert(TData::value_type(Pool.Append(name.data(), name.size() + 1), code)); } else { Y_ASSERT(Data.find(name.c_str())->second == code); } @@ -294,12 +294,12 @@ void DoDecodeUnknownPlane(TxChar* str, TxChar*& ee, const ECharset enc) { buf.push_back(Lo8(Lo16(*s))); } else { if (!buf.empty()) { - if (RecodeToUnicode(enc, buf.data(), d, buf.size(), e - d, read, written) == RECODE_OK) { + if (RecodeToUnicode(enc, buf.data(), d, buf.size(), e - d, read, written) == RECODE_OK) { Y_ASSERT(read == buf.size()); d += written; } else { // just copying broken symbols Y_ASSERT(buf.size() <= static_cast<size_t>(e - d)); - Copy(buf.data(), buf.size(), d); + Copy(buf.data(), buf.size(), d); d += buf.size(); } buf.clear(); @@ -413,7 +413,7 @@ static inline void NormalizeEncodingPrefixes(TString& enc) { TString enccopy = enc.substr(preflen); enccopy.prepend("latin"); const TLatinToIsoHash* latinhash = Singleton<TLatinToIsoHash>(); - TLatinToIsoHash::const_iterator it = latinhash->find(enccopy.data()); + TLatinToIsoHash::const_iterator it = latinhash->find(enccopy.data()); if (it != latinhash->end()) enc.assign(it->second); return; |