Function voca_rs::case::camel_case

source ·
pub fn camel_case(subject: &str) -> String
Expand description

Converts the subject to camel case.

Arguments

  • subject - The string to convert to camel case.

Example

use voca_rs::*;
case::camel_case("bird flight");
// => "birdFlight"
case::camel_case("BirdFlight");
// => "birdFlight"
case::camel_case("-BIRD-FLIGHT-");
// => "birdFlight"
use voca_rs::Voca;
"bird flight"._camel_case();
// => "birdFlight"