ReCase

Changes the input text to the desired convention case.

 

Install

Add this to your Cargo.toml:

toml [dependencies] recase = "0.1.0"

 

Example:

```rust use recase::ReCase;

fn main() { const INPUT: &str = "Löng and meaningless-Ẽxample_Text";

let recase = ReCase::new(String::from(INPUT));

println!("{}", recase.snake_case());     // Prints "löng_and_meaningless_ẽxample_text"
println!("{}", recase.camel_case());     // Prints "löngAndMeaninglessẼxampleText"

} ```

 

All supported convention cases:

 

Limitations

 

Acknowledgements

Heavily influenced by ReCase from techniboogie-dart.