Text: Text Case
Re-case a string into a chosen casing convention. Names follow the
convert_case crate's vocabulary.
Example
Mode: Snake → "Hello World" → "hello_world"
Mode: Camel → "hello world" → "helloWorld"
Mode: Pascal → "hello world" → "HelloWorld"
Mode: Kebab → "Hello World" → "hello-world"
Parameters
Mode—REQUIRED
Casing strategy to apply: - Camel — camelCase - Pascal /
UpperCamel — PascalCase - Snake — snake_case - Kebab —
kebab-case - Train — Train-Case - Flat — flatcase -
Alternating — toggles each character's case.
Input
String—REQUIRED
Text to re-case.
Output
String
The re-cased text.