Example: Append a unichar

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

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

See:




2022 vala-language.org