Skip to main content

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

ModeREQUIRED

Casing strategy to apply: - CamelcamelCase - Pascal / UpperCamelPascalCase - Snakesnake_case - Kebabkebab-case - TrainTrain-Case - Flatflatcase - Alternating — toggles each character's case.

Input

StringREQUIRED
Text to re-case.

Output

String
The re-cased text.