Examples of charAt()


Examples of ariba.util.core.FastStringBuffer.charAt()

        // do mixed (initial word) case for all-caps strings
        if (allCaps) {
            boolean inWord = false;
            for (int i=0, c=buf.length(); i < c; i++) {
                char ch = buf.charAt(i);
                if (Character.isLetter(ch)) {
                    if (inWord && Character.isUpperCase(ch)) {
                        buf.setCharAt(i, Character.toLowerCase(ch));
                    }
                    inWord = true;
View Full Code Here

Examples of br.msf.commons.lang.EnhancedStringBuilder.charAt()

                                                  final int maxLineLengh) {
        assert CharSequenceUtils.isNotBlank(text) && CharSequenceUtils.isNotBlank(commentStart) && CharSequenceUtils.isNotBlank(commentEnd);
        final EnhancedStringBuilder builder = new EnhancedStringBuilder(text).deletePattern("\r");
        final Collection<MatchEntry> newLines = builder.findPattern("\n");
        for (MatchEntry match : newLines) {
            if (match.getStart() > 0 && isPeriodFinalization(builder.charAt(match.getStart() - 1))
                && '\n' != builder.charAt(match.getStart() + 1)) {
                /* new lines not after a punctuation are removed */
                builder.replace(match, " ");
            }
        }
View Full Code Here

Examples of chaschev.lang.OpenStringBuilder.charAt()

    public String asTextScript() {
        OpenStringBuilder sb = new OpenStringBuilder();

        for (CommandLine<T, CHILD> line : lines) {
            sb.append(line.asText(true)).trim();
            if(sb.charAt(sb.length() - 1) != ';') {
                sb.append(";\n");
            }else{
                sb.append('\n');
            }
        }
View Full Code Here

Examples of client.net.sf.saxon.ce.regex.UnicodeString.charAt()

        int len = ncName.length();
        if (len==0) {
            return false;
        }
        UnicodeString us = GeneralUnicodeString.makeUnicodeString(ncName);
        if (!isNCNameStartChar(us.charAt(0))) {
            return false;
        }
        for (int i=1; i<len; i++) {
            if (!isNCNameChar(us.charAt(i))) {
                return false;
View Full Code Here

Examples of client.net.sf.saxon.ce.regex.UnicodeString.charAt()

        UnicodeString us = GeneralUnicodeString.makeUnicodeString(ncName);
        if (!isNCNameStartChar(us.charAt(0))) {
            return false;
        }
        for (int i=1; i<len; i++) {
            if (!isNCNameChar(us.charAt(i))) {
                return false;
            }
        }
        return true;
    }
View Full Code Here

Examples of client.net.sf.saxon.ce.tree.util.FastStringBuffer.charAt()

                        // No minutes component in timezone
                        fsb.setLength(fsb.length() - 3);
                    }
                }
                if (min < fsb.length() - 3) {
                    if (fsb.charAt(4) == '0') {
                        fsb.removeCharAt(4);
                    }
                }
                return fsb;
            } else {
View Full Code Here

Examples of client.net.sf.saxon.ce.tree.util.FastStringBuffer.charAt()

                    }
            }
        }
        String s;
        if (len > 30) {
            if (valueType == ELEMENT && sb.charAt(0) == '{') {
                StructuredQName qn = StructuredQName.fromClarkName(sb.toString());
                String uri = qn.getNamespaceURI();
                if (uri.length() > 15) {
                    uri = "..." + uri.substring(uri.length()-15);
                }
View Full Code Here

Examples of client.net.sf.saxon.ce.tree.util.FastStringBuffer.charAt()

                throw new NumberFormatException("no digits in value");
            }

            // remove insignificant trailing zeroes
            while (scale > 0) {
                if (digits.charAt(digits.length()-1) == '0') {
                    digits.setLength(digits.length() - 1);
                    scale--;
                } else {
                    break;
                }
View Full Code Here

Examples of client.net.sf.saxon.ce.tree.util.FastStringBuffer.charAt()

                    scale--;
                } else {
                    break;
                }
            }
            if (digits.length() == 0 || (digits.length() == 1 && digits.charAt(0) == '-')) {
                return DecimalValue.ZERO;
            }
            BigInteger bigInt = new BigInteger(digits.toString());
            BigDecimal bigDec = new BigDecimal(bigInt, scale);
            return new DecimalValue(bigDec);
View Full Code Here

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
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.