diff options
| author | 2026-01-13 01:10:17 +0300 | |
|---|---|---|
| committer | 2026-01-13 01:10:17 +0300 | |
| commit | dfece51720a17fddd0520ce8bda1a3c05d110949 (patch) | |
| tree | d841e9321c1135ba5644b444ba7bb508ec4df025 /src/Graphemes.zig | |
| parent | Moved part of the `strWidth` into its own `graphemeClusterWidth` function (diff) | |
| parent | Merge pull request 'Use width 2 when skin tone modifier detected' (#96) from ... (diff) | |
| download | zg-dfece51720a17fddd0520ce8bda1a3c05d110949.tar.gz zg-dfece51720a17fddd0520ce8bda1a3c05d110949.tar.xz zg-dfece51720a17fddd0520ce8bda1a3c05d110949.zip | |
Merge branch 'master' of https://codeberg.org/atman/zg into graphemeClusterWidth
Diffstat (limited to 'src/Graphemes.zig')
| -rw-r--r-- | src/Graphemes.zig | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Graphemes.zig b/src/Graphemes.zig index f1c56ed..81d874c 100644 --- a/src/Graphemes.zig +++ b/src/Graphemes.zig | |||
| @@ -16,11 +16,9 @@ pub fn init(allocator: Allocator) Allocator.Error!Graphemes { | |||
| 16 | } | 16 | } |
| 17 | 17 | ||
| 18 | pub fn setup(graphemes: *Graphemes, allocator: Allocator) Allocator.Error!void { | 18 | pub fn setup(graphemes: *Graphemes, allocator: Allocator) Allocator.Error!void { |
| 19 | const decompressor = compress.flate.inflate.decompressor; | ||
| 20 | const in_bytes = @embedFile("gbp"); | 19 | const in_bytes = @embedFile("gbp"); |
| 21 | var in_fbs = std.io.fixedBufferStream(in_bytes); | 20 | var in_fbs = std.io.fixedBufferStream(in_bytes); |
| 22 | var in_decomp = decompressor(.raw, in_fbs.reader()); | 21 | var reader = in_fbs.reader(); |
| 23 | var reader = in_decomp.reader(); | ||
| 24 | 22 | ||
| 25 | const endian = builtin.cpu.arch.endian(); | 23 | const endian = builtin.cpu.arch.endian(); |
| 26 | 24 | ||