mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-27 04:13:30 +02:00
utf8: annotate the end pointer in g_utf8_validate as out + allow-none
This commit is contained in:
@@ -1768,7 +1768,7 @@ fast_validate_len (const char *str,
|
|||||||
* g_utf8_validate:
|
* g_utf8_validate:
|
||||||
* @str: a pointer to character data
|
* @str: a pointer to character data
|
||||||
* @max_len: max bytes to validate, or -1 to go until NUL
|
* @max_len: max bytes to validate, or -1 to go until NUL
|
||||||
* @end: return location for end of valid data
|
* @end: (allow-none) (out): return location for end of valid data
|
||||||
*
|
*
|
||||||
* Validates UTF-8 encoded text. @str is the text to validate;
|
* Validates UTF-8 encoded text. @str is the text to validate;
|
||||||
* if @str is nul-terminated, then @max_len can be -1, otherwise
|
* if @str is nul-terminated, then @max_len can be -1, otherwise
|
||||||
|
Reference in New Issue
Block a user