erase

fun erase(pos: Long, len: Long): String

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

Return

@string

Parameters

pos

the position of the content to remove

len

the number of bytes to remove, or -1 to remove all following bytes