mirror of
https://github.com/shekhargulati/strman-java.git
synced 2026-10-15 19:27:36 +00:00
Fixed #15. Added support for length function
This commit is contained in:
@@ -613,6 +613,17 @@ public abstract class Strman {
|
||||
return value.replaceAll("^\\s+", "");
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns length of String. Delegates to java.lang.String length method.
|
||||
*
|
||||
* @param value The input String
|
||||
* @return Length of the String
|
||||
*/
|
||||
public static int length(final String value) {
|
||||
validate(value, NULL_STRING_PREDICATE, NULL_STRING_MSG_SUPPLIER);
|
||||
return value.length();
|
||||
}
|
||||
|
||||
public static String decode(final String value, final int digits, final int radix) {
|
||||
validate(value, NULL_STRING_PREDICATE, NULL_STRING_MSG_SUPPLIER);
|
||||
return Arrays
|
||||
|
||||
Reference in New Issue
Block a user