Bug 547200 – g_utf8_find_next_char() issues

2008-08-11  Behdad Esfahbod  <behdad@gnome.org>

        Bug 547200 – g_utf8_find_next_char() issues

        * glib/gutf8.c: Improve wording about @end arguments in str funcs.


svn path=/trunk/; revision=7337
This commit is contained in:
Behdad Esfahbod 2008-08-11 19:03:04 +00:00 committed by Behdad Esfahbod
parent 3c9cfe7fb5
commit 8b4e4a13d8
2 changed files with 14 additions and 9 deletions

View File

@ -1,3 +1,9 @@
2008-08-11 Behdad Esfahbod <behdad@gnome.org>
Bug 547200 g_utf8_find_next_char() issues
* glib/gutf8.c: Improve wording about @end arguments in str funcs.
2008-08-10 Behdad Esfahbod <behdad@gnome.org> 2008-08-10 Behdad Esfahbod <behdad@gnome.org>
* glib/gutf8.c: Fix docs to use "nul-terminated" consistently. * glib/gutf8.c: Fix docs to use "nul-terminated" consistently.

View File

@ -146,9 +146,8 @@ g_utf8_find_prev_char (const char *str,
/** /**
* g_utf8_find_next_char: * g_utf8_find_next_char:
* @p: a pointer to a position within a UTF-8 encoded string * @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 * @end: a pointer to the byte following the end of the string,
* that the string is nul-terminated, in which case * or %NULL to indicate that the string is nul-terminated.
* the returned value will be
* *
* Finds the start of the next UTF-8 character in the string after @p. * 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: * g_utf8_to_ucs4_fast:
* @str: a UTF-8 encoded string * @str: a UTF-8 encoded string
* @len: the maximum length of @str to use. If @len < 0, then * @len: the maximum length of @str to use, in bytes. If @len < 0,
* the string is nul-terminated. * then the string is nul-terminated.
* @items_written: location to store the number of characters in the * @items_written: location to store the number of characters in the
* result, or %NULL. * result, or %NULL.
* *
@ -902,8 +901,8 @@ g_utf8_to_ucs4_fast (const gchar *str,
/** /**
* g_utf8_to_ucs4: * g_utf8_to_ucs4:
* @str: a UTF-8 encoded string * @str: a UTF-8 encoded string
* @len: the maximum length of @str to use. If @len < 0, then * @len: the maximum length of @str to use, in bytes. If @len < 0,
* the string is nul-terminated. * then the string is nul-terminated.
* @items_read: location to store number of bytes read, or %NULL. * @items_read: location to store number of bytes read, or %NULL.
* If %NULL, then %G_CONVERT_ERROR_PARTIAL_INPUT will be * If %NULL, then %G_CONVERT_ERROR_PARTIAL_INPUT will be
* returned in case @str contains a trailing partial * returned in case @str contains a trailing partial
@ -1772,8 +1771,8 @@ g_unichar_validate (gunichar ch)
/** /**
* g_utf8_strreverse: * g_utf8_strreverse:
* @str: a UTF-8 encoded string * @str: a UTF-8 encoded string
* @len: the maximum length of @str to use. If @len < 0, then * @len: the maximum length of @str to use, in bytes. If @len < 0,
* the string is nul-terminated. * then the string is nul-terminated.
* *
* Reverses a UTF-8 string. @str must be valid UTF-8 encoded text. * 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 * (Use g_utf8_validate() on all text before trying to use UTF-8