CharArrayBuffer buffer = new CharArrayBuffer(16);
buffer.append("name: value");
assertEquals(4, buffer.indexOf(':'));
assertEquals(-1, buffer.indexOf(','));
assertEquals(4, buffer.indexOf(':', -1, 11));
assertEquals(4, buffer.indexOf(':', 0, 1000));
assertEquals(-1, buffer.indexOf(':', 2, 1));
}
public void testSubstring() {
CharArrayBuffer buffer = new CharArrayBuffer(16);