unicode: switch to uucode grapheme break to match unicode 16 spec

This commit is contained in:
Jacob Sandlund
2025-11-23 19:16:16 -05:00
parent 97926ca307
commit 97aff0743e
8 changed files with 152 additions and 198 deletions

View File

@@ -10,6 +10,7 @@ const Benchmark = @import("Benchmark.zig");
const options = @import("options.zig");
const UTF8Decoder = @import("../terminal/UTF8Decoder.zig");
const unicode = @import("../unicode/main.zig");
const uucode = @import("uucode");
const log = std.log.scoped(.@"terminal-stream-bench");
@@ -118,7 +119,7 @@ fn stepTable(ptr: *anyopaque) Benchmark.Error!void {
var r = &f_reader.interface;
var d: UTF8Decoder = .{};
var state: unicode.GraphemeBreakState = .{};
var state: uucode.grapheme.BreakState = .default;
var cp1: u21 = 0;
var buf: [4096]u8 align(std.atomic.cache_line) = undefined;
while (true) {