List of utility methods to do String Left
String | left(String str, int size) left if (str == null || "".equals(str)) { return str; if (size > 0) { if (size > str.length()) { return str; } else { return str.substring(0, size); ... |
String | left(String string, int length) Returns a portion of a string starting from the beginning for a designated amount of characters return string.substring(0, length);
|
String | left(String text, int len) left return substring(text, 0, len);
|
String | left(String text, int max) left if (text.length() <= max) return text; return text.substring(0, max - 3) + "..."; |
String | left(String value, int length) left String result; if (value.length() <= length) result = value; else result = value.substring(0, length); return result; |
String | left(String var0, int var1) left return var0 == null ? null : (var1 < 0 ? "" : (var0.length() <= var1 ? var0 : var0.substring(0, var1))); |