| Modifier and Type | Field and Description |
|---|---|
| private static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| private static List | |
| private static boolean | |
| public static String | Returns: the input string converted to camelCasethe string to be converted s)Converts an input string into camelCase. |
| WORD_SEPARATOR_REGEX | back to summary |
|---|---|
| private static final String WORD_SEPARATOR_REGEX | |
| CaseFormatUtils | back to summary |
|---|---|
| private CaseFormatUtils() | |
| adjustWordCase | back to summary |
|---|---|
| private static String adjustWordCase(String s, boolean firstLetterUpperCased) | |
| extractWords | back to summary |
|---|---|
| private static List | |
| isAllCaps | back to summary |
|---|---|
| private static boolean isAllCaps(String s) | |
| toCamelCase | back to summary |
|---|---|
| public static String toCamelCase(String s) Converts an input string into camelCase.
The input string may use any of the well known case styles: Pascal, Snake, Kebab or even Camel.
Already camelCased strings will be returned as is.
Mix and match is also an option; the algorithm will try its best to give an acceptable answer.
Mixed case will be preserved, i.e | |