to_utf32_fast
Description:
[ CCode ( cname = "g_utf8_to_ucs4_fast" ) ]
public string32 to_utf32_fast (long len = -1, out long items_written = null)
public string32 to_utf32_fast (long len = -1, out long items_written = null)
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 to_utf32 but does no error checking on the input. A trailing 0 character will be added to the string after the converted text.
Parameters:
len |
the maximum length of |
items_written |
location to store the number of characters in the result, or null. |
str |
a UTF-8 encoded string |
Returns:
a pointer to a newly allocated UCS-4 string. This value must be freed with g_free . |