StrvBuilder

class StrvBuilder(pointer: <Error class: unknown class><<Error class: unknown class>>) : Record

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 }));

Skipped during bindings generation

  • method add: C function g_strv_builder_add is ignored

  • method addv: C function g_strv_builder_addv is ignored

  • method end: C function g_strv_builder_end is ignored

  • method ref: C function g_strv_builder_ref is ignored

  • method take: C function g_strv_builder_take is ignored

  • method unref: C function g_strv_builder_unref is ignored

  • method unref_to_strv: C function g_strv_builder_unref_to_strv is ignored

  • constructor new: C function g_strv_builder_new is ignored

Since

2.68

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion : RecordCompanion<StrvBuilder, <Error class: unknown class>>

Properties

Link copied to clipboard
val glibStrvBuilderPointer: <Error class: unknown class><<Error class: unknown class>>