Class SubstringUtil
- java.lang.Object
-
- de.fraunhofer.iese.mydata.pep.common.SubstringUtil
-
public class SubstringUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods 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) => |
-
-
-
Method Detail
-
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:
-
-