public static int main (string[] args) {
string str1 = "ABCDEFG";
string str2 = str1.delimit ("ADEG", 'x');
// Output:
// ``ABCDEFG``
// ``xBCxxFx``
print ("%s\n", str1);
print ("%s\n", str2);
return 0;
}
valac --pkg glib-2.0 string.delimit.vala