Need to do some "dirty" UTF-8 handling
Andrej Mitrovic
andrej.mitrovich at gmail.com
Sat Jun 25 09:38:54 PDT 2011
I've had a similar requirement some time ago. I've had to copy and
modify the phobos function std.utf.decode for a custom text editor
because the function throws when it finds an invalid code point. This
is way too slow for my needs. I'm actually displaying invalid code
points with special marks (just like Scintilla), so I need decoding to
work as fast as possible.
The new function simply replaces throwing exceptions with flagging a boolean.
More information about the Digitalmars-d-learn
mailing list