String.erase

glib.string_.String erase(ptrdiff_t pos, ptrdiff_t len)

Removes len bytes from a #GString, starting at position pos. The rest of the #GString is shifted down to fill the gap.

Parameters

posthe position of the content to remove
lenthe number of bytes to remove, or -1 to remove all following bytes

Returns

string