aboutsummaryrefslogtreecommitdiffstats
path: root/util/charset/utf8.h
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.h
parentcb68f224c46a8ee52ac3fdd2a32534b8bb8dc134 (diff)
downloadydb-3426a9bc7f169ae9da54cef557ad2a33f6e8eee0.tar.gz
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/charset/utf8.h')
-rw-r--r--util/charset/utf8.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/charset/utf8.h b/util/charset/utf8.h
index 5039b46ae9..c4708be9be 100644
--- a/util/charset/utf8.h
+++ b/util/charset/utf8.h
@@ -133,7 +133,7 @@ inline bool GetNumberOfUTF8Chars(const char* text, size_t len, size_t& number) {
inline size_t GetNumberOfUTF8Chars(TStringBuf text) {
size_t number;
- if (!GetNumberOfUTF8Chars(text.data(), text.size(), number)) {
+ if (!GetNumberOfUTF8Chars(text.data(), text.size(), number)) {
ythrow yexception() << "GetNumberOfUTF8Chars failed on invalid utf-8 " << TString(text.substr(0, 50)).Quote();
}
return number;
@@ -356,7 +356,7 @@ enum EUTF8Detect {
EUTF8Detect UTF8Detect(const char* s, size_t len);
inline EUTF8Detect UTF8Detect(const TStringBuf input) {
- return UTF8Detect(input.data(), input.size());
+ return UTF8Detect(input.data(), input.size());
}
inline bool IsUtf(const char* input, size_t len) {
@@ -364,7 +364,7 @@ inline bool IsUtf(const char* input, size_t len) {
}
inline bool IsUtf(const TStringBuf input) {
- return IsUtf(input.data(), input.size());
+ return IsUtf(input.data(), input.size());
}
//! returns true, if result is not the same as input, and put it in newString