in src/main/java/org/apache/servicemix/components/util/StringUtils.java [218:239]
public static String stripStart(String str, String stripChars) {
if (str == null) {
return null;
}
int strLen = str.length();
if (strLen == 0) {
return str;
}
int start = 0;
if (stripChars == null) {
while ((start != strLen) && Character.isWhitespace(str.charAt(start))) {
start++;
}
} else if (stripChars.length() == 0) {
return str;
} else {
while ((start != strLen) && (stripChars.indexOf(str.charAt(start)) != -1)) {
start++;
}
}
return str.substring(start);
}