public class StringUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
isDebug
Is the class in debug mode or not?
|
| Constructor and Description |
|---|
StringUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String[] |
escapeSplit(String escape,
String splat,
String inp)
Split a string on every occurrence of a string not preceded by an escape.
|
static String |
sliceString(String strang,
int lft,
int rft)
Slice a substring out of another string.
|
static String |
sliceStringL(String strang,
int lft,
int len)
Slice a substring out of another string.
|
public static String[] escapeSplit(String escape, String splat, String inp)
escape - The escape that stops splitting.splat - The string to split on. If this starts with the escape
sequence, things will work poorly.inp - The string to split.public static String sliceString(String strang, int lft, int rft)
strang - The string to remove a substring from.lft - The left-side of the substring to remove.rft - The right-side of the substring to remove.public static String sliceStringL(String strang, int lft, int len)
strang - The string to remove a substring from.lft - The left-side of the substring to remove.len - The length of the substring to remove.Copyright © 2020. All rights reserved.