insert


Description:

public StringBuilder insert (int offset, string s)

Inserts a string at the specified byte offset.

Example:

    var sb = new StringBuilder.withString ("HelloWorld");
sb.insert (5, ", ");
assert (sb.toString () == "Hello, World");

Parameters:

offset

the byte position to insert at.

s

the string to insert.

Returns:

this StringBuilder for chaining.