erase


Description:

public unowned StringBuilder erase (ssize_t pos = 0, ssize_t len = -1)

Removes len bytes from a StringBuilder, starting at position pos .

The rest of the StringBuilder is shifted down to fill the gap.

Parameters:

this

a StringBuilder

pos

the position of the content to remove

len

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

Returns:

this