utf8ToUcs4Fast

Convert a string from UTF-8 to a 32-bit fixed width representation as UCS-4, assuming valid UTF-8 input. This function is roughly twice as fast as glib.global.utf8ToUcs4 but does no error checking on the input. A trailing 0 character will be added to the string after the converted text.

dchar[]
utf8ToUcs4Fast
(
string str
)

Parameters

str string

a UTF-8 encoded string

Return Value

Type: dchar[]

a pointer to a newly allocated UCS-4 string. This value must be freed with glib.global.gfree.