Function zvariant_utils::case::pascal_or_camel_case

source ยท
pub fn pascal_or_camel_case(s: &str, is_pascal_case: bool) -> String
Expand description

Convert to pascal or camel case, assuming snake or kebab case.

If s is already in pascal or camel case, should yield the same result.