aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/unicode/set/category_ranges.h
diff options
context:
space:
mode:
authoramnosov <amnosov@yandex-team.com>2022-10-26 11:59:40 +0300
committeramnosov <amnosov@yandex-team.com>2022-10-26 11:59:40 +0300
commit4225eab76862f099d4d55a0205ab0cdd39c0433c (patch)
tree842ff268488999a8f54243cfb10ba96fb333645b /library/cpp/unicode/set/category_ranges.h
parent2399206380b6eab57bb7b9ad0bf0ecf851c94c1d (diff)
downloadydb-4225eab76862f099d4d55a0205ab0cdd39c0433c.tar.gz
Unicode::Is{Category}
Unicode::Is{Category} udfs added
Diffstat (limited to 'library/cpp/unicode/set/category_ranges.h')
-rw-r--r--library/cpp/unicode/set/category_ranges.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/library/cpp/unicode/set/category_ranges.h b/library/cpp/unicode/set/category_ranges.h
new file mode 100644
index 0000000000..10256d2e6e
--- /dev/null
+++ b/library/cpp/unicode/set/category_ranges.h
@@ -0,0 +1,18 @@
+#pragma once
+
+#include <util/charset/unidata.h>
+#include <util/system/defaults.h>
+#include <util/generic/strbuf.h>
+
+namespace NUnicode {
+ namespace NPrivate {
+ struct TCategoryRanges {
+ size_t Count;
+ const wchar32* Data;
+ };
+
+ const TCategoryRanges& GetCategoryRanges(WC_TYPE cat);
+ const TCategoryRanges& GetCategoryRanges(const TStringBuf& category);
+
+ }
+}