Remove bounds checking for unicode table access in Go

This commit is contained in:
Kovid Goyal
2025-04-01 10:41:17 +05:30
parent de1adeee5e
commit 6ecd78d9db
5 changed files with 48 additions and 14 deletions

View File

@@ -104,6 +104,7 @@ static_assert(sizeof(GraphemeSegmentationResult) == sizeof(uint16_t), "Fix the o
// EndGraphemeSegmentationResultDeclaration }}}
// UCBDeclaration {{{
#define MAX_UNICODE (1114111u)
typedef enum UnicodeCategory {
UC_Cn,
UC_Cc,