Examples of charAt()


Examples of org.apache.xml.utils.XMLString.charAt()

     */
  XMLString s = trim();
  double result = Double.NaN;
  for (int i = 0; i < s.length(); i++)
  {
    char c = s.charAt(i);
    if (c != '-' && c != '.' && ( c < 0X30 || c > 0x39)) {
            // The character is not a '-' or a '.' or a digit
            // then return NaN because something is wrong.
      return result;
        }
View Full Code Here

Examples of org.eclipse.imp.pdb.facts.IString.charAt()

    if(first == end || increment == 0){
      // nothing to be done
    } else
    if(first <= end){
      for(int i = first; i >= 0 && i < end; i += increment){
        buffer.appendCodePoint(s.charAt(i));
      }
    } else {
      for(int j = first; j >= 0 && j > end && j < getValue().length(); j += increment){
        buffer.appendCodePoint(s.charAt(j));
      }
View Full Code Here

Examples of org.eclipse.php.internal.core.util.text.TextSequence.charAt()

    TextSequence statementText = getStatementText();
    int functionEnd = getFunctionEnd();

    // are we inside parameters part in function declaration statement
    for (int i = statementText.length() - 1; i >= functionEnd; i--) {
      if (statementText.charAt(i) == '(') {
        int j = statementText.length() - 1;
        for (; j > i; j--) {
          char charAt = statementText.charAt(j);
          char charAtBefore = 0;
          if (j > i + 1) {
View Full Code Here

Examples of org.fife.ui.rsyntaxtextarea.RSyntaxDocument.charAt()

       // subtract the offset from the start of line, in order scanpos to be the position of the start of the line
       int scanpos = caretpos-startpos;  
        // scan until a newline accumulating the line
       String s = "";
       try {
            char ch = myDoc.charAt(scanpos);
       while (ch!='\n') {
           s += myDoc.charAt(scanpos);
           scanpos += 1;
           ch = myDoc.charAt(scanpos);
       }
View Full Code Here

Examples of org.foray.common.CharVector.charAt()

                    this.getNextContiguousTextInBlock();
            while (nextFOText != null) {
                final CharVector nextText =
                        nextFOText.getPreTextTransformText(context);
                if (nextText.length() >= remainingOffset) {
                    return nextText.charAt(remainingOffset - 1);
                }
                remainingOffset -= nextText.length();
                nextFOText = nextFOText.getNextContiguousTextInBlock();
            }
            return 0x0000;
View Full Code Here

Examples of org.hornetq.api.core.SimpleString.charAt()

   public void testCharSequence() throws Exception
   {
      String s = "abcdefghijkl";
      SimpleString s1 = new SimpleString(s);

      Assert.assertEquals('a', s1.charAt(0));
      Assert.assertEquals('b', s1.charAt(1));
      Assert.assertEquals('c', s1.charAt(2));
      Assert.assertEquals('k', s1.charAt(10));
      Assert.assertEquals('l', s1.charAt(11));
View Full Code Here

Examples of org.jdom.xpath.XPath.charAt()

            Element servletName = new Element( "servlet-name", ns );
            servletName.setText( d.getName() );
            servletMapping.addContent( servletName );
            Element urlPattern = new Element( "url-pattern", ns );
            String path = d.getPath();
            if ( path.charAt( 0 ) != '/' )
            {
                path = '/' + path;
            }
            urlPattern.setText( path );
            servletMapping.addContent( urlPattern );
View Full Code Here

Examples of org.jruby.util.ByteList.charAt()

                    break;
                }
                buffer.append(c);
            }
            for (; i >= 0; i++) {
                unread(buffer.charAt(i));
            }
            buffer.append(new byte[] {' ', '.', '.', '.'});
            return buffer.toString();
        } catch(Exception e) {
            return null;
View Full Code Here

Examples of org.jruby.util.ByteList.charAt()

                    regexFlags = RE_OPTION_IGNORECASE;
                }
            }
            if (args.length == 3 && !args[2].isNil()) {
                ByteList kcodeBytes = args[2].convertToString().getByteList();
                char first = kcodeBytes.length() > 0 ? kcodeBytes.charAt(0) : 0;
                regexFlags &= ~0x70;
                switch (first) {
                case 'n': case 'N':
                    regexFlags |= 16;
                    break;
View Full Code Here

Examples of org.jruby.util.ByteList.charAt()

    }

    public Object constructRubyScalar(final Node node) {
        if(node instanceof org.jvyamlb.nodes.ScalarNode) {
            ByteList sc = (ByteList)super.constructScalar(node);
            if(sc.length() > 1 && sc.charAt(0) == ':' && ((org.jvyamlb.nodes.ScalarNode)node).getStyle() == 0) {
                int first = sc.get(1);
                int last = sc.get(sc.realSize-1);
                if((first == '"' && last == '"') ||
                   (first == '\'' && last == '\'')) {
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.