mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-25 16:46:52 +02: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
79fa8db828
commit
4ce606878e
@ -966,6 +966,11 @@ g_string_erase (GString *string,
|
|||||||
* less than @limit, all instances are replaced. If the number of
|
* less than @limit, all instances are replaced. If the number of
|
||||||
* instances is `0`, all instances of @find are replaced.
|
* instances is `0`, 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…
x
Reference in New Issue
Block a user