6.15. UTF-8

This module provides UTF-8 encoder and decoder collectors, as well as an UTF-8 aware char function.

inlinedecoder ( coll )

convert a i8 character stream as UTF-8 codepoints of type i32. invalid bytes are forwarded as negative numbers; negating the number yields the offending byte character.

inlineencoder ( coll )

convert an integer codepoint to i8 byte array chunks of 1 to 4 bytes length the collector forwards two arguments, the number of bytes required and a buffer containing those bytes, which is only valid for this call.

spicechar ( ... )