append_c


Description:

public unowned StringBuilder append_c (char c)

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

Example: Append a char:

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

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

Parameters:

this

a StringBuilder

c

the byte to append onto the end of this

Returns:

this