StringG.erase

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

class StringG
erase

Parameters

pos gssize

the position of the content to remove

len gssize

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

Return Value

Type: StringG

string

Meta