gutf8: add introspection type for end parameter of validate* fn's

actually @pwithnall thought about how to fix it, i just tested and committed it

Fixes: https://gitlab.gnome.org/GNOME/glib/-/issues/3743
This commit is contained in:
two
2025-08-02 14:45:01 +00:00
committed by Philip Withnall
parent c4daaf9c93
commit 3ecbd2f4ab

View File

@@ -2226,7 +2226,7 @@ out:
* g_utf8_validate: * g_utf8_validate:
* @str: (array length=max_len) (element-type guint8): a pointer to character data * @str: (array length=max_len) (element-type guint8): 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: (out) (optional) (transfer none): return location for end of valid data * @end: (out) (optional) (transfer none) (array zero-terminated=1) (element-type guint8): return location for end of valid data
* *
* Validates UTF-8 encoded text. * Validates UTF-8 encoded text.
* *
@@ -2262,7 +2262,7 @@ g_utf8_validate (const char *str,
* g_utf8_validate_len: * g_utf8_validate_len:
* @str: (array length=max_len) (element-type guint8): a pointer to character data * @str: (array length=max_len) (element-type guint8): a pointer to character data
* @max_len: max bytes to validate * @max_len: max bytes to validate
* @end: (out) (optional) (transfer none): return location for end of valid data * @end: (out) (optional) (transfer none) (array zero-terminated=1) (element-type guint8): return location for end of valid data
* *
* Validates UTF-8 encoded text. * Validates UTF-8 encoded text.
* *