Closed spencerwhite closed 2 years ago
Just to let you know that I have your PR on my to-do list for review.
Do you have an example of Iterator<Item=char>
that’s not Chars
?
Changes vetted and merged
Do you have an example of
Iterator<Item=char>
that’s notChars
?
Hey, I'm sorry I totally forgot to respond to this. School and all. Anyway, the idea was that I wanted to be able to find the nth grapheme cluster in a string without having to read the whole string. Then you could use it with async Streams and such
I made a very small change that allows any
Iterator
overchar
s to use thenext_cluster()
function fromGraphemeCluster
. Admittedly, it got a little ugly in order to keepCharIndices
implemented. I hope this would be a welcome addition since it makes the code much more generic, though admittedly more messy. Will submit a PR soon.