prepend
Description:
Adds a string on to the start of a StringBuilder, expanding it if necessary.
Example: Prepend a string:
public static int main (string[] args) {
// Output: ``hello, world!``
StringBuilder builder = new StringBuilder ();
builder.prepend ("world!\n");
builder.prepend ("hello, ");
print (builder.str);
return 0;
}
valac --pkg glib-2.0 GLib.StringBuilder.prepend.vala
Parameters:
this | |
val |
the string to prepend on the start of this |
Returns:
this |