charAt


Description:

public char charAt (int index)

Returns the character at the specified byte index.

Example:

    var sb = new StringBuilder.withString ("Hello");
assert (sb.charAt (0) == 'H');
assert (sb.charAt (4) == 'o');

Parameters:

index

the byte index.

Returns:

the character at the index, or '\0' if out of range.