chiark / gitweb /
Build paragraphs, in a bodgy slow way.
authorSimon Tatham <anakin@pobox.com>
Mon, 25 Dec 2023 10:42:14 +0000 (10:42 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 25 Dec 2023 11:59:48 +0000 (11:59 +0000)
commitbb138cc38e6bd41b11235abeb3f5bb9164d7f03f
treeaff928d4272383a653633f4eb7ad358648589626
parent9b006f82536f19c71dba0db6be611fd74f412e7a
Build paragraphs, in a bodgy slow way.

For the moment, I've made a CharIterator that returns each coloured
character of a ColouredString one by one. That's nasty, but easy. I
think more ideally I'd want an iterator that returned contiguous
chunks of a ColouredString according to a filter function passed in
that classifies characters as wanting to be in the same chunk. But
that involves function parameters, so I can try that later.
src/coloured_string.rs
src/text.rs