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)
[ 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 [func@GLib.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.
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 |