Skip to main content

Module case_conv

Module case_conv 

Source
Expand description

Functions for string case manipulation, such as detecting the identifier case, and converting it into appropriate form.

Functionsยง

is_camel_case ๐Ÿ”’
is_lower_snake_case ๐Ÿ”’
is_snake_case ๐Ÿ”’
is_upper_snake_case ๐Ÿ”’
to_camel_case ๐Ÿ”’
Converts an identifier to an UpperCamelCase form. Returns None if the string is already in UpperCamelCase.
to_lower_snake_case ๐Ÿ”’
Converts an identifier to a lower_snake_case form. Returns None if the string is already in lower_snake_case.
to_upper_snake_case ๐Ÿ”’
Converts an identifier to an UPPER_SNAKE_CASE form. Returns None if the string is already is UPPER_SNAKE_CASE.