utf8ValidateLen

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.

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

Parameters

str ubyte[]

a pointer to character data

end string

return location for end of valid data

Return Value

Type: bool

true if the text was valid UTF-8