diff options
| author | 2024-04-11 08:24:39 -0500 | |
|---|---|---|
| committer | 2024-04-11 08:24:39 -0500 | |
| commit | bc36cfae308dea3f5b0acbd6750e0f421e9d150d (patch) | |
| tree | 05d71b5245cd413634c78aec58cd7d21d4097166 /src/grapheme.zig | |
| parent | Updated benchmarks (diff) | |
| download | zg-bc36cfae308dea3f5b0acbd6750e0f421e9d150d.tar.gz zg-bc36cfae308dea3f5b0acbd6750e0f421e9d150d.tar.xz zg-bc36cfae308dea3f5b0acbd6750e0f421e9d150d.zip | |
grapheme: export grapheme.State struct
The public function `graphemeBreak` requires a reference to a State
struct, however this type is not exported. Export the type to allow
users of zg to use this type and call graphemeBreak.
Diffstat (limited to 'src/grapheme.zig')
| -rw-r--r-- | src/grapheme.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grapheme.zig b/src/grapheme.zig index f4cc68c..911c856 100644 --- a/src/grapheme.zig +++ b/src/grapheme.zig | |||
| @@ -87,7 +87,7 @@ fn isBreaker(cp: u21, data: *const GraphemeData) bool { | |||
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | // Grapheme break state. | 89 | // Grapheme break state. |
| 90 | const State = struct { | 90 | pub const State = struct { |
| 91 | bits: u3 = 0, | 91 | bits: u3 = 0, |
| 92 | 92 | ||
| 93 | // Extended Pictographic (emoji) | 93 | // Extended Pictographic (emoji) |