[][src]Function voca_rs::case::pascal_case

pub fn pascal_case(subject: &str) -> String

Converts the subject to pascal case.

Arguments

Example

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