Update unicode.h
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
This commit is contained in:
parent
dccd1db48e
commit
02b9ccfd60
1 changed files with 1 additions and 1 deletions
|
@ -359,7 +359,7 @@ static std::vector<uint32_t> codepoints_from_utf16(const std::vector<uint16_t>&
|
||||||
|
|
||||||
static std::unordered_map<uint32_t, int> codepoint_type_map() {
|
static std::unordered_map<uint32_t, int> codepoint_type_map() {
|
||||||
std::unordered_map<uint32_t, int> codepoint_types;
|
std::unordered_map<uint32_t, int> codepoint_types;
|
||||||
for(auto p : digit_ranges) {
|
for (auto p : digit_ranges) {
|
||||||
for(auto i = p.first; i <= p.second; ++ i)
|
for(auto i = p.first; i <= p.second; ++ i)
|
||||||
codepoint_types[i] = CODEPOINT_TYPE_DIGIT;
|
codepoint_types[i] = CODEPOINT_TYPE_DIGIT;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue