diff options
Diffstat (limited to 'src/unicode-data.h')
-rw-r--r-- | src/unicode-data.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/unicode-data.h b/src/unicode-data.h new file mode 100644 index 00000000..e27fe177 --- /dev/null +++ b/src/unicode-data.h @@ -0,0 +1,20 @@ +#pragma once + +#include <cstdint> +#include <vector> +#include <unordered_map> +#include <unordered_set> + +struct range_nfd { + uint32_t first; + uint32_t last; + uint32_t nfd; +}; + +static const uint32_t MAX_CODEPOINTS = 0x110000; + +extern const std::vector<std::pair<uint32_t, uint16_t>> unicode_ranges_flags; +extern const std::unordered_set<uint32_t> unicode_set_whitespace; +extern const std::unordered_map<uint32_t, uint32_t> unicode_map_lowercase; +extern const std::unordered_map<uint32_t, uint32_t> unicode_map_uppercase; +extern const std::vector<range_nfd> unicode_ranges_nfd; |