summaryrefslogtreecommitdiff
path: root/src/code_point.zig
diff options
context:
space:
mode:
authorGravatar Sam Atman2025-05-15 10:57:33 -0400
committerGravatar Sam Atman2025-05-15 15:32:43 -0400
commit736b4ccce2384c8f96e63d9c49ab4d6aee1d65a5 (patch)
tree09cdc6762a519cd2f20efacfa4d1af082f983e85 /src/code_point.zig
parentRewrite wordAtIndex to use iterator flipping (diff)
downloadzg-736b4ccce2384c8f96e63d9c49ab4d6aee1d65a5.tar.gz
zg-736b4ccce2384c8f96e63d9c49ab4d6aee1d65a5.tar.xz
zg-736b4ccce2384c8f96e63d9c49ab4d6aee1d65a5.zip
wordAtIndex passes conformance
I removed the initAtIndex functions from the public vocabulary, because the last couple of days of sweat and blood prove that it's hard to use correctly. That's probably it for WordBreak, now to fix the overlong bug on v0.14 and get this integrated with the new reverse grapheme iterator.
Diffstat (limited to 'src/code_point.zig')
-rw-r--r--src/code_point.zig1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/code_point.zig b/src/code_point.zig
index 43b38d2..9a84080 100644
--- a/src/code_point.zig
+++ b/src/code_point.zig
@@ -272,7 +272,6 @@ pub const ReverseIterator = struct {
272 272
273 while (i_prev > 0) : (i_prev -= 1) { 273 while (i_prev > 0) : (i_prev -= 1) {
274 if (!followbyte(iter.bytes[i_prev])) break; 274 if (!followbyte(iter.bytes[i_prev])) break;
275 if (i_prev == 0) break;
276 } 275 }
277 276
278 if (i_prev > 0) 277 if (i_prev > 0)