GRegex, GConvert: Add some missing annotations.

Also, removed pointless (allow-none) return annotation.

https://bugzilla.gnome.org/show_bug.cgi?id=679762
This commit is contained in:
Krzesimir Nowak 2012-07-12 16:09:57 +02:00
parent 99f26ab08f
commit ce1b50bf2a
2 changed files with 12 additions and 9 deletions

View File

@ -2079,9 +2079,9 @@ g_filename_to_uri (const gchar *filename,
* mime type defined in RFC 2483 into individual URIs, * mime type defined in RFC 2483 into individual URIs,
* discarding any comments. The URIs are not validated. * discarding any comments. The URIs are not validated.
* *
* Returns: a newly allocated %NULL-terminated list of * Returns: (transfer full): a newly allocated %NULL-terminated list
* strings holding the individual URIs. The array should * of strings holding the individual URIs. The array should be freed
* be freed with g_strfreev(). * with g_strfreev().
* *
* Since: 2.6 * Since: 2.6
*/ */

View File

@ -1199,9 +1199,9 @@ g_match_info_fetch_named_pos (const GMatchInfo *match_info,
* The strings are fetched from the string passed to the match function, * The strings are fetched from the string passed to the match function,
* so you cannot call this function after freeing the string. * so you cannot call this function after freeing the string.
* *
* Returns: (allow-none): a %NULL-terminated array of gchar * pointers. * Returns: (transfer full): a %NULL-terminated array of gchar *
* It must be freed using g_strfreev(). If the previous match failed * pointers. It must be freed using g_strfreev(). If the previous
* %NULL is returned * match failed %NULL is returned
* *
* Since: 2.14 * Since: 2.14
*/ */
@ -1984,7 +1984,8 @@ g_regex_get_string_number (const GRegex *regex,
* characters. For example splitting "ab c" using as a separator * characters. For example splitting "ab c" using as a separator
* "\s*", you will get "a", "b" and "c". * "\s*", you will get "a", "b" and "c".
* *
* Returns: a %NULL-terminated array of strings. Free it using g_strfreev() * Returns: (transfer full): a %NULL-terminated array of strings. Free
* it using g_strfreev()
* *
* Since: 2.14 * Since: 2.14
**/ **/
@ -2030,7 +2031,8 @@ g_regex_split_simple (const gchar *pattern,
* For example splitting "ab c" using as a separator "\s*", you will get * For example splitting "ab c" using as a separator "\s*", you will get
* "a", "b" and "c". * "a", "b" and "c".
* *
* Returns: a %NULL-terminated gchar ** array. Free it using g_strfreev() * Returns: (transfer full): a %NULL-terminated gchar ** array. Free
* it using g_strfreev()
* *
* Since: 2.14 * Since: 2.14
**/ **/
@ -2076,7 +2078,8 @@ g_regex_split (const GRegex *regex,
* string and setting #G_REGEX_MATCH_NOTBOL in the case of a pattern * string and setting #G_REGEX_MATCH_NOTBOL in the case of a pattern
* that begins with any kind of lookbehind assertion, such as "\b". * that begins with any kind of lookbehind assertion, such as "\b".
* *
* Returns: a %NULL-terminated gchar ** array. Free it using g_strfreev() * Returns: (transfer full): a %NULL-terminated gchar ** array. Free
* it using g_strfreev()
* *
* Since: 2.14 * Since: 2.14
**/ **/