Interesting UTF-8 decoder

J Decker via Unicode unicode at unicode.org
Mon Oct 9 03:57:50 CDT 2017


that's interesting; however it will segfault if the string ends on a memory
allocation boundary.  will have to make sure strings are always allocated
with 3 extra bytes.

2017-10-09 1:37 GMT-07:00 Martin J. Dürst via Unicode <unicode at unicode.org>:

> A friend of mine sent me a pointer to
> http://nullprogram.com/blog/2017/10/06/, a branchless UTF-8 decoder.
>
> Regards,   Martin.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://unicode.org/pipermail/unicode/attachments/20171009/41ae7e30/attachment.html>


More information about the Unicode mailing list