aboutsummaryrefslogtreecommitdiffstats
path: root/util/charset/unidata.h
diff options
context:
space:
mode:
authormowgli <mowgli@yandex-team.ru>2022-02-10 16:49:25 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:25 +0300
commit56c39b3cf908e7202b1f7551a1653681e8015607 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/charset/unidata.h
parent89afbbe4ca0e02e386dd4df08f7945f190dc1b84 (diff)
downloadydb-56c39b3cf908e7202b1f7551a1653681e8015607.tar.gz
Restoring authorship annotation for <mowgli@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/charset/unidata.h')
-rw-r--r--util/charset/unidata.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/util/charset/unidata.h b/util/charset/unidata.h
index 4cef3b0039..400d314186 100644
--- a/util/charset/unidata.h
+++ b/util/charset/unidata.h
@@ -200,13 +200,13 @@ inline bool IsQuotation(wchar32 ch) {
SHIFT(Pf_QUOTE) | SHIFT(Po_SINGLE_QUOTE) | SHIFT(Ps_SINGLE_QUOTE) |
SHIFT(Pe_SINGLE_QUOTE) | SHIFT(Pi_SINGLE_QUOTE) | SHIFT(Pf_SINGLE_QUOTE));
}
-
-inline bool IsSingleQuotation(wchar32 ch) {
- return NUnicode::CharHasType(ch,
+
+inline bool IsSingleQuotation(wchar32 ch) {
+ return NUnicode::CharHasType(ch,
SHIFT(Po_SINGLE_QUOTE) | SHIFT(Ps_SINGLE_QUOTE) | SHIFT(Pe_SINGLE_QUOTE) |
SHIFT(Pi_SINGLE_QUOTE) | SHIFT(Pf_SINGLE_QUOTE));
-}
-
+}
+
inline bool IsTerminal(wchar32 ch) {
return NUnicode::CharHasType(ch, SHIFT(Po_TERMINAL));
}
@@ -381,15 +381,15 @@ inline bool IsXdigit(wchar32 ch) {
inline bool IsDigit(wchar32 ch) {
return IsDecdigit(ch);
}
-
-inline bool IsCommonDigit(wchar32 ch) {
- // IsDigit returns true for some exotic symbols like "VAI DIGIT TWO" (U+A622)
- // and cannot be used safely with FromString() convertors
- const wchar32 ZERO = '0';
- const wchar32 NINE = '9';
- return ch >= ZERO && ch <= NINE;
-}
-
+
+inline bool IsCommonDigit(wchar32 ch) {
+ // IsDigit returns true for some exotic symbols like "VAI DIGIT TWO" (U+A622)
+ // and cannot be used safely with FromString() convertors
+ const wchar32 ZERO = '0';
+ const wchar32 NINE = '9';
+ return ch >= ZERO && ch <= NINE;
+}
+
inline bool IsGraph(wchar32 ch) {
return IsAlnum(ch) || IsPunct(ch) || IsSymbol(ch);
}