utf8ValidateLen

fnbool utf8ValidateLen(ubyte[] str, out string end)

Validates UTF-8 encoded text.

As with [glib.global.utf8Validate], but max_len must be set, and hence this function will always return false if any of the bytes of str are nul.

Parameters

stra pointer to character data
endreturn location for end of valid data

Returns

true if the text was valid UTF-8