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 {...@@ -143,7 +143,7 @@ pub usingnamespace common.Main(struct {
143 ;143 ;
144144
145 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {145 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, ';');
147 const c = std.mem.trim(u8, it.next().?, " ");147 const c = std.mem.trim(u8, it.next().?, " ");
148 const n = std.mem.trim(u8, it.next().?, " ");148 const n = std.mem.trim(u8, it.next().?, " ");
149 const t = std.mem.trim(u8, it.next().?, " ");149 const t = std.mem.trim(u8, it.next().?, " ");
scripts/BidiBrackets.zig+1-1
...@@ -31,7 +31,7 @@ pub usingnamespace common.Main(struct {...@@ -31,7 +31,7 @@ pub usingnamespace common.Main(struct {
31 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {31 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
32 _ = alloc;32 _ = alloc;
3333
34 var it = std.mem.split(u8, line, ";");34 var it = std.mem.splitScalar(u8, line, ';');
35 const a = std.mem.trim(u8, it.next().?, " ");35 const a = std.mem.trim(u8, it.next().?, " ");
36 const b = std.mem.trim(u8, it.next().?, " ");36 const b = std.mem.trim(u8, it.next().?, " ");
37 const c = std.mem.trim(u8, it.next().?, " ");37 const c = std.mem.trim(u8, it.next().?, " ");
scripts/BidiMirroring.zig+1-1
...@@ -23,7 +23,7 @@ pub usingnamespace common.Main(struct {...@@ -23,7 +23,7 @@ pub usingnamespace common.Main(struct {
2323
24 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {24 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
25 _ = alloc;25 _ = alloc;
26 var it = std.mem.tokenize(u8, line, "; #");26 var it = std.mem.tokenizeAny(u8, line, "; #");
27 const c = it.next().?;27 const c = it.next().?;
28 const m = it.next().?;28 const m = it.next().?;
2929
scripts/Blocks.zig+2-2
...@@ -25,8 +25,8 @@ pub usingnamespace common.Main(struct {...@@ -25,8 +25,8 @@ pub usingnamespace common.Main(struct {
25 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {25 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
26 _ = alloc;26 _ = alloc;
2727
28 var it1 = std.mem.split(u8, line, "; ");28 var it1 = std.mem.splitSequence(u8, line, "; ");
29 var it2 = std.mem.split(u8, it1.next().?, "..");29 var it2 = std.mem.splitSequence(u8, it1.next().?, "..");
30 const from = it2.next().?;30 const from = it2.next().?;
31 const to = it2.next().?;31 const to = it2.next().?;
32 const name = it1.next().?;32 const name = it1.next().?;
scripts/CaseFolding.zig+2-2
...@@ -38,7 +38,7 @@ pub usingnamespace common.Main(struct {...@@ -38,7 +38,7 @@ pub usingnamespace common.Main(struct {
3838
39 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {39 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
40 _ = alloc;40 _ = alloc;
41 var it = std.mem.split(u8, line, "; ");41 var it = std.mem.splitSequence(u8, line, "; ");
42 const code = it.next().?;42 const code = it.next().?;
43 const status = it.next().?;43 const status = it.next().?;
44 try writer.print(" .{{ .code = 0x{s}, .status = .{s}, .mapping = .{{ .{s} =", .{ code, status, status });44 try writer.print(" .{{ .code = 0x{s}, .status = .{s}, .mapping = .{{ .{s} =", .{ code, status, status });
...@@ -50,7 +50,7 @@ pub usingnamespace common.Main(struct {...@@ -50,7 +50,7 @@ pub usingnamespace common.Main(struct {
50 },50 },
51 .F => {51 .F => {
52 const mapping = it.next().?;52 const mapping = it.next().?;
53 var jt = std.mem.split(u8, mapping, " ");53 var jt = std.mem.splitScalar(u8, mapping, ' ');
54 try writer.writeAll(" &[_]u21{");54 try writer.writeAll(" &[_]u21{");
55 while (jt.next()) |jtem| {55 while (jt.next()) |jtem| {
56 try writer.print("0x{s},", .{jtem});56 try writer.print("0x{s},", .{jtem});
scripts/CompositionExclusions.zig+1-1
...@@ -19,7 +19,7 @@ pub usingnamespace common.Main(struct {...@@ -19,7 +19,7 @@ pub usingnamespace common.Main(struct {
1919
20 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {20 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
21 _ = alloc;21 _ = alloc;
22 var it = std.mem.split(u8, line, " ");22 var it = std.mem.splitScalar(u8, line, ' ');
23 try writer.print(" 0x{s},\n", .{it.next().?});23 try writer.print(" 0x{s},\n", .{it.next().?});
24 }24 }
25});25});
scripts/DerivedAge.zig+2-2
...@@ -24,7 +24,7 @@ pub usingnamespace common.Main(struct {...@@ -24,7 +24,7 @@ pub usingnamespace common.Main(struct {
2424
25 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {25 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
26 _ = alloc;26 _ = alloc;
27 var it = std.mem.tokenize(u8, line, "; ");27 var it = std.mem.tokenizeAny(u8, line, "; ");
2828
29 {29 {
30 const range = it.next().?;30 const range = it.next().?;
...@@ -36,7 +36,7 @@ pub usingnamespace common.Main(struct {...@@ -36,7 +36,7 @@ pub usingnamespace common.Main(struct {
36 }36 }
37 {37 {
38 const added = it.next().?;38 const added = it.next().?;
39 var jt = std.mem.split(u8, added, ".");39 var jt = std.mem.splitScalar(u8, added, '.');
40 const major = jt.next().?;40 const major = jt.next().?;
41 const minor = jt.next().?;41 const minor = jt.next().?;
42 try writer.print(" .since = .{{ {s},{s} }} }},\n", .{ major, minor });42 try writer.print(" .since = .{{ {s},{s} }} }},\n", .{ major, minor });
scripts/DerivedCoreProperties.zig+1-1
...@@ -47,7 +47,7 @@ pub usingnamespace common.Main(struct {...@@ -47,7 +47,7 @@ pub usingnamespace common.Main(struct {
4747
48 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {48 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
49 _ = alloc;49 _ = alloc;
50 var it = std.mem.tokenize(u8, line, "; ");50 var it = std.mem.tokenizeAny(u8, line, "; ");
5151
52 {52 {
53 const range = it.next().?;53 const range = it.next().?;
scripts/EastAsianWidth.zig+1-1
...@@ -26,7 +26,7 @@ pub usingnamespace common.Main(struct {...@@ -26,7 +26,7 @@ pub usingnamespace common.Main(struct {
2626
27 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {27 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
28 _ = alloc;28 _ = alloc;
29 var it = std.mem.tokenize(u8, line, "; ");29 var it = std.mem.tokenizeAny(u8, line, "; ");
3030
31 {31 {
32 const range = it.next().?;32 const range = it.next().?;
scripts/EmojiSources.zig+1-1
...@@ -26,7 +26,7 @@ pub usingnamespace common.Main(struct {...@@ -26,7 +26,7 @@ pub usingnamespace common.Main(struct {
26 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {26 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
27 _ = alloc;27 _ = alloc;
28 if (std.mem.count(u8, line, " ") > 0) return;28 if (std.mem.count(u8, line, " ") > 0) return;
29 var it = std.mem.split(u8, line, ";");29 var it = std.mem.splitScalar(u8, line, ';');
30 const code = it.next().?;30 const code = it.next().?;
31 // FIXME remove @as and temp vars after switch off stage131 // FIXME remove @as and temp vars after switch off stage1
32 const docomo = common.nullify(it.next().?) orelse @as([]const u8, "0");32 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 {...@@ -18,7 +18,7 @@ pub usingnamespace common.Main(struct {
1818
19 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {19 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
20 _ = alloc;20 _ = alloc;
21 var it = std.mem.tokenize(u8, line, "; ");21 var it = std.mem.tokenizeAny(u8, line, "; ");
2222
23 const first = it.next().?;23 const first = it.next().?;
24 const next = it.next().?;24 const next = it.next().?;
scripts/HangulSyllableType.zig+1-1
...@@ -26,7 +26,7 @@ pub usingnamespace common.Main(struct {...@@ -26,7 +26,7 @@ pub usingnamespace common.Main(struct {
2626
27 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {27 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
28 _ = alloc;28 _ = alloc;
29 var it = std.mem.tokenize(u8, line, "; ");29 var it = std.mem.tokenizeAny(u8, line, "; ");
3030
31 {31 {
32 const range = it.next().?;32 const range = it.next().?;
scripts/IndicPositionalCategory.zig+1-1
...@@ -25,7 +25,7 @@ pub usingnamespace common.Main(struct {...@@ -25,7 +25,7 @@ pub usingnamespace common.Main(struct {
2525
26 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {26 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
27 _ = alloc;27 _ = alloc;
28 var it = std.mem.tokenize(u8, line, "; ");28 var it = std.mem.tokenizeAny(u8, line, "; ");
2929
30 const first = it.next().?;30 const first = it.next().?;
31 const next = it.next().?;31 const next = it.next().?;
scripts/IndicSyllabicCategory.zig+1-1
...@@ -25,7 +25,7 @@ pub usingnamespace common.Main(struct {...@@ -25,7 +25,7 @@ pub usingnamespace common.Main(struct {
2525
26 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {26 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
27 _ = alloc;27 _ = alloc;
28 var it = std.mem.tokenize(u8, line, "; ");28 var it = std.mem.tokenizeAny(u8, line, "; ");
2929
30 const first = it.next().?;30 const first = it.next().?;
31 const next = it.next().?;31 const next = it.next().?;
scripts/Jamo.zig+1-1
...@@ -23,7 +23,7 @@ pub usingnamespace common.Main(struct {...@@ -23,7 +23,7 @@ pub usingnamespace common.Main(struct {
2323
24 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {24 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
25 _ = alloc;25 _ = alloc;
26 var it = std.mem.tokenize(u8, line, "; ");26 var it = std.mem.tokenizeAny(u8, line, "; ");
2727
28 const first = it.next().?;28 const first = it.next().?;
29 const next = it.next().?;29 const next = it.next().?;
scripts/NameAliases.zig+1-1
...@@ -32,7 +32,7 @@ pub usingnamespace common.Main(struct {...@@ -32,7 +32,7 @@ pub usingnamespace common.Main(struct {
3232
33 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {33 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
34 _ = alloc;34 _ = alloc;
35 var it = std.mem.split(u8, line, ";");35 var it = std.mem.splitScalar(u8, line, ';');
3636
37 try writer.print(" .{{ .code = 0x{s}, .alias = \"{}\", .type = .{s} }},\n", .{37 try writer.print(" .{{ .code = 0x{s}, .alias = \"{}\", .type = .{s} }},\n", .{
38 it.next().?,38 it.next().?,
scripts/NamedSequences.zig+2-2
...@@ -23,11 +23,11 @@ pub usingnamespace common.Main(struct {...@@ -23,11 +23,11 @@ pub usingnamespace common.Main(struct {
2323
24 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {24 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
25 _ = alloc;25 _ = alloc;
26 var it = std.mem.split(u8, line, ";");26 var it = std.mem.splitScalar(u8, line, ';');
2727
28 try writer.print(" .{{ .name = \"{}\", .sequence = &[_]u21{{", .{std.zig.fmtEscapes(it.next().?)});28 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().?, ' ');
31 while (jt.next()) |jtem| {31 while (jt.next()) |jtem| {
32 try writer.print(" 0x{s},", .{jtem});32 try writer.print(" 0x{s},", .{jtem});
33 }33 }
scripts/NamedSequencesProv.zig+2-2
...@@ -23,11 +23,11 @@ pub usingnamespace common.Main(struct {...@@ -23,11 +23,11 @@ pub usingnamespace common.Main(struct {
2323
24 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {24 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
25 _ = alloc;25 _ = alloc;
26 var it = std.mem.split(u8, line, ";");26 var it = std.mem.splitScalar(u8, line, ';');
2727
28 try writer.print(" .{{ .name = \"{}\", .sequence = &[_]u21{{", .{std.zig.fmtEscapes(it.next().?)});28 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().?, ' ');
31 while (jt.next()) |jtem| {31 while (jt.next()) |jtem| {
32 try writer.print(" 0x{s},", .{jtem});32 try writer.print(" 0x{s},", .{jtem});
33 }33 }
scripts/PropertyAliases.zig+1-1
...@@ -20,7 +20,7 @@ pub usingnamespace common.Main(struct {...@@ -20,7 +20,7 @@ pub usingnamespace common.Main(struct {
20 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {20 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
21 _ = alloc;21 _ = alloc;
22 const end = std.mem.indexOfScalar(u8, line, '#') orelse line.len;22 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
25 const short = it.next().?;25 const short = it.next().?;
26 const long = it.next().?;26 const long = it.next().?;
scripts/PropertyValueAliases.zig+1-1
...@@ -21,7 +21,7 @@ pub usingnamespace common.Main(struct {...@@ -21,7 +21,7 @@ pub usingnamespace common.Main(struct {
21 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {21 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
22 _ = alloc;22 _ = alloc;
23 const end = std.mem.indexOfScalar(u8, line, '#') orelse line.len;23 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
26 var vals = [_][]const u8{26 var vals = [_][]const u8{
27 it.next().?,27 it.next().?,
scripts/ScriptExtensions.zig+2-2
...@@ -25,7 +25,7 @@ pub usingnamespace common.Main(struct {...@@ -25,7 +25,7 @@ pub usingnamespace common.Main(struct {
2525
26 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {26 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
27 _ = alloc;27 _ = alloc;
28 var it = std.mem.tokenize(u8, line, "; ");28 var it = std.mem.tokenizeAny(u8, line, "; ");
2929
30 const first = it.next().?;30 const first = it.next().?;
3131
...@@ -54,7 +54,7 @@ fn formatScripts(bytes: []const u8, comptime fmt: []const u8, options: std.fmt.F...@@ -54,7 +54,7 @@ fn formatScripts(bytes: []const u8, comptime fmt: []const u8, options: std.fmt.F
54 _ = fmt;54 _ = fmt;
55 _ = options;55 _ = options;
56 try writer.writeAll("&.{");56 try writer.writeAll("&.{");
57 var it = std.mem.split(u8, bytes, " ");57 var it = std.mem.splitScalar(u8, bytes, ' ');
58 while (it.next()) |item| {58 while (it.next()) |item| {
59 if (item.len == 0) continue;59 if (item.len == 0) continue;
60 try writer.print(" .{s},", .{item});60 try writer.print(" .{s},", .{item});
scripts/_common.zig+2-2
...@@ -91,7 +91,7 @@ pub fn RangeEnum(comptime prop: []const u8) type {...@@ -91,7 +91,7 @@ pub fn RangeEnum(comptime prop: []const u8) type {
91 return struct {91 return struct {
92 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {92 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
93 _ = alloc;93 _ = alloc;
94 var it = std.mem.tokenize(u8, line, "; ");94 var it = std.mem.tokenizeAny(u8, line, "; ");
9595
96 const first = it.next().?;96 const first = it.next().?;
97 const next = std.mem.trimRight(u8, it.next().?, "#");97 const next = std.mem.trimRight(u8, it.next().?, "#");
...@@ -112,7 +112,7 @@ pub fn printCodepoint(writer: anytype, input: []const u8) !void {...@@ -112,7 +112,7 @@ pub fn printCodepoint(writer: anytype, input: []const u8) !void {
112}112}
113113
114pub fn printSeq(writer: anytype, input: []const u8) !void {114pub fn printSeq(writer: anytype, input: []const u8) !void {
115 var jt = std.mem.tokenize(u8, input, " ");115 var jt = std.mem.tokenizeScalar(u8, input, ' ');
116 try writer.writeAll(" &.{");116 try writer.writeAll(" &.{");
117 while (jt.next()) |jtem| {117 while (jt.next()) |jtem| {
118 try printCodepoint(writer, jtem);118 try printCodepoint(writer, jtem);