Commit graph

3 commits

Author SHA1 Message Date
Anders Jenbo
799f1763af Performce UTF8 aware limited string copies 2021-11-22 03:28:51 +01:00
ephphatha
c206b7cce8 Return Utf8DecodeError when passed an incomplete code point
Also ensure that len set in all code paths, otherwise it leads to a call to remove_prefix with garbage.
2021-11-21 12:33:57 +00:00
Gleb Mazovetskiy
e9a9daa794 DrawString: Stop allocating
Switch to a state-machine UTF-8 decoder from the branchless one.
This allows us to avoid copying the string on every `DrawString` call.
2021-11-07 04:17:50 +01:00