diff options
| author | 2024-03-27 15:46:16 -0400 | |
|---|---|---|
| committer | 2024-03-27 15:46:16 -0400 | |
| commit | f2783bf9f06e4a10138eef2c9e8ac59267983cde (patch) | |
| tree | 3ac2138f05550d955555f781f94c5a8524db2463 /codegen | |
| parent | Export CaseData (diff) | |
| download | zg-f2783bf9f06e4a10138eef2c9e8ac59267983cde.tar.gz zg-f2783bf9f06e4a10138eef2c9e8ac59267983cde.tar.xz zg-f2783bf9f06e4a10138eef2c9e8ac59267983cde.zip | |
Friendly general category methods
Diffstat (limited to 'codegen')
| -rw-r--r-- | codegen/gencat.zig | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/codegen/gencat.zig b/codegen/gencat.zig index a25716b..a7713e6 100644 --- a/codegen/gencat.zig +++ b/codegen/gencat.zig | |||
| @@ -2,36 +2,36 @@ const std = @import("std"); | |||
| 2 | const builtin = @import("builtin"); | 2 | const builtin = @import("builtin"); |
| 3 | 3 | ||
| 4 | const Gc = enum { | 4 | const Gc = enum { |
| 5 | Cc, | 5 | Cc, // Other, Control |
| 6 | Cf, | 6 | Cf, // Other, Format |
| 7 | Cn, | 7 | Cn, // Other, Unassigned |
| 8 | Co, | 8 | Co, // Other, Private Use |
| 9 | Cs, | 9 | Cs, // Other, Surrogate |
| 10 | Ll, | 10 | Ll, // Letter, Lowercase |
| 11 | Lm, | 11 | Lm, // Letter, Modifier |
| 12 | Lo, | 12 | Lo, // Letter, Other |
| 13 | Lt, | 13 | Lu, // Letter, Uppercase |
| 14 | Lu, | 14 | Lt, // Letter, Titlecase |
| 15 | Mc, | 15 | Mc, // Mark, Spacing Combining |
| 16 | Me, | 16 | Me, // Mark, Enclosing |
| 17 | Mn, | 17 | Mn, // Mark, Non-Spacing |
| 18 | Nd, | 18 | Nd, // Number, Decimal Digit |
| 19 | Nl, | 19 | Nl, // Number, Letter |
| 20 | No, | 20 | No, // Number, Other |
| 21 | Pc, | 21 | Pc, // Punctuation, Connector |
| 22 | Pd, | 22 | Pd, // Punctuation, Dash |
| 23 | Pe, | 23 | Pe, // Punctuation, Close |
| 24 | Pf, | 24 | Pf, // Punctuation, Final quote (may behave like Ps or Pe depending on usage) |
| 25 | Pi, | 25 | Pi, // Punctuation, Initial quote (may behave like Ps or Pe depending on usage) |
| 26 | Po, | 26 | Po, // Punctuation, Other |
| 27 | Ps, | 27 | Ps, // Punctuation, Open |
| 28 | Sc, | 28 | Sc, // Symbol, Currency |
| 29 | Sk, | 29 | Sk, // Symbol, Modifier |
| 30 | Sm, | 30 | Sm, // Symbol, Math |
| 31 | So, | 31 | So, // Symbol, Other |
| 32 | Zl, | 32 | Zl, // Separator, Line |
| 33 | Zp, | 33 | Zp, // Separator, Paragraph |
| 34 | Zs, | 34 | Zs, // Separator, Space |
| 35 | }; | 35 | }; |
| 36 | 36 | ||
| 37 | const block_size = 256; | 37 | const block_size = 256; |