summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.zig15
-rw-r--r--src/Folder.zig (renamed from src/Caser.zig)0
2 files changed, 8 insertions, 7 deletions
diff --git a/build.zig b/build.zig
index 073efcc..16ffc1e 100644
--- a/build.zig
+++ b/build.zig
@@ -219,14 +219,14 @@ pub fn build(b: *std.Build) void {
219 }); 219 });
220 fold_data.addAnonymousImport("fold", .{ .root_source_file = fold_gen_out }); 220 fold_data.addAnonymousImport("fold", .{ .root_source_file = fold_gen_out });
221 221
222 const caser = b.addModule("Caser", .{ 222 const folder = b.addModule("Folder", .{
223 .root_source_file = .{ .path = "src/Caser.zig" }, 223 .root_source_file = .{ .path = "src/Folder.zig" },
224 .target = target, 224 .target = target,
225 .optimize = optimize, 225 .optimize = optimize,
226 }); 226 });
227 caser.addImport("ascii", ascii); 227 folder.addImport("ascii", ascii);
228 caser.addImport("FoldData", fold_data); 228 folder.addImport("FoldData", fold_data);
229 caser.addImport("Normalizer", norm); 229 folder.addImport("Normalizer", norm);
230 230
231 // Benchmark rig 231 // Benchmark rig
232 const exe = b.addExecutable(.{ 232 const exe = b.addExecutable(.{
@@ -234,6 +234,7 @@ pub fn build(b: *std.Build) void {
234 .root_source_file = .{ .path = "src/main.zig" }, 234 .root_source_file = .{ .path = "src/main.zig" },
235 .target = target, 235 .target = target,
236 .optimize = optimize, 236 .optimize = optimize,
237 // .strip = true,
237 }); 238 });
238 // exe.root_module.addImport("ziglyph", ziglyph.module("ziglyph")); 239 // exe.root_module.addImport("ziglyph", ziglyph.module("ziglyph"));
239 // exe.root_module.addImport("ascii", ascii); 240 // exe.root_module.addImport("ascii", ascii);
@@ -241,7 +242,7 @@ pub fn build(b: *std.Build) void {
241 // exe.root_module.addImport("grapheme", grapheme); 242 // exe.root_module.addImport("grapheme", grapheme);
242 // exe.root_module.addImport("DisplayWidth", display_width); 243 // exe.root_module.addImport("DisplayWidth", display_width);
243 exe.root_module.addImport("Normalizer", norm); 244 exe.root_module.addImport("Normalizer", norm);
244 // exe.root_module.addImport("Caser", caser); 245 // exe.root_module.addImport("Folder", folder);
245 // exe.root_module.addImport("GenCatData", gencat_data); 246 // exe.root_module.addImport("GenCatData", gencat_data);
246 b.installArtifact(exe); 247 b.installArtifact(exe);
247 248
@@ -254,7 +255,7 @@ pub fn build(b: *std.Build) void {
254 255
255 // Tests 256 // Tests
256 const exe_unit_tests = b.addTest(.{ 257 const exe_unit_tests = b.addTest(.{
257 .root_source_file = .{ .path = "src/Caser.zig" }, 258 .root_source_file = .{ .path = "src/Folder.zig" },
258 .target = target, 259 .target = target,
259 .optimize = optimize, 260 .optimize = optimize,
260 }); 261 });
diff --git a/src/Caser.zig b/src/Folder.zig
index 43a3a5b..43a3a5b 100644
--- a/src/Caser.zig
+++ b/src/Folder.zig