aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/unicode/normalization/custom_encoder.cpp
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /library/cpp/unicode/normalization/custom_encoder.cpp
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/unicode/normalization/custom_encoder.cpp')
-rw-r--r--library/cpp/unicode/normalization/custom_encoder.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/unicode/normalization/custom_encoder.cpp b/library/cpp/unicode/normalization/custom_encoder.cpp
index c6f186405f..7227902791 100644
--- a/library/cpp/unicode/normalization/custom_encoder.cpp
+++ b/library/cpp/unicode/normalization/custom_encoder.cpp
@@ -15,7 +15,7 @@ void TCustomEncoder::addToTable(wchar32 ucode, unsigned char code, const CodePag
if (Table[plane][pos] == 0) {
Table[plane][pos] = code;
} else {
- Y_ASSERT(target && *target->Names);
+ Y_ASSERT(target && *target->Names);
if (static_cast<unsigned char>(Table[plane][pos]) > 127 && code) {
Cerr << "WARNING: Only lower part of ASCII should have duplicate encodings "
<< target->Names[0]
@@ -37,7 +37,7 @@ bool isGoodDecomp(wchar32 rune, wchar32 decomp) {
}
void TCustomEncoder::Create(const CodePage* target, bool extended) {
- Y_ASSERT(target);
+ Y_ASSERT(target);
DefaultChar = (const char*)target->DefaultChar;
@@ -61,7 +61,7 @@ void TCustomEncoder::Create(const CodePage* target, bool extended) {
wchar32 dw = w;
while (IsComposed(dw) && Code(dw) == 0) {
const wchar32* decomp_p = NUnicode::Decomposition<true>(dw);
- Y_ASSERT(decomp_p != nullptr);
+ Y_ASSERT(decomp_p != nullptr);
dw = decomp_p[0];
if (std::char_traits<wchar32>::length(decomp_p) > 1 && (dw == (wchar32)' ' || dw == (wchar32)'('))