Class SubstringUtil

java.lang.Object
de.fraunhofer.iese.mydata.pep.common.SubstringUtil

public class SubstringUtil extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    substring(String s, int start, int end, String fillString, boolean autoFill)
    STRING := "0123456789" | substring(s, 1, null/0) => 123456789 | substring(s, 2, ") => 2345 | substring(s, null/0, 3) => 012 | substring(s, -2, null) => 89 | substring(s, -3, -2) => 7 | substring(s, -2,2) => 0189 | substring(s, 2, -4) => 2345 | substring(s, null, -5) => 01234 | substring(s, 6,2) => | substring(s, -3, -4) => | substring(s, null, null) => |

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • substring

      public static String substring(String s, int start, int end, String fillString, boolean autoFill)
      STRING := "0123456789" | substring(s, 1, null/0) => 123456789 | substring(s, 2, ") => 2345 | substring(s, null/0, 3) => 012 | substring(s, -2, null) => 89 | substring(s, -3, -2) => 7 | substring(s, -2,2) => 0189 | substring(s, 2, -4) => 2345 | substring(s, null, -5) => 01234 | substring(s, 6,2) => | substring(s, -3, -4) => | substring(s, null, null) => |
      Parameters:
      s -
      start -
      end -
      fillString -
      autoFill -
      Returns: