mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-29 12:24:12 +02:00
doc: small improvement and fixes
- Add an example to g_strsplit(), like it is done for g_strsplit_set(). - GTK-Doc generates a list if a "1." is at the beginning of a line. https://bugzilla.gnome.org/show_bug.cgi?id=732704
This commit is contained in:
@@ -2246,6 +2246,10 @@ g_strchomp (gchar *string)
|
||||
* @delimiter. If @max_tokens is reached, the remainder of @string is
|
||||
* appended to the last token.
|
||||
*
|
||||
* As an example, the result of g_strsplit (":a:bc::d:", ":", -1) is a
|
||||
* %NULL-terminated vector containing the six strings "", "a", "bc", "", "d"
|
||||
* and "".
|
||||
*
|
||||
* As a special case, the result of splitting the empty string "" is an empty
|
||||
* vector, not a vector containing a single string. The reason for this
|
||||
* special case is that being able to represent a empty vector is typically
|
||||
@@ -2325,7 +2329,7 @@ g_strsplit (const gchar *string,
|
||||
* %NULL-terminated vector containing the three strings "abc", "def",
|
||||
* and "ghi".
|
||||
*
|
||||
* The result if g_strsplit_set (":def/ghi:", ":/", -1) is a %NULL-terminated
|
||||
* The result of g_strsplit_set (":def/ghi:", ":/", -1) is a %NULL-terminated
|
||||
* vector containing the four strings "", "def", "ghi", and "".
|
||||
*
|
||||
* As a special case, the result of splitting the empty string "" is an empty
|
||||
|
Reference in New Issue
Block a user