insert_unichar
Description:
Converts a Unicode character into UTF-8, and insert it into the string at the given position.
Example: Insert unichar:
public static int main (string[] args) {
// Output: ``hello, world!``
StringBuilder builder = new StringBuilder ("hello world\n");
builder.insert_unichar (5, ',');
builder.insert_unichar (12, '!');
print (builder.str);
return 0;
}
valac --pkg glib-2.0 GLib.StringBuilder.insert_unichar.vala
Parameters:
this | |
pos |
the position at which to insert character, or -1 to append at the end of the string |
wc |
a Unicode character |
Returns:
this |