StrvBuilder
Object Hierarchy:
Description:
[ Compact ]
[ Version ( since = "2.68" ) ]
[ CCode ( has_type_id = false , ref_function = "g_strv_builder_ref" , unref_function = "g_strv_builder_unref" ) ]
public class StrvBuilder
`GStrvBuilder` is a helper object to build a null-terminated string arrays.
The following example shows how to build a two element array:
```c g_autoptr(GStrvBuilder) builder = g_strv_builder_new (); g_strv_builder_add (builder, "hello"); g_strv_builder_add (builder,
"world"); g_auto(GStrv) array = g_strv_builder_end (builder); ```
Content:
Creation methods:
Methods:
- public void add (string value)
Add a string to the end of the array.
- public void add_many (...)
Appends all the given strings to the builder.
- public void addv (string[] value)
Appends all the strings in the given vector to the builder.
- public string[] end ()
Ends the builder process and returns the constructed NULL-terminated
string array.