Skip to main content

pascal_case

Function pascal_case 

Source
pub fn pascal_case(name: &str) -> String
Expand description

Converts a UPPER_CASE_SNAKE enum value description to a PascalCase identifier.

Underscores are the word boundaries, so acronyms flatten (IOI_QTY -> IoiQty). Empty segments from doubled underscores are skipped.