Commit Graph

8 Commits

Author SHA1 Message Date
Vivianne 31012d5b8f Yet another reorganization, and solve Christine's 'rude problem'
- We change the stream iterator to *always* return a grapheme
  (except for EOF). The grapheme then gets built up over time.
  - This way, trans flag for example is first white flag, then
  white flag + zwj, etc until it finally transforms into the
  trans flag.
  - Users of the stream library can then use the `modification?'
  flag to determine if the stream value is a modification of the
  prior grapheme instead of a new grapheme.
  - Abstracted iteration to an iterator object to support use cases
  where we don't have an input stream (reflow needs this!)
2024-03-05 11:46:32 -05:00
Vivianne 92dc5a8908 Fixing issues with the stream unit tests (#1)
Reviewed-on: #1
Co-authored-by: Vivianne Langdon <puttabutta@gmail.com>
Co-committed-by: Vivianne Langdon <puttabutta@gmail.com>
2024-03-04 19:04:27 +00:00
Vivianne fcc0f4b263 Add failing unit tests, seems stream is not 100% 2024-03-03 23:18:13 -05:00
Vivianne 59c9347bea Unit tests! 2024-03-03 21:17:15 -05:00
Vivianne ded13ff781 Rename func 2024-03-03 20:33:12 -05:00
Vivianne f1c03097f1 Renaming to uniseg 2024-03-03 13:13:22 -05:00
Vivianne 5b440bbb64 Reorganize, fix a bug with string shared 2024-03-02 14:00:05 -05:00
Vivianne eaaceb3c56 Adding check for east asian charset with tests 2024-02-29 15:17:43 -05:00