Examples of substring()


Examples of org.geotools.util.SimpleInternationalString.substring()

                        sb.append(description != null ? description.toString()+ "," : "");
                    }
                    String description = sb.toString();
                    int pos = -1;
                    if (description.length() > 0 && (pos = description.lastIndexOf(",")) != -1) {
                        description = description.substring(0, pos);
                    }
                    DefaultRangeType range = new DefaultRangeType(covName,new SimpleInternationalString(description),fieldTypes);
                    rangeMap.put(covName, range);
                }
            }
View Full Code Here

Examples of org.hsqldb.types.BinaryType.substring()

                    if (value == null) {
                        return null;
                    }

                    return type.substring(session, value, 0, length, true);
                }
            }
            case OpTypes.CAST : {
                Object value =
                    dataType.castToType(session,
View Full Code Here

Examples of org.hsqldb.types.CharacterType.substring()

                    if (value == null) {
                        return null;
                    }

                    return type.substring(session, value, 0, length, true,
                                          false);
                } else {
                    BinaryData value =
                        (BinaryData) nodes[RIGHT].getValue(session);
View Full Code Here

Examples of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.NodePathCompleter.Completion.substring()

        NodePathCompleter worker = new NodePathCompleter(tree);
        Completion path = worker.complete(fragment);
        if (path == null) {
            return null;
        }
        return path.substring(fragment.length());
    }

    private NodePathUtils() {/**/}

}
 
View Full Code Here

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

      start = 1;
    if ( end > l )
      end = l;
   
    if ( start <= end ) {
      return s.substring( start-1 , end );
    } else {
      return EMPTYSTRING;
    }
  }
 
View Full Code Here

Examples of org.opengis.util.InternationalString.substring()

                        sb.append(description != null ? description.toString()+ "," : "");
                    }
                    String description = sb.toString();
                    int pos = -1;
                    if (description.length() > 0 && (pos = description.lastIndexOf(",")) != -1) {
                        description = description.substring(0, pos);
                    }
                    DefaultRangeType range = new DefaultRangeType(covName,new SimpleInternationalString(description),fieldTypes);
                    rangeMap.put(covName, range);
                }
            }
View Full Code Here

Examples of org.resmedicinae.resmedlib.term.String.substring()

            if (returnVal == JFileChooser.APPROVE_OPTION) {
                String curFile = chooser.getSelectedFile().getAbsolutePath();
                System.out.println("B: curfile: " + curFile);
                curFile = curFile.replace('\\', '/');
                setIndexFile(curFile);
                setGlobalPath(curFile.substring(0, curFile.lastIndexOf("/") + 1));
                // setUpdateAfterChangingHealthRecordData();
                System.out.println("You choose to open this file: " + curFile);
            } else
                System.out.println("returnVal: " + returnVal);
        } catch (Exception e) {
View Full Code Here

Examples of org.springframework.boot.loader.util.AsciiBytes.substring()

  }

  @Test
  public void substringFromBeingIndex() throws Exception {
    AsciiBytes abcd = new AsciiBytes(new byte[] { 65, 66, 67, 68 });
    assertThat(abcd.substring(0).toString(), equalTo("ABCD"));
    assertThat(abcd.substring(1).toString(), equalTo("BCD"));
    assertThat(abcd.substring(2).toString(), equalTo("CD"));
    assertThat(abcd.substring(3).toString(), equalTo("D"));
    assertThat(abcd.substring(4).toString(), equalTo(""));
    this.thrown.expect(IndexOutOfBoundsException.class);
View Full Code Here

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

            String value = ((LongLiteralExpr) expression).getValue();
            Validate.isTrue(
                    value.toUpperCase().endsWith("L"),
                    "Expected long literal expression '%s' to end in 'l' or 'L'",
                    value);
            value = value.substring(0, value.length() - 1);
            final long l = new Long(value);
            return new LongAttributeValue(annotationName, l);
        }

        if (expression instanceof IntegerLiteralExpr) {
View Full Code Here

Examples of org.teiid.core.types.XMLType.substring()

        else if (currentValue instanceof java.util.Date) {
            return TimestampWithTimezone.create((java.util.Date)currentValue, serverTimeZone, getDefaultCalendar(), currentValue.getClass());
        }
        else if (maxFieldSize > 0 && currentValue instanceof String) {
          String val = (String)currentValue;
          currentValue = val.substring(0, Math.min(maxFieldSize/2, val.length()));
        }
        return currentValue;
    }
   
  private InputStreamFactory createInputStreamFactory(Streamable<?> type) {
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.