authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-09-11 09:30:00 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-09-11 09:31:27 -07:00
log147880c507cc36f37710d9b4ade6e57e0704ac26
treeb456c95f8f87d8fcec4bcb84dac7f59e226a5f72
parentc207049e9c463dc1dfbd4d6915b1164ed80a982a

generate: update to zig 0.14.1


22 files changed, 29 insertions(+), 29 deletions(-)

scripts/ArabicShaping.zig+1-1
......@@ -143,7 +143,7 @@ pub usingnamespace common.Main(struct {
143143 ;
144144
145145 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
146 var it = std.mem.split(u8, line, ";");
146 var it = std.mem.splitScalar(u8, line, ';');
147147 const c = std.mem.trim(u8, it.next().?, " ");
148148 const n = std.mem.trim(u8, it.next().?, " ");
149149 const t = std.mem.trim(u8, it.next().?, " ");
scripts/BidiBrackets.zig+1-1
......@@ -31,7 +31,7 @@ pub usingnamespace common.Main(struct {
3131 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
3232 _ = alloc;
3333
34 var it = std.mem.split(u8, line, ";");
34 var it = std.mem.splitScalar(u8, line, ';');
3535 const a = std.mem.trim(u8, it.next().?, " ");
3636 const b = std.mem.trim(u8, it.next().?, " ");
3737 const c = std.mem.trim(u8, it.next().?, " ");
scripts/BidiMirroring.zig+1-1
......@@ -23,7 +23,7 @@ pub usingnamespace common.Main(struct {
2323
2424 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
2525 _ = alloc;
26 var it = std.mem.tokenize(u8, line, "; #");
26 var it = std.mem.tokenizeAny(u8, line, "; #");
2727 const c = it.next().?;
2828 const m = it.next().?;
2929
scripts/Blocks.zig+2-2
......@@ -25,8 +25,8 @@ pub usingnamespace common.Main(struct {
2525 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
2626 _ = alloc;
2727
28 var it1 = std.mem.split(u8, line, "; ");
29 var it2 = std.mem.split(u8, it1.next().?, "..");
28 var it1 = std.mem.splitSequence(u8, line, "; ");
29 var it2 = std.mem.splitSequence(u8, it1.next().?, "..");
3030 const from = it2.next().?;
3131 const to = it2.next().?;
3232 const name = it1.next().?;
scripts/CaseFolding.zig+2-2
......@@ -38,7 +38,7 @@ pub usingnamespace common.Main(struct {
3838
3939 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
4040 _ = alloc;
41 var it = std.mem.split(u8, line, "; ");
41 var it = std.mem.splitSequence(u8, line, "; ");
4242 const code = it.next().?;
4343 const status = it.next().?;
4444 try writer.print(" .{{ .code = 0x{s}, .status = .{s}, .mapping = .{{ .{s} =", .{ code, status, status });
......@@ -50,7 +50,7 @@ pub usingnamespace common.Main(struct {
5050 },
5151 .F => {
5252 const mapping = it.next().?;
53 var jt = std.mem.split(u8, mapping, " ");
53 var jt = std.mem.splitScalar(u8, mapping, ' ');
5454 try writer.writeAll(" &[_]u21{");
5555 while (jt.next()) |jtem| {
5656 try writer.print("0x{s},", .{jtem});
scripts/CompositionExclusions.zig+1-1
......@@ -19,7 +19,7 @@ pub usingnamespace common.Main(struct {
1919
2020 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
2121 _ = alloc;
22 var it = std.mem.split(u8, line, " ");
22 var it = std.mem.splitScalar(u8, line, ' ');
2323 try writer.print(" 0x{s},\n", .{it.next().?});
2424 }
2525});
scripts/DerivedAge.zig+2-2
......@@ -24,7 +24,7 @@ pub usingnamespace common.Main(struct {
2424
2525 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
2626 _ = alloc;
27 var it = std.mem.tokenize(u8, line, "; ");
27 var it = std.mem.tokenizeAny(u8, line, "; ");
2828
2929 {
3030 const range = it.next().?;
......@@ -36,7 +36,7 @@ pub usingnamespace common.Main(struct {
3636 }
3737 {
3838 const added = it.next().?;
39 var jt = std.mem.split(u8, added, ".");
39 var jt = std.mem.splitScalar(u8, added, '.');
4040 const major = jt.next().?;
4141 const minor = jt.next().?;
4242 try writer.print(" .since = .{{ {s},{s} }} }},\n", .{ major, minor });
scripts/DerivedCoreProperties.zig+1-1
......@@ -47,7 +47,7 @@ pub usingnamespace common.Main(struct {
4747
4848 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
4949 _ = alloc;
50 var it = std.mem.tokenize(u8, line, "; ");
50 var it = std.mem.tokenizeAny(u8, line, "; ");
5151
5252 {
5353 const range = it.next().?;
scripts/EastAsianWidth.zig+1-1
......@@ -26,7 +26,7 @@ pub usingnamespace common.Main(struct {
2626
2727 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
2828 _ = alloc;
29 var it = std.mem.tokenize(u8, line, "; ");
29 var it = std.mem.tokenizeAny(u8, line, "; ");
3030
3131 {
3232 const range = it.next().?;
scripts/EmojiSources.zig+1-1
......@@ -26,7 +26,7 @@ pub usingnamespace common.Main(struct {
2626 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
2727 _ = alloc;
2828 if (std.mem.count(u8, line, " ") > 0) return;
29 var it = std.mem.split(u8, line, ";");
29 var it = std.mem.splitScalar(u8, line, ';');
3030 const code = it.next().?;
3131 // FIXME remove @as and temp vars after switch off stage1
3232 const docomo = common.nullify(it.next().?) orelse @as([]const u8, "0");
scripts/EquivalentUnifiedIdeograph.zig+1-1
......@@ -18,7 +18,7 @@ pub usingnamespace common.Main(struct {
1818
1919 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
2020 _ = alloc;
21 var it = std.mem.tokenize(u8, line, "; ");
21 var it = std.mem.tokenizeAny(u8, line, "; ");
2222
2323 const first = it.next().?;
2424 const next = it.next().?;
scripts/HangulSyllableType.zig+1-1
......@@ -26,7 +26,7 @@ pub usingnamespace common.Main(struct {
2626
2727 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
2828 _ = alloc;
29 var it = std.mem.tokenize(u8, line, "; ");
29 var it = std.mem.tokenizeAny(u8, line, "; ");
3030
3131 {
3232 const range = it.next().?;
scripts/IndicPositionalCategory.zig+1-1
......@@ -25,7 +25,7 @@ pub usingnamespace common.Main(struct {
2525
2626 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
2727 _ = alloc;
28 var it = std.mem.tokenize(u8, line, "; ");
28 var it = std.mem.tokenizeAny(u8, line, "; ");
2929
3030 const first = it.next().?;
3131 const next = it.next().?;
scripts/IndicSyllabicCategory.zig+1-1
......@@ -25,7 +25,7 @@ pub usingnamespace common.Main(struct {
2525
2626 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
2727 _ = alloc;
28 var it = std.mem.tokenize(u8, line, "; ");
28 var it = std.mem.tokenizeAny(u8, line, "; ");
2929
3030 const first = it.next().?;
3131 const next = it.next().?;
scripts/Jamo.zig+1-1
......@@ -23,7 +23,7 @@ pub usingnamespace common.Main(struct {
2323
2424 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
2525 _ = alloc;
26 var it = std.mem.tokenize(u8, line, "; ");
26 var it = std.mem.tokenizeAny(u8, line, "; ");
2727
2828 const first = it.next().?;
2929 const next = it.next().?;
scripts/NameAliases.zig+1-1
......@@ -32,7 +32,7 @@ pub usingnamespace common.Main(struct {
3232
3333 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
3434 _ = alloc;
35 var it = std.mem.split(u8, line, ";");
35 var it = std.mem.splitScalar(u8, line, ';');
3636
3737 try writer.print(" .{{ .code = 0x{s}, .alias = \"{}\", .type = .{s} }},\n", .{
3838 it.next().?,
scripts/NamedSequences.zig+2-2
......@@ -23,11 +23,11 @@ pub usingnamespace common.Main(struct {
2323
2424 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
2525 _ = alloc;
26 var it = std.mem.split(u8, line, ";");
26 var it = std.mem.splitScalar(u8, line, ';');
2727
2828 try writer.print(" .{{ .name = \"{}\", .sequence = &[_]u21{{", .{std.zig.fmtEscapes(it.next().?)});
2929
30 var jt = std.mem.tokenize(u8, it.next().?, " ");
30 var jt = std.mem.tokenizeScalar(u8, it.next().?, ' ');
3131 while (jt.next()) |jtem| {
3232 try writer.print(" 0x{s},", .{jtem});
3333 }
scripts/NamedSequencesProv.zig+2-2
......@@ -23,11 +23,11 @@ pub usingnamespace common.Main(struct {
2323
2424 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
2525 _ = alloc;
26 var it = std.mem.split(u8, line, ";");
26 var it = std.mem.splitScalar(u8, line, ';');
2727
2828 try writer.print(" .{{ .name = \"{}\", .sequence = &[_]u21{{", .{std.zig.fmtEscapes(it.next().?)});
2929
30 var jt = std.mem.tokenize(u8, it.next().?, " ");
30 var jt = std.mem.tokenizeScalar(u8, it.next().?, ' ');
3131 while (jt.next()) |jtem| {
3232 try writer.print(" 0x{s},", .{jtem});
3333 }
scripts/PropertyAliases.zig+1-1
......@@ -20,7 +20,7 @@ pub usingnamespace common.Main(struct {
2020 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
2121 _ = alloc;
2222 const end = std.mem.indexOfScalar(u8, line, '#') orelse line.len;
23 var it = std.mem.tokenize(u8, line[0..end], "; ");
23 var it = std.mem.tokenizeAny(u8, line[0..end], "; ");
2424
2525 const short = it.next().?;
2626 const long = it.next().?;
scripts/PropertyValueAliases.zig+1-1
......@@ -21,7 +21,7 @@ pub usingnamespace common.Main(struct {
2121 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
2222 _ = alloc;
2323 const end = std.mem.indexOfScalar(u8, line, '#') orelse line.len;
24 var it = std.mem.tokenize(u8, line[0..end], "; ");
24 var it = std.mem.tokenizeAny(u8, line[0..end], "; ");
2525
2626 var vals = [_][]const u8{
2727 it.next().?,
scripts/ScriptExtensions.zig+2-2
......@@ -25,7 +25,7 @@ pub usingnamespace common.Main(struct {
2525
2626 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
2727 _ = alloc;
28 var it = std.mem.tokenize(u8, line, "; ");
28 var it = std.mem.tokenizeAny(u8, line, "; ");
2929
3030 const first = it.next().?;
3131
......@@ -54,7 +54,7 @@ fn formatScripts(bytes: []const u8, comptime fmt: []const u8, options: std.fmt.F
5454 _ = fmt;
5555 _ = options;
5656 try writer.writeAll("&.{");
57 var it = std.mem.split(u8, bytes, " ");
57 var it = std.mem.splitScalar(u8, bytes, ' ');
5858 while (it.next()) |item| {
5959 if (item.len == 0) continue;
6060 try writer.print(" .{s},", .{item});
scripts/_common.zig+2-2
......@@ -91,7 +91,7 @@ pub fn RangeEnum(comptime prop: []const u8) type {
9191 return struct {
9292 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
9393 _ = alloc;
94 var it = std.mem.tokenize(u8, line, "; ");
94 var it = std.mem.tokenizeAny(u8, line, "; ");
9595
9696 const first = it.next().?;
9797 const next = std.mem.trimRight(u8, it.next().?, "#");
......@@ -112,7 +112,7 @@ pub fn printCodepoint(writer: anytype, input: []const u8) !void {
112112}
113113
114114pub fn printSeq(writer: anytype, input: []const u8) !void {
115 var jt = std.mem.tokenize(u8, input, " ");
115 var jt = std.mem.tokenizeScalar(u8, input, ' ');
116116 try writer.writeAll(" &.{");
117117 while (jt.next()) |jtem| {
118118 try printCodepoint(writer, jtem);