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

[stdlib] Add _SplitlinesIter #3858

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

martinvuyk
Copy link
Contributor

Add _SplitlinesIter

This allows lazy iteration over generic line boundaries.

Signed-off-by: martinvuyk <martin.vuyklop@gmail.com>
@martinvuyk martinvuyk requested a review from a team as a code owner December 10, 2024 23:43
Signed-off-by: martinvuyk <martin.vuyklop@gmail.com>
martinvuyk and others added 5 commits December 17, 2024 14:15
Signed-off-by: martinvuyk <martin.vuyklop@gmail.com>
Signed-off-by: martinvuyk <martin.vuyklop@gmail.com>
Signed-off-by: martinvuyk <martin.vuyklop@gmail.com>
@skongum02 skongum02 deleted the branch modular:main January 29, 2025 18:59
@skongum02 skongum02 closed this Jan 29, 2025
@skongum02 skongum02 reopened this Jan 29, 2025
@skongum02 skongum02 changed the base branch from nightly to main January 29, 2025 20:37
@martinvuyk
Copy link
Contributor Author

Hi @ConnorGray this kind of iterator is what I had in mind for StringSliceIter to be able to evolve into. Then also have a grapheme iterator, UTF32Iter/UnicodeIter (currently called CharIter which IMO is confusing), etc. Using UTF-8 with a view is simply much more efficient than building a Char which needs to copy and transform data into a UTF-32 format for every iteration.

martinvuyk and others added 4 commits February 22, 2025 11:08
Signed-off-by: martinvuyk <martin.vuyklop@gmail.com>
Signed-off-by: martinvuyk <martin.vuyklop@gmail.com>
@martinvuyk martinvuyk requested a review from a team as a code owner February 27, 2025 14:26
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.

4 participants