mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-12 12:14:06 +02:00
Merge branch '3286-strfuncs-annotations' into 'main'
gstrfuncs: Add missing (transfer none) annotations for several funcs Closes #3286 See merge request GNOME/glib!3963
This commit is contained in:
@@ -2732,7 +2732,11 @@ g_strjoin (const gchar *separator,
|
|||||||
* A length of `-1` can be used to mean “search the entire string”, like
|
* A length of `-1` can be used to mean “search the entire string”, like
|
||||||
* `strstr()`.
|
* `strstr()`.
|
||||||
*
|
*
|
||||||
* Returns: a pointer to the found occurrence, or `NULL` if not found
|
* The fact that this function returns `gchar *` rather than `const gchar *` is
|
||||||
|
* a historical artifact.
|
||||||
|
*
|
||||||
|
* Returns: (transfer none) (nullable): a pointer to the found occurrence, or
|
||||||
|
* `NULL` if not found
|
||||||
*/
|
*/
|
||||||
gchar *
|
gchar *
|
||||||
g_strstr_len (const gchar *haystack,
|
g_strstr_len (const gchar *haystack,
|
||||||
@@ -2784,7 +2788,11 @@ g_strstr_len (const gchar *haystack,
|
|||||||
* Searches the string @haystack for the last occurrence
|
* Searches the string @haystack for the last occurrence
|
||||||
* of the string @needle.
|
* of the string @needle.
|
||||||
*
|
*
|
||||||
* Returns: a pointer to the found occurrence, or `NULL` if not found
|
* The fact that this function returns `gchar *` rather than `const gchar *` is
|
||||||
|
* a historical artifact.
|
||||||
|
*
|
||||||
|
* Returns: (transfer none) (nullable): a pointer to the found occurrence, or
|
||||||
|
* `NULL` if not found
|
||||||
*/
|
*/
|
||||||
gchar *
|
gchar *
|
||||||
g_strrstr (const gchar *haystack,
|
g_strrstr (const gchar *haystack,
|
||||||
@@ -2835,7 +2843,11 @@ g_strrstr (const gchar *haystack,
|
|||||||
* of the string @needle, limiting the length of the search
|
* of the string @needle, limiting the length of the search
|
||||||
* to @haystack_len.
|
* to @haystack_len.
|
||||||
*
|
*
|
||||||
* Returns: a pointer to the found occurrence, or `NULL` if not found
|
* The fact that this function returns `gchar *` rather than `const gchar *` is
|
||||||
|
* a historical artifact.
|
||||||
|
*
|
||||||
|
* Returns: (transfer none) (nullable): a pointer to the found occurrence, or
|
||||||
|
* `NULL` if not found
|
||||||
*/
|
*/
|
||||||
gchar *
|
gchar *
|
||||||
g_strrstr_len (const gchar *haystack,
|
g_strrstr_len (const gchar *haystack,
|
||||||
|
Reference in New Issue
Block a user