From bc36cfae308dea3f5b0acbd6750e0f421e9d150d Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Thu, 11 Apr 2024 08:24:39 -0500 Subject: 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. --- src/grapheme.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 { } // Grapheme break state. -const State = struct { +pub const State = struct { bits: u3 = 0, // Extended Pictographic (emoji) -- cgit v1.2.3