aboutsummaryrefslogtreecommitdiffstats
path: root/util/charset/utf8.cpp
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 /util/charset/utf8.cpp
parentcb68f224c46a8ee52ac3fdd2a32534b8bb8dc134 (diff)
downloadydb-3426a9bc7f169ae9da54cef557ad2a33f6e8eee0.tar.gz
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/charset/utf8.cpp')
-rw-r--r--util/charset/utf8.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/util/charset/utf8.cpp b/util/charset/utf8.cpp
index efe3a52f61..a18a84dad1 100644
--- a/util/charset/utf8.cpp
+++ b/util/charset/utf8.cpp
@@ -55,19 +55,19 @@ namespace {
// before each iteration (including the first one) variable 'cNew' contains unwritten symbol
while (true) {
size_t cNewLen;
- Y_ASSERT((writePtr - newString.data()) + destSpace == newString.size());
+ Y_ASSERT((writePtr - newString.data()) + destSpace == newString.size());
if (RECODE_EOOUTPUT ==
SafeWriteUTF8Char(cNew, cNewLen, (unsigned char*)writePtr, destSpace)) {
- destSpace += newString.size();
- newString.resize(newString.size() * 2);
- writePtr = newString.begin() + (newString.size() - destSpace);
+ destSpace += newString.size();
+ newString.resize(newString.size() * 2);
+ writePtr = newString.begin() + (newString.size() - destSpace);
continue;
}
destSpace -= cNewLen;
writePtr += cNewLen;
p += cLen;
if (p == end) {
- newString.resize(newString.size() - destSpace);
+ newString.resize(newString.size() - destSpace);
return true;
}
wchar32 c = 0;
@@ -135,14 +135,14 @@ bool ToLowerUTF8Impl(const char* beg, size_t n, TString& newString) {
TString ToLowerUTF8(const TString& s) {
TString newString;
- bool changed = ToLowerUTF8Impl(s.data(), s.size(), newString);
+ bool changed = ToLowerUTF8Impl(s.data(), s.size(), newString);
return changed ? newString : s;
}
TString ToLowerUTF8(TStringBuf s) {
TString newString;
- bool changed = ToLowerUTF8Impl(s.data(), s.size(), newString);
- return changed ? newString : TString(s.data(), s.size());
+ bool changed = ToLowerUTF8Impl(s.data(), s.size(), newString);
+ return changed ? newString : TString(s.data(), s.size());
}
TString ToLowerUTF8(const char* s) {
@@ -155,14 +155,14 @@ bool ToUpperUTF8Impl(const char* beg, size_t n, TString& newString) {
TString ToUpperUTF8(const TString& s) {
TString newString;
- bool changed = ToUpperUTF8Impl(s.data(), s.size(), newString);
+ bool changed = ToUpperUTF8Impl(s.data(), s.size(), newString);
return changed ? newString : s;
}
TString ToUpperUTF8(TStringBuf s) {
TString newString;
- bool changed = ToUpperUTF8Impl(s.data(), s.size(), newString);
- return changed ? newString : TString(s.data(), s.size());
+ bool changed = ToUpperUTF8Impl(s.data(), s.size(), newString);
+ return changed ? newString : TString(s.data(), s.size());
}
TString ToUpperUTF8(const char* s) {