StrvBuilder
GStrvBuilder
is a helper object to build a null-terminated string arrays.
The following example shows how to build a two element array:
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);
g_assert_true (g_strv_equal (array, (const char *[]) { "hello", "world", NULL }));
Content copied to clipboard
Skipped during bindings generation
method
add
: C function g_strv_builder_add is ignoredmethod
addv
: C function g_strv_builder_addv is ignoredmethod
end
: C function g_strv_builder_end is ignoredmethod
ref
: C function g_strv_builder_ref is ignoredmethod
take
: C function g_strv_builder_take is ignoredmethod
unref
: C function g_strv_builder_unref is ignoredmethod
unref_to_strv
: C function g_strv_builder_unref_to_strv is ignoredconstructor
new
: C function g_strv_builder_new is ignored
Since
2.68