From: Behdad Esfahbod Date: Mon, 11 Aug 2008 19:03:04 +0000 (+0000) Subject: Bug 547200 – g_utf8_find_next_char() issues X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=8b4e4a13d81f2b11a88f5901031839b80233f213;p=dana%2Fcg-glib.git Bug 547200 – g_utf8_find_next_char() issues 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 --- diff --git a/ChangeLog b/ChangeLog index a6c42857..7b3a1f70 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 0218c47f..aa5c9d52 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