Examples of substring()


Examples of com.uic.ase.proj.xbn.string.SOBStringBuffer.substring()

          ssbLine.trim();
          ssbLine.delete(0, "import".length());
          ssbLine.trim();
          ssbLine.deleteCharAt(ssbLine.length() - ";".length());
          String sFQImportClass = ssbLine.toString();
          String sFQImportPkg = ssbLine.substring(0, sFQImportClass.lastIndexOf(sPD));

          if(b_crashIfSelfDependent  &&
               s_package.equals(sFQImportPkg))  {
            throwAX("getPackageDependencies:  Package '" + s_package + "' is dependent on itself, and b_crashIfSelfDependent equals true.  The class '" + sJavaFile + "' is importing '" + sFQImportClass + "'.");
          }
View Full Code Here

Examples of edu.stanford.nlp.ling.CoreLabel.substring()

      for (CoreLabel word : words) {
        String w = word.get(CoreAnnotations.TextAnnotation.class);
        // found regular token: WORD/POS
        if (!w.startsWith("<") && w.contains("\\/") && w.lastIndexOf("\\/") != w.length()-2) {
          int i = w.lastIndexOf("\\/");
          String w1 = w.substring(0, i);
          // we do NOT set POS info here. We take the POS tags from the parser!
          word.set(CoreAnnotations.TextAnnotation.class, w1);
          word.remove(CoreAnnotations.OriginalTextAnnotation.class);
          if(Constants.USE_GOLD_NE) {
            if (ner != null) {
View Full Code Here

Examples of erjang.EBinary.substring()

          || (start1.value + length1.value) > bin1.byteSize()
        || length1.value < 0) {
        return null;
      }
 
      return bin1.substring(start1.value * 8, length1.value * 8);
    }
   

  @BIF
  static public EObject match_spec_test(EObject term, EObject matchSpec, EObject how)
View Full Code Here

Examples of erjang.EBitString.substring()

      || i.value > b.byteSize()) {
      throw ERT.badarg(bin, idx);
    }

    long split = i.value*8;
    return new ETuple2(b.substring(0, split),
               b.substring(split));

    /* more efficient, but works only for EBinary */

    // return new ETuple2(b.sub_binary(0, i.value),
View Full Code Here

Examples of erjang.EBitString.substring()

      throw ERT.badarg(bin, idx);
    }

    long split = i.value*8;
    return new ETuple2(b.substring(0, split),
               b.substring(split));

    /* more efficient, but works only for EBinary */

    // return new ETuple2(b.sub_binary(0, i.value),
    //    b.sub_binary(i.value, b.byteSize()-i.value));   
View Full Code Here

Examples of gnu.java.lang.CPStringBuilder.substring()

      s.append("Button1+");
    if ((modifiers & BUTTON2_DOWN_MASK) != 0)
      s.append("Button2+");
    if ((modifiers & BUTTON3_DOWN_MASK) != 0)
      s.append("Button3+");
    return s.substring(0, s.length() - 1);
  }
} // class InputEvent
View Full Code Here

Examples of it.unimi.dsi.lang.MutableString.substring()

        if ( print ) System.out.println( line + " " + format( freq ) );
        else {
          if ( quantumBitLength != 0 ) {
            // We choose using the quantum bit length
            number = line.substring( 2 );
            number = number.substring( number.indexOf( ' ' ) + 1 );
            q = Integer.parseInt( number.delete( number.indexOf( ' ' ), number.length() ).toString() );
            dumping = q >= lowQbl && q <= highQbl;
          }
          else dumping = freq >= lowGlobFreq && freq <= highGlobFreq;
        }
View Full Code Here

Examples of it.unimi.dsi.lang.MutableString.substring()

        // http-equiv="refresh" content="0;URL=http://foo.bar/..."
        if (equiv.equals("refresh") && (metaRefresh == null)) {

          final int pos = URLEQUAL_PATTERN.search(content);
          if (pos != -1)
            metaRefresh = content.substring(
                pos + URLEQUAL_PATTERN.length()).toString();
        }

        // http-equiv="location" content="http://foo.bar/..."
        if (equiv.equals("location") && (metaLocation == null))
View Full Code Here

Examples of java.awt.Point.substring()

      }
      public void changing(LocationEvent e) {
        final String location = e.location;
        if(location.startsWith(COMMAND_LOCATION_PREFIX)) {
          e.doit = false;
          String query = location.substring(COMMAND_LOCATION_PREFIX.length());
          if(query.endsWith("/")) {
            query = query.substring(0, query.length() - 1);
          }
          List<String> queryElementList = new ArrayList<String>();
          StringTokenizer st = new StringTokenizer(query, "&", true);
View Full Code Here

Examples of java.io.File.substring()

        Collections.sort(skinFiles);
        int count = 0;
        for (final String skinFile : skinFiles) {
            if (skinFile.endsWith(".css")) {
                prop.put("skinlist_" + count + "_file", skinFile);
                prop.put("skinlist_" + count + "_name", skinFile.substring(0, skinFile.length() - 4));
                count++;
            }
        }
        prop.put("skinlist", count);
        prop.putHTML("currentskin", env.getConfig("currentSkin", "default"));
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.