aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/util.cpp
diff options
context:
space:
mode:
authorlunc <lunc@yandex-team.ru>2022-02-10 16:49:39 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:39 +0300
commit2a5efb07f92ee222959e5f3f26eddd1d6c7fd7da (patch)
treedcbe7da9d893c470a4fb41c159d7c232a1fb2613 /util/string/util.cpp
parent1ef52da9919aaa7ec7e3c51da7fdaa637ab133b7 (diff)
downloadydb-2a5efb07f92ee222959e5f3f26eddd1d6c7fd7da.tar.gz
Restoring authorship annotation for <lunc@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/string/util.cpp')
-rw-r--r--util/string/util.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/string/util.cpp b/util/string/util.cpp
index b14f20bf75..320baf7dcd 100644
--- a/util/string/util.cpp
+++ b/util/string/util.cpp
@@ -13,8 +13,8 @@ int a2i(const TString& s) {
//============================== span =====================================
void str_spn::init(const char* charset, bool extended) {
- // chars_table_1 is necessary to avoid some unexpected
- // multi-threading issues
+ // chars_table_1 is necessary to avoid some unexpected
+ // multi-threading issues
ui8 chars_table_1[256];
memset(chars_table_1, 0, sizeof(chars_table_1));
if (extended) {
@@ -34,9 +34,9 @@ void str_spn::init(const char* charset, bool extended) {
}
}
memcpy(chars_table, chars_table_1, 256);
- chars_table_1[0] = 1;
+ chars_table_1[0] = 1;
for (int n = 0; n < 256; n++) {
- c_chars_table[n] = !chars_table_1[n];
+ c_chars_table[n] = !chars_table_1[n];
}
}