List of utility methods to do String Chop Left
String | chopFromLeft(String text, char character, int count) Chop the string off past the last stated occurrence of character String target = text; int inTotal = countOf(character, text); if (inTotal > count && count > 0) { int total = count; int indexFrom = 0; int nextIndex = 0; while (total > 0) { nextIndex = text.indexOf(character, indexFrom); ... |
String | chopLeft(String str, char delimiter) chop Left if (str == null || "".equals(str)) { return str; int pos; int len = str.length(); for (pos = 0; pos < len; pos++) { if (str.charAt(pos) != delimiter) { break; ... |
String | ChopLf(String this_string, String chomp_off) Chop Lf if (!this_string.contains(chomp_off)) return this_string; return this_string.substring(SeekLf(this_string, chomp_off.charAt(0)) + 1, this_string.length()); |