Function
GLibutf8_validate_len
since: 2.60
Declaration [src]
gboolean
g_utf8_validate_len(
constgchar*str,
gsizemax_len,
constgchar**end
)
Description [src]
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.
Available since: 2.60
Parameters
str-
Type: An array of
guint8A pointer to character data.
The length of the array is specified in themax_lenargument.The data is owned by the caller of the function. max_len-
Type:
gsizeMax bytes to validate.
end-
Type: An array of
guint8Return location for end of valid data.
The argument will be set by the function.The argument can beNULL.The array must beNULL-terminated.The returned data is owned by the function.
Return value
Type: gboolean
TRUE if the text was valid UTF-8.