diff options
author | amnosov <amnosov@yandex-team.com> | 2022-10-26 11:59:40 +0300 |
---|---|---|
committer | amnosov <amnosov@yandex-team.com> | 2022-10-26 11:59:40 +0300 |
commit | 4225eab76862f099d4d55a0205ab0cdd39c0433c (patch) | |
tree | 842ff268488999a8f54243cfb10ba96fb333645b /library/cpp/unicode/set/category_ranges.h | |
parent | 2399206380b6eab57bb7b9ad0bf0ecf851c94c1d (diff) | |
download | ydb-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.h | 18 |
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); + + } +} |