mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 18:26:19 +01:00
g_string_replace: Document behaviour of zero-length match pattern
Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
bf70d58d55
commit
b13777841f
@ -966,6 +966,11 @@ g_string_erase (GString *string,
|
|||||||
* less than @limit, all instances are replaced. If @limit is `0`,
|
* less than @limit, all instances are replaced. If @limit is `0`,
|
||||||
* all instances of @find are replaced.
|
* all instances of @find are replaced.
|
||||||
*
|
*
|
||||||
|
* If @find is the empty string, since versions 2.69.1 and 2.68.4 the
|
||||||
|
* replacement will be inserted no more than once per possible position
|
||||||
|
* (beginning of string, end of string and between characters). This did
|
||||||
|
* not work correctly in earlier versions.
|
||||||
|
*
|
||||||
* Returns: the number of find and replace operations performed.
|
* Returns: the number of find and replace operations performed.
|
||||||
*
|
*
|
||||||
* Since: 2.68
|
* Since: 2.68
|
||||||
|
Loading…
Reference in New Issue
Block a user