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

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

Converts the subject to title case.

Arguments

  • subject: &str - The string to convert to title case.

Example

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