Package com.aptana.shared_core.string

Examples of com.aptana.shared_core.string.FastStringBuffer.deleteFirst()


        FastStringBuffer buf = new FastStringBuffer(0);
        assertFalse(buf.startsWith('"'));
        buf.append("a");
        assertFalse(buf.startsWith('"'));
        assertTrue(buf.startsWith('a'));
        buf.deleteFirst();
        assertFalse(buf.startsWith('"'));
        assertFalse(buf.startsWith('a'));
    }

    public void testEndsWithChar() throws Exception {
View Full Code Here


        FastStringBuffer buf = new FastStringBuffer(0);
        assertFalse(buf.endsWith('"'));
        buf.append("a");
        assertFalse(buf.endsWith('"'));
        assertTrue(buf.endsWith('a'));
        buf.deleteFirst();
        assertFalse(buf.endsWith('"'));
        assertFalse(buf.endsWith('a'));
        buf.append("ab");
        assertTrue(buf.endsWith('b'));
        assertFalse(buf.endsWith('a'));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.