Examples of substring()


Examples of org.apache.regexp.CharacterIterator.substring()

    int end = 0;

    while (patt.match(in, end)) {
      int start = patt.getParenStart(0);
      end = patt.getParenEnd(0);
      strList.add(in.substring(start, end));
    }

    String[] tempStr = (String[]) strList.toArray(new String[strList.size()]);
    return tempStr;
  }
View Full Code Here

Examples of org.apache.regexp.ReaderCharacterIterator.substring()

    int end = 0;

    while (patt.match(in, end)) {
      int start = patt.getParenStart(0);
      end = patt.getParenEnd(0);
      strList.add(in.substring(start, end));
    }

    String[] tempStr = (String[]) strList.toArray(new String[strList.size()]);
    return tempStr;
  }
View Full Code Here

Examples of org.apache.regexp.StringCharacterIterator.substring()

    int end = 0;

    while (patt.match(in, end)) {
      int start = patt.getParenStart(0);
      end = patt.getParenEnd(0);
      strList.add(in.substring(start, end));
    }

    String[] tempStr = (String[]) strList.toArray(new String[strList.size()]);
    return tempStr;
  }
View Full Code Here

Examples of org.apache.yoko.rmi.util.ByteString.substring()

                    buf.append(result);
                    result = buf.toByteString();

                    int resultLen = reservedPostfixes[i].length();
                    if (len > resultLen)
                        current = current.substring(0, len - resultLen);
                    else
                        current = new ByteString("");

                    match = true;
                    break;
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.substring()

            try {
                URL url = FileLocator.resolve(bundle.getEntry("/")); //$NON-NLS-1$
                url = FileLocator.toFileURL(url);
                String path = url.getFile();
                if (path.startsWith("file:")) { //$NON-NLS-1$
                    path = path.substring(5);
                }

                path = new File(path).getAbsolutePath();

                if (path.endsWith("!")) { //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.core.runtime.Path.substring()

                   
                    String path = resource.getFullPath().makeRelativeTo( root.getFullPath() ).toString();
                   
                    if( path.startsWith( "/" ) && path.length() > 1 )
                    {
                        path = path.substring( 1 );
                    }
                   
                    textField.setText( path );
                }
            }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.SimpleName.substring()

        return false;
      }

      private String getPropertyName(String name) {
        if (name.length() > 1)
          return name.substring(0, 1).toLowerCase() + name.substring(1);
        else
          return name.toLowerCase();
      }
    });
  }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.SimpleName.substring()

        return false;
      }

      private String getPropertyName(String name) {
        if (name.length() > 1)
          return name.substring(0, 1).toLowerCase() + name.substring(1);
        else
          return name.toLowerCase();
      }
    });
  }
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.FormText.substring()

        } else {
          styledTextHistory.append(msg);
        }
       
        String text = styledTextHistory.getText();
        text = text.substring(msgStart,text.length());

        if (emoticons != null) {
          for (IconDef def : emoticons.getIcons()) {
            for (String iconstr : def.text) {
              int index = text.indexOf(iconstr);
View Full Code Here

Examples of org.exist.util.XMLString.substring()

                final XMLString str = text.getXMLString();

                int pos = 0;
                for (final Match.Offset offset : offsets) {
                    if (offset.getOffset() > pos) {
                        nodeNr = builder.characters(str.substring(pos, offset.getOffset() - pos));
                        result.add(builder.getDocument().getNode(nodeNr));
                    }
                   
                    final Sequence params[] = {
                            new StringValue(str.substring(offset.getOffset(), offset.getLength())),
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.