Skip to main content

title_case

Function title_case 

Source
pub fn title_case(s: &str, normalize: bool) -> String
Expand description

Converts a string to Title Case (like train-case but with spaces, minor words lowercase).

With normalize == true, lowercases each part before capitalizing (except TITLE_CASE_EXCEPTIONS).