append


Description:

public unowned StringBuilder append (string val)

Adds a string onto the end of a StringBuilder, expanding it if necessary.

Example: Append a string:

public static int main (string[] args) {
// Output: ``hello, world!``
StringBuilder builder = new StringBuilder ();
builder.append ("hello").append (", world!\n");
print (builder.str);
return 0;
}

valac --pkg glib-2.0 GLib.StringBuilder.append.vala

Parameters:

this

a StringBuilder

val

the string to append onto the end of this

Returns:

this