From 8b4e4a13d81f2b11a88f5901031839b80233f213 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 11 Aug 2008 19:03:04 +0000 Subject: [PATCH] =?utf8?q?Bug=20547200=20=E2=80=93=20g=5Futf8=5Ffind=5Fnex?= =?utf8?q?t=5Fchar()=20issues?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2008-08-11 Behdad Esfahbod Bug 547200 – g_utf8_find_next_char() issues * glib/gutf8.c: Improve wording about @end arguments in str funcs. svn path=/trunk/; revision=7337 --- ChangeLog | 6 ++++++ glib/gutf8.c | 17 ++++++++--------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index a6c4285..7b3a1f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-08-11 Behdad Esfahbod + + Bug 547200 – g_utf8_find_next_char() issues + + * glib/gutf8.c: Improve wording about @end arguments in str funcs. + 2008-08-10 Behdad Esfahbod * glib/gutf8.c: Fix docs to use "nul-terminated" consistently. diff --git a/glib/gutf8.c b/glib/gutf8.c index 0218c47..aa5c9d5 100644 --- a/glib/gutf8.c +++ b/glib/gutf8.c @@ -146,9 +146,8 @@ g_utf8_find_prev_char (const char *str, /** * g_utf8_find_next_char: * @p: a pointer to a position within a UTF-8 encoded string - * @end: a pointer to the end of the string, or %NULL to indicate - * that the string is nul-terminated, in which case - * the returned value will be + * @end: a pointer to the byte following the end of the string, + * or %NULL to indicate that the string is nul-terminated. * * Finds the start of the next UTF-8 character in the string after @p. * @@ -797,8 +796,8 @@ g_utf8_get_char_validated (const gchar *p, /** * g_utf8_to_ucs4_fast: * @str: a UTF-8 encoded string - * @len: the maximum length of @str to use. If @len < 0, then - * the string is nul-terminated. + * @len: the maximum length of @str to use, in bytes. If @len < 0, + * then the string is nul-terminated. * @items_written: location to store the number of characters in the * result, or %NULL. * @@ -902,8 +901,8 @@ g_utf8_to_ucs4_fast (const gchar *str, /** * g_utf8_to_ucs4: * @str: a UTF-8 encoded string - * @len: the maximum length of @str to use. If @len < 0, then - * the string is nul-terminated. + * @len: the maximum length of @str to use, in bytes. If @len < 0, + * then the string is nul-terminated. * @items_read: location to store number of bytes read, or %NULL. * If %NULL, then %G_CONVERT_ERROR_PARTIAL_INPUT will be * returned in case @str contains a trailing partial @@ -1772,8 +1771,8 @@ g_unichar_validate (gunichar ch) /** * g_utf8_strreverse: * @str: a UTF-8 encoded string - * @len: the maximum length of @str to use. If @len < 0, then - * the string is nul-terminated. + * @len: the maximum length of @str to use, in bytes. If @len < 0, + * then the string is nul-terminated. * * Reverses a UTF-8 string. @str must be valid UTF-8 encoded text. * (Use g_utf8_validate() on all text before trying to use UTF-8 -- 2.7.4