Converts a snake case, kebab case, or lower camel case String
to upper camel case.
Equations
- Lake.toUpperCamelCaseString str = let parts := String.split str fun (chr : Char) => chr == '_' || chr == '-'; String.join (List.map (fun (x : String) => String.capitalize x) parts)
Instances For
Converts a snake case, kebab case, or lower camel case Name
to upper camel case.
Equations
- Lake.toUpperCamelCase (Lean.Name.str p s) = Lean.Name.mkStr (Lake.toUpperCamelCase p) (Lake.toUpperCamelCaseString s)
- Lake.toUpperCamelCase name = name