Abstract
Static
Converts a string to Title Case. Each word will have its first letter capitalized and the rest in lowercase.
The string to convert.
The formatted title case string.
TextUtil.toTitleCase("hello world") // "Hello World" Copy
TextUtil.toTitleCase("hello world") // "Hello World"
Converts a string to camelCase. Underscores and spaces are removed, and each word (except the first) is capitalized.
The formatted camelCase string.
TextUtil.toCamelCase("my_example_string") // "myExampleString" Copy
TextUtil.toCamelCase("my_example_string") // "myExampleString"
Converts a string to Title Case. Each word will have its first letter capitalized and the rest in lowercase.