summaryrefslogtreecommitdiff
path: root/src/unicode_tests.zig
diff options
context:
space:
mode:
authorGravatar Sam Atman2025-05-16 12:06:36 -0400
committerGravatar Sam Atman2025-05-16 12:06:36 -0400
commitaa20bebade8eeb3ca75199dc252feb3edb203fb1 (patch)
tree2e832616bbf554ca3a20588d050c0dc764f4cf65 /src/unicode_tests.zig
parentMove WordBreak to Words (diff)
downloadzg-aa20bebade8eeb3ca75199dc252feb3edb203fb1.tar.gz
zg-aa20bebade8eeb3ca75199dc252feb3edb203fb1.tar.xz
zg-aa20bebade8eeb3ca75199dc252feb3edb203fb1.zip
Words module
In keeping with the new nomenclature, we're calling the module "Words", not "WordBreak". The latter is Unicode jargon, the module provides word iterators. Words are the figure, word breaks are the ground.
Diffstat (limited to 'src/unicode_tests.zig')
-rw-r--r--src/unicode_tests.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unicode_tests.zig b/src/unicode_tests.zig
index 7139d4c..18f1814 100644
--- a/src/unicode_tests.zig
+++ b/src/unicode_tests.zig
@@ -211,7 +211,7 @@ test "Segmentation Word Iterator" {
211 var buf_reader = std.io.bufferedReader(file.reader()); 211 var buf_reader = std.io.bufferedReader(file.reader());
212 var input_stream = buf_reader.reader(); 212 var input_stream = buf_reader.reader();
213 213
214 const wb = try WordBreak.init(allocator); 214 const wb = try Words.init(allocator);
215 defer wb.deinit(allocator); 215 defer wb.deinit(allocator);
216 216
217 var buf: [4096]u8 = undefined; 217 var buf: [4096]u8 = undefined;
@@ -392,5 +392,5 @@ const Graphemes = @import("Graphemes");
392const GraphemeIterator = @import("Graphemes").Iterator; 392const GraphemeIterator = @import("Graphemes").Iterator;
393const Normalize = @import("Normalize"); 393const Normalize = @import("Normalize");
394 394
395const WordBreak = @import("WordBreak"); 395const Words = @import("Words");
396const Word = WordBreak.Word; 396const Word = Words.Word;