[][src]Function voca_rs::case::title_case

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

Converts the subject to title case.

Arguments

Example

use voca_rs::*;
case::title_case("bird flight");
// => "Bird Flight"
case::title_case("BirdFlight");
// => "Bird Flight"
case::title_case("-BIRD-FLIGHT-");
// => "Bird Flight"
use voca_rs::Voca;
"bird flight"._title_case();
// => "Bird Flight"