new

fun new(init: String? = null): String

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

Return

the new #GString

Parameters

init

the initial text to copy into the string, or null to start with an empty string