validate_len


Description:

[ Version ( since = "2.60" ) ]
[ CCode ( cname = "g_utf8_validate_len" ) ]
public bool validate_len (size_t max_len, out char* end = null)

Validates UTF-8 encoded text.

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

Parameters:

max_len

max bytes to validate

end

return location for end of valid data

str

a pointer to character data

Returns:

true if the text was valid UTF-8