Skip to main content

Module decode

Module decode 

Source
Expand description

UTF-8 to UTF-16 decoding restricted to the BMP (the engine’s wchar_t is 16-bit and its bitmap fonts look glyphs up per code unit).

Structs§

DecodeStats
What the decoder had to replace with U+FFFD.

Functions§

decode_utf8_bmp
Decodes bytes; the result never contains surrogates and is never longer than the input.