summaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorGravatar Jose Colon Rodriguez2024-02-14 12:02:02 -0400
committerGravatar Jose Colon Rodriguez2024-02-14 12:02:02 -0400
commit703a824c1bb7fc41535c9515c5a2209d04899d19 (patch)
tree0572d99ce590a644bf54444a41e20a9688fecb19 /src/main.zig
parentRemoved unreachables from CodePointIterator (diff)
downloadzg-703a824c1bb7fc41535c9515c5a2209d04899d19.tar.gz
zg-703a824c1bb7fc41535c9515c5a2209d04899d19.tar.xz
zg-703a824c1bb7fc41535c9515c5a2209d04899d19.zip
Code reorg; Added UCD
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main.zig b/src/main.zig
index 8335530..a78c1dc 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -16,14 +16,15 @@ pub fn main() !void {
16 16
17 var timer = try std.time.Timer.start(); 17 var timer = try std.time.Timer.start();
18 18
19 for (0..50) |_| { 19 // for (0..50) |_| {
20 while (iter.next()) |_| result += 1; 20 while (iter.next()) |_| result += 1;
21 iter.cp_iter.i = 0; 21 iter.cp_iter.i = 0;
22 } 22 // }
23 23
24 std.debug.print("result: {}, took: {}\n", .{ result, timer.lap() / std.time.ns_per_ms }); 24 std.debug.print("result: {}, took: {}\n", .{ result, timer.lap() / std.time.ns_per_ms });
25} 25}
26 26
27test { 27test {
28 _ = @import("CodePoint.zig");
28 _ = @import("Grapheme.zig"); 29 _ = @import("Grapheme.zig");
29} 30}