Fixed #40. Added support for toSnakeCase function

This commit is contained in:
Shekhar Gulati
2016-05-22 19:09:04 +05:30
parent f6811a9905
commit 27d10cb985
2 changed files with 29 additions and 0 deletions
+10
View File
@@ -1033,6 +1033,16 @@ public abstract class Strman {
return toDecamelize(value, "-");
}
/**
* Transform to snake_case.
*
* @param value The input String
* @return String in snake_case.
*/
public static String toSnakeCase(final String value) {
return toDecamelize(value, "_");
}
public static String decode(final String value, final int digits, final int radix) {
validate(value, NULL_STRING_PREDICATE, NULL_STRING_MSG_SUPPLIER);
return Arrays