Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add iterators #14

Merged
merged 5 commits into from
Jun 26, 2024
Merged

Add iterators #14

merged 5 commits into from
Jun 26, 2024

Conversation

mcy
Copy link
Owner

@mcy mcy commented Jun 26, 2024

This adds something like Rust's Iterator trait but in a way that is suitable for C++ use. We have:

  • best::iter and friends.
  • best::int_range, which best::bounds is now a specialization of. It's an iterator.
  • best::span::find() and best::text::find() now have standardized interfaces.
  • best::span::split(), best::text::split().
  • best::text::runes() and best::text::rune_indices().
  • best::pretext, i.e., a best::text that has not been validated.

Removed best::rune::iter, since it was a stopgap solution until we got here.

@mcy mcy merged commit 3475255 into main Jun 26, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant