Companion

object Companion

Functions

Link copied to clipboard
fun getType(): <Error class: unknown class>

Get the GType of String

Link copied to clipboard
fun new(init: String? = null): String

Creates a new #GString, initialized with the given string.

Link copied to clipboard
fun newLen(init: String, len: Long): String

Creates a new #GString with @len bytes of the @init buffer. Because a length is provided, @init need not be nul-terminated, and can contain embedded nul bytes.

Link copied to clipboard
fun newTake(init: String? = null): String

Creates a new #GString, initialized with the given string.

Link copied to clipboard
fun sizedNew(dflSize: <Error class: unknown class>): String

Creates a new #GString, with enough space for @dfl_size bytes. This is useful if you are going to add a lot of text to the string and don't want it to be reallocated too often.