aboutsummaryrefslogtreecommitdiffstats
path: root/util/charset
diff options
context:
space:
mode:
authorekrokhalev <ekrokhalev@yandex-team.ru>2022-02-10 16:50:10 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:10 +0300
commit1c01ed5294724fda060c1f0bd674b315fe249598 (patch)
treec21292982d2c8182cdf5753f9a49e7cda547f4d3 /util/charset
parent9991a6195dee8db26aa7e2f5f21549fb20e25002 (diff)
downloadydb-1c01ed5294724fda060c1f0bd674b315fe249598.tar.gz
Restoring authorship annotation for <ekrokhalev@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/charset')
-rw-r--r--util/charset/unidata.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/util/charset/unidata.h b/util/charset/unidata.h
index 400d314186..f4d5a82f0d 100644
--- a/util/charset/unidata.h
+++ b/util/charset/unidata.h
@@ -400,22 +400,22 @@ inline bool IsPrint(wchar32 ch) {
return IsAlnum(ch) || IsPunct(ch) || IsSymbol(ch) || IsBlank(ch);
}
-inline bool IsRomanDigit(wchar32 ch) {
- if (NUnicode::CharHasType(ch, SHIFT(Nl_LETTER)) && 0x2160 <= ch && ch <= 0x2188)
- return true;
- if (ch < 127) {
- switch (static_cast<char>(::ToLower(ch))) {
- case 'i':
- case 'v':
- case 'x':
- case 'l':
- case 'c':
- case 'd':
- case 'm':
- return true;
- }
- }
- return false;
-}
-
+inline bool IsRomanDigit(wchar32 ch) {
+ if (NUnicode::CharHasType(ch, SHIFT(Nl_LETTER)) && 0x2160 <= ch && ch <= 0x2188)
+ return true;
+ if (ch < 127) {
+ switch (static_cast<char>(::ToLower(ch))) {
+ case 'i':
+ case 'v':
+ case 'x':
+ case 'l':
+ case 'c':
+ case 'd':
+ case 'm':
+ return true;
+ }
+ }
+ return false;
+}
+
#undef SHIFT