aboutsummaryrefslogtreecommitdiffstats
path: root/util/charset/wide_ut.cpp
diff options
context:
space:
mode:
authormyltsev <myltsev@yandex-team.ru>2022-02-10 16:46:03 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:03 +0300
commitfc361854fd6ee8d747229b090f0b8018e260d1fb (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/charset/wide_ut.cpp
parent9166d66c30c23c9e85a7c88185a068987148d23f (diff)
downloadydb-fc361854fd6ee8d747229b090f0b8018e260d1fb.tar.gz
Restoring authorship annotation for <myltsev@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/charset/wide_ut.cpp')
-rw-r--r--util/charset/wide_ut.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/util/charset/wide_ut.cpp b/util/charset/wide_ut.cpp
index d24d8ceb87..d8f3233e73 100644
--- a/util/charset/wide_ut.cpp
+++ b/util/charset/wide_ut.cpp
@@ -193,7 +193,7 @@ public:
void TestUTF8ToWide();
void TestWideToUTF8();
void TestGetNumOfUTF8Chars();
- void TestSubstrUTF8();
+ void TestSubstrUTF8();
void TestUnicodeCase();
void TestUnicodeDetails();
void TestHexConversion();
@@ -549,14 +549,14 @@ void TConversionTest::TestGetNumOfUTF8Chars() {
UNIT_ASSERT_EQUAL(GetNumberOfUTF8Chars("привет!"), 7);
}
-void TConversionTest::TestSubstrUTF8() {
- TStringBuf utextBuf(utext, sizeof(utext));
- UNIT_ASSERT(SubstrUTF8(utextBuf, 0, 2) == utextBuf.substr(0, 4));
- UNIT_ASSERT(SubstrUTF8(utextBuf, 1, 1) == utextBuf.substr(2, 2));
- UNIT_ASSERT(SubstrUTF8(utextBuf, 1, 2) == utextBuf.substr(2, 4));
- UNIT_ASSERT(SubstrUTF8(utextBuf, 1, 3) == utextBuf.substr(2, 6));
-}
-
+void TConversionTest::TestSubstrUTF8() {
+ TStringBuf utextBuf(utext, sizeof(utext));
+ UNIT_ASSERT(SubstrUTF8(utextBuf, 0, 2) == utextBuf.substr(0, 4));
+ UNIT_ASSERT(SubstrUTF8(utextBuf, 1, 1) == utextBuf.substr(2, 2));
+ UNIT_ASSERT(SubstrUTF8(utextBuf, 1, 2) == utextBuf.substr(2, 4));
+ UNIT_ASSERT(SubstrUTF8(utextBuf, 1, 3) == utextBuf.substr(2, 6));
+}
+
inline bool MustBeSurrogate(wchar32 ch) {
return ch > 0xFFFF;
}