blob: f39f35e6b32ba925555d65340e8dc08fde5ded88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package org.zwobble.mammoth.internal.util;
public class Strings {
public static String trimLeft(String value, char character) {
int index = 0;
while (index < value.length() && value.charAt(index) == character) {
index++;
}
return value.substring(index);
}
public static boolean isNullOrEmpty(String value) {
return value == null || value.isEmpty();
}
public static boolean startsWithIgnoreCase(String value, String prefix) {
return value.regionMatches(true, 0, prefix, 0, prefix.length());
}
}
|