Function lodust::camel_case[][src]

pub fn camel_case(s: String) -> String
Expand description

(String) Converts the input string into Camel-Case format.

Note that all the special characters will be removed and only valid letters remained.

Example

use lodust::camel_case;

let camel_cased = camel_case("Foo Bar".to_string());
// => "fooBar"

let camel_cased = camel_case("--foo--bar--".to_string());
// => "fooBar"

let camel_cased = camel_case("__FOO_BAR__".to_string());
// => "fooBar"