From 4e1fe6cf22497a4224a07a969f156ec0db703594 Mon Sep 17 00:00:00 2001 From: Bart Jacobs Date: Thu, 26 Jan 2023 11:27:31 +0000 Subject: [PATCH] Fix GIR: gunichar -> gunichar[] --- glib/gunidecomp.c | 2 +- glib/gutf8.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/glib/gunidecomp.c b/glib/gunidecomp.c index 0447c7f14..07bc3cb22 100644 --- a/glib/gunidecomp.c +++ b/glib/gunidecomp.c @@ -113,7 +113,7 @@ g_unichar_combining_class (gunichar uc) /** * g_unicode_canonical_ordering: - * @string: a UCS-4 encoded string. + * @string: (array length=len) (element-type gunichar): a UCS-4 encoded string. * @len: the maximum length of @string to use. * * Computes the canonical ordering of a string in-place. diff --git a/glib/gutf8.c b/glib/gutf8.c index 072d23563..a018f2a8d 100644 --- a/glib/gutf8.c +++ b/glib/gutf8.c @@ -923,7 +923,7 @@ g_utf8_to_ucs4 (const gchar *str, /** * g_ucs4_to_utf8: - * @str: a UCS-4 encoded string + * @str: (array length=len) (element-type gunichar): a UCS-4 encoded string * @len: the maximum length (number of characters) of @str to use. * If @len < 0, then the string is nul-terminated. * @items_read: (out) (optional): location to store number of @@ -997,7 +997,7 @@ g_ucs4_to_utf8 (const gunichar *str, /** * g_utf16_to_utf8: - * @str: a UTF-16 encoded string + * @str: (array length=len) (element-type guint16): a UTF-16 encoded string * @len: the maximum length (number of #gunichar2) of @str to use. * If @len < 0, then the string is nul-terminated. * @items_read: (out) (optional): location to store number of @@ -1153,7 +1153,7 @@ g_utf16_to_utf8 (const gunichar2 *str, /** * g_utf16_to_ucs4: - * @str: a UTF-16 encoded string + * @str: (array length=len) (element-type guint16): a UTF-16 encoded string * @len: the maximum length (number of #gunichar2) of @str to use. * If @len < 0, then the string is nul-terminated. * @items_read: (out) (optional): location to store number of @@ -1408,7 +1408,7 @@ g_utf8_to_utf16 (const gchar *str, /** * g_ucs4_to_utf16: - * @str: a UCS-4 encoded string + * @str: (array length=len) (element-type gunichar): a UCS-4 encoded string * @len: the maximum length (number of characters) of @str to use. * If @len < 0, then the string is nul-terminated. * @items_read: (out) (optional): location to store number of