append_unichar
Description:
Converts a Unicode character into UTF-8, and appends it to the string.
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
Parameters:
this | |
wc |
a Unicode character |
Returns:
this |