aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/codes.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Refactor to work on `char`sLibravatar Titus Wormer2022-07-281-125/+0
| | | | | | | | | | | | | | | Previously, a custom char implementation was used. This was easier to work with, as sometimes “virtual” characters are injected, or characters are ignored. This replaces that with working on actual `char`s. In the hope of in the future working on `u8`s, even. This simplifies the state machine somewhat, as only `\n` is fed, regardless of whether it was a CRLF, CR, or LF. It also feeds `' '` instead of virtual spaces. The BOM, if present, is now available as a `ByteOrderMark` event.
* Refactor to remove unneeded tuples in every statesLibravatar Titus Wormer2022-07-221-1/+1
|
* Refactor to improve allocation around stringsLibravatar Titus Wormer2022-07-201-18/+17
|
* Refactor to use `char::REPLACEMENT_CHARACTER`Libravatar Titus Wormer2022-07-071-1/+1
|
* Refactor code styleLibravatar Titus Wormer2022-07-051-0/+126