4
92
Fork
You've already forked zg
23

grapheme-peek #18

Merged
dude_the_builder merged 2 commits from grapheme-peek into master 2024年11月03日 20:29:09 +01:00
Owner
Copy link

This adds a peek member function to grapheme.Iterator.

Tests are in unicode-test because I couldn't figure out how to run them in grapheme.zig. This also updates unicode-test to not use std.mem.split which is now deprecated on Zig master branch.

This adds a `peek` member function to `grapheme.Iterator`. Tests are in `unicode-test` because I couldn't figure out how to run them in `grapheme.zig`. This also updates `unicode-test` to not use `std.mem.split` which is now deprecated on Zig master branch.
This does the expected thing: returns the next ?Grapheme without
mutation of the iteration state.
First-time contributor
Copy link

Great contribution and fix for the tests. Thanks!

Great contribution and fix for the tests. Thanks!
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
atman/zg!18
Reference in a new issue
atman/zg
No description provided.
Delete branch "grapheme-peek"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?