Validates UTF-8 encoded text.
str is the text to validate;
str is nul-terminated, then
max_len can be -1, otherwise
max_len should be the number of bytes to validate.
end is non-
NULL, then the end of the valid range
will be stored there (i.e. the start of the first invalid
character if some bytes were invalid, or the end of the text
being validated otherwise).
positive and any of the
max_len bytes are nul.
TRUE if all of
str was valid. Many GLib and GTK+
routines require valid UTF-8 as input; so data read from a file
or the network should be checked with
doing anything else with it.
Type: An array of
A pointer to character data.
The length of the array is specified in the
The data is owned by the caller of the function.
Max bytes to validate, or -1 to go until NUL.
Return location for end of valid data.
The argument will be set by the function. The argument can be
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.