Skip to main content

train_case

Function train_case 

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

Converts a string to Train-Case (each word capitalized, joined by -).

With normalize == true, lowercases each part before capitalizing.