Function
FwupdPluginstrsplit
Declaration [src]
gchar**
fu_strsplit (
const gchar* str,
gsize sz,
const gchar* delimiter,
gint max_tokens
)
Description [src]
Splits a string into a maximum of max_tokens
pieces, using the given
delimiter. If max_tokens
is reached, the remainder of string is appended
to the last token.
Available since: | 1.8.2 |
Parameters
str |
const gchar* |
A string to split. |
|
The data is owned by the caller of the function. | |
The string is a NUL terminated UTF-8 string. | |
sz |
gsize |
Size of |
|
delimiter |
const gchar* |
A string which specifies the places at which to split the string. |
|
The data is owned by the caller of the function. | |
The string is a NUL terminated UTF-8 string. | |
max_tokens |
gint |
The maximum number of pieces to split |