unicode-rs / unicode-normalization

Unicode Normalization forms according to UAX#15 rules
https://unicode-rs.github.io/unicode-normalization
Other
158 stars 40 forks source link

Make the decompose iterator avoid buffering elements past a starter. #64

Closed sunfishcode closed 3 years ago

sunfishcode commented 3 years ago

Once the decompose iterator sees a starter, it should immediately start returning characters from the preceeding sequence. If the input happens to be stream-safe, it should never get more than MAX_NONSTARTERS + plus boundary values ahead of its inner iterator.