Package com.aptana.shared_core.string

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


            HashSet<String> set = new HashSet<String>();
            temp = temp.clear();
            int length = buf.length();
            for (int i = 0; i < length; i++) {
                char c = buf.charAt(i);
                if (Character.isJavaIdentifierStart(c)) {
                    temp.clear();
                    temp.append(c);
                    i++;
                    for (; i < length; i++) {
View Full Code Here


                if (Character.isJavaIdentifierStart(c)) {
                    temp.clear();
                    temp.append(c);
                    i++;
                    for (; i < length; i++) {
                        c = buf.charAt(i);
                        if (c == ' ' || c == '\t') {
                            break; //Fast forward through the most common case...
                        }
                        if (Character.isJavaIdentifierPart(c)) {
                            temp.append(c);
View Full Code Here

            } else {
                int length = line.length();
                //line is str=int
                for (int i = 0; i < length; i++) {
                    char c = line.charAt(i);
                    if (c == '=') {
                        val = com.aptana.shared_core.string.StringUtils.parsePositiveInt(buf);
                        buf.clear();
                    } else {
                        buf.appendResizeOnExc(c);
View Full Code Here

                curr = PY_COMMENT;

                int j = i;
                while (j < buf.length() - 1 && ch != '\n' && ch != '\r') {
                    j++;
                    ch = buf.charAt(j);
                }
                i = j;
            }
            if (i >= currPos) {
                return curr;
View Full Code Here

        FastStringBuffer buf = new FastStringBuffer(initial, 0);
        ParsingUtils parsingUtils = create(initial);
        String curr = PY_DEFAULT;

        for (int i = 0; i < buf.length() && i < currPos; i++) {
            char ch = buf.charAt(i);
            curr = PY_DEFAULT;

            if (ch == '#') {
                curr = PY_COMMENT;
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.