Function utf8_to_ucs4¶
Defined in File utf.h
Function Documentation¶
-
runic
utf8_to_ucs4
(runic dest, string src)¶ Convert UTF-8 to UCS-4 (4-byte wide characters) No error checking is done, must be valid UTF-8 and
dest
must be large enough. Ifdest.len >= src.len + 1
, then there will always be enough space.- Return
Slice of converted runic
dest
with correct length.- Parameters
[out] dest
: Empty runic structure.[in] src
: UTF-8 encoded string.