From b333b06772c89d96aacb5490d6a219fba7c09cc6 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 12 Feb 2026 20:57:17 +0100 Subject: Engage! --- llama.cpp/src/unicode-data.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 llama.cpp/src/unicode-data.h (limited to 'llama.cpp/src/unicode-data.h') diff --git a/llama.cpp/src/unicode-data.h b/llama.cpp/src/unicode-data.h new file mode 100644 index 0000000..f6973eb --- /dev/null +++ b/llama.cpp/src/unicode-data.h @@ -0,0 +1,20 @@ +#pragma once + +#include +#include +#include +#include + +struct range_nfd { + uint32_t first; + uint32_t last; + uint32_t nfd; +}; + +static const uint32_t MAX_CODEPOINTS = 0x110000; + +extern const std::initializer_list> unicode_ranges_flags; +extern const std::unordered_set unicode_set_whitespace; +extern const std::initializer_list> unicode_map_lowercase; +extern const std::initializer_list> unicode_map_uppercase; +extern const std::initializer_list unicode_ranges_nfd; -- cgit v1.2.3