Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate the functions for unescaping each kind of string and unit: - this duplicates some code, but also gets rid of code that is only there for genericity - each function is now simpler by inlining booleans, which might lead to faster code Use a Peekable<CharIndices<'_>> instead of going back and forth between string slice and chars iterator. - this gets rid of most position computations - allows removal of double traversal for correct backslash newline escapes in skip_ascii_whitespace Improves documentation
- Loading branch information