List of utility methods to do String Length Get
int | lengthOfString(final String cadena) Metodo que devuelve la longitud de una cadena limpia return cadena.trim().length();
|
String | lengthTokensField(String fieldName) length Tokens Field return bookkeepingField(fieldName, LENGTH_TOKENS_BOOKKEEP_NAME);
|
String | lengthToString(double value, boolean proportional) length To String if (proportional) { return (value * 100) + "%"; } else { return value + "px"; |
int | lengthUCP(String s) Returns the number of Unicode code points in the given string. return s.codePointCount(0, s.length());
|
int | lengthUnicode(String s) length Unicode if (s == null || s.length() == 0) return 0; int len = 0; for (int i = 0; i < s.length(); i++) { if ((int) s.charAt(i) > 127) len += 2; else len += 1; ... |
boolean | lengthWithinLimits(String string, int min, int max) Checks if a String's length is greater than or equal to some 'min' value, and less than or equal to some 'max' value. if (string == null) { return false; if (min > max) { return false; int stringLength = string.length(); return ((stringLength >= min) && (stringLength <= max)); ... |