Skip to main content

to_camel_case

Function to_camel_case 

Source
pub fn to_camel_case(input: &str) -> String
Expand description

Convert SOME_NAME / kebab-name into someName / kebabName.

Mirrors zx: the input is lower-cased and every [a-z][_-]+[a-z] sequence is collapsed with the right-hand letter upper-cased (non-overlapping).