update unicode data

This commit is contained in:
blueloveTH 2025-10-24 00:07:42 +08:00
parent fa6a8d921c
commit 10ce995780
2 changed files with 1520 additions and 1516 deletions

View File

@ -482,6 +482,7 @@ const char* c11__search_u32_ranges(int c, const c11_u32_range* p, int n_ranges)
return NULL; return NULL;
} }
// clang-format off
const static c11_u32_range kLoRanges[] = { const static c11_u32_range kLoRanges[] = {
{ 170, 170 }, { 170, 170 },
{ 186, 186 }, { 186, 186 },
@ -985,6 +986,7 @@ const static c11_u32_range kLoRanges[] = {
{ 194560, 195101 }, { 194560, 195101 },
{ 196608, 201546 }, { 196608, 201546 },
}; };
// clang-format on
bool c11__is_unicode_Lo_char(int c) { bool c11__is_unicode_Lo_char(int c) {
if(c == 0x1f955) return true; if(c == 0x1f955) return true;

View File

@ -2,6 +2,7 @@
#include "pocketpy/objects/base.h" #include "pocketpy/objects/base.h"
#include "pocketpy/pocketpy.h" #include "pocketpy/pocketpy.h"
// clang-format off
const static c11_u32_range kEastAsianWidthRanges[] = { const static c11_u32_range kEastAsianWidthRanges[] = {
{ 32, 126, "Na\0" }, { 32, 126, "Na\0" },
{ 161, 161, "A\0" }, { 161, 161, "A\0" },
@ -1019,6 +1020,7 @@ const static c11_u32_range kEastAsianWidthRanges[] = {
{ 1048576, 1114109, "A\0" }, { 1048576, 1114109, "A\0" },
{ 1114110, 1114111, "F\0" }, { 1114110, 1114111, "F\0" },
}; };
// clang-format on
const static char* c11__u32_east_asian_width(int c) { const static char* c11__u32_east_asian_width(int c) {
const char* data = const char* data =