Examples of charAt()


Examples of org.luaj.vm2.LuaString.charAt()

    LuaString src = args.checkstring( 1 );
    final int srclen = src.length();
    LuaString p = args.checkstring( 2 );
    LuaValue repl = args.arg( 3 );
    int max_s = args.optint( 4, srclen + 1 );
    final boolean anchor = p.length() > 0 && p.charAt( 0 ) == '^';
   
    Buffer lbuf = new Buffer( srclen );
    MatchState ms = new MatchState( args, src, p );
   
    int soffset = 0;
View Full Code Here

Examples of org.parboiled.buffers.InputBuffer.charAt()

                        break loop;
                    }
                    if (rec.complete) { // we completed a valid match path, but continue looking for a longer match
                        endIx = ix;
                    }
                    c = buffer.charAt(ix);
                    continue loop;
                }
            }
            // we checked all sub branches of the current node, none matched, so we are done
            break;
View Full Code Here

Examples of org.parboiled.support.InputBuffer.charAt()

                    Record sub = rec.subs[i];
                    if (sub == null) {
                        break loop; // success, we complected a tree path to a leave
                    }
                    rec = sub;
                    c = buffer.charAt(endIx);
                    continue loop;
                }
            }
            // we checked all sub branches of the current node, none matched, therefore fail
            return false;
View Full Code Here

Examples of org.pdf4j.saxon.om.FastStringBuffer.charAt()

                    inWhitespace = false;
                    break;
            }
        }
        int nlen = sb.length();
        if (nlen>0 && sb.charAt(nlen-1)==' ') {
            sb.setLength(nlen-1);
        }
        return sb;
    }
View Full Code Here

Examples of org.python.pydev.core.docutils.ParsingUtils.charAt()

            ParsingUtils utils = ParsingUtils.create(document);
            int len = utils.len();
            try {
                for (int i = 0; i < len; i++) {
                    char c = utils.charAt(i);
                    switch (c) {
                        case '\'':
                        case '\"':
                            int j = utils.eatLiterals(null, i);
                            check(i, j, document, lst, todoTags);
View Full Code Here

Examples of org.semanticweb.owlapi.apibinding.OWLFunctionalSyntaxFactory.IRI.charAt()

    @Test
    public void testCharAt() {
        String str = "http://owlapi.sourceforge.net#ABC";
        IRI iri = IRI(str);
        for (int i = 0; i < str.length(); i++) {
            assertEquals(str.charAt(i), iri.charAt(i));
        }
    }

    @Test
    public void testCharAtNoRemainder() {
View Full Code Here

Examples of org.semanticweb.owlapi.model.IRI.charAt()

    @Test
    public void testCharAt() {
        String str = "http://owlapi.sourceforge.net#ABC";
        IRI iri = IRI(str);
        for (int i = 0; i < str.length(); i++) {
            assertEquals(str.charAt(i), iri.charAt(i));
        }
    }

    @Test
    public void testCharAtNoRemainder() {
View Full Code Here

Examples of org.springframework.roo.classpath.details.annotations.AnnotationMetadata.charAt()

            final String value = ((CharLiteralExpr) expression).getValue();
            Validate.isTrue(
                    value.length() == 1,
                    "Expected a char expression, but instead received '%s' for attribute '%s'",
                    value, annotationName);
            final char c = value.charAt(0);
            return new CharAttributeValue(annotationName, c);
        }

        if (expression instanceof LongLiteralExpr) {
            String value = ((LongLiteralExpr) expression).getValue();
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.