Unicode.utf8ValidateLen

Validates UTF-8 encoded text.

As with g_utf8_validate(), but @max_len must be set, and hence this function will always return %FALSE if any of the bytes of @str are nul.

struct Unicode
static
bool
utf8ValidateLen
(
string str
,
out string end
)

Parameters

str string

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

Meta

Since

2.60