Skip to main content

Crate camel

Crate camel 

Source
Expand description

Case conversion utilities for strings (PascalCase, camelCase, kebab-case, etc.).

Functions§

camel_case
Converts a string to camelCase.
flat_case
Converts a string to flatcase (all lowercase, no separators).
hello
Returns a greeting string. Example: hello("world")"Hello, world!".
is_uppercase
Returns whether c is uppercase. Returns None for ASCII digits.
kebab_case
Converts a string to kebab-case (lowercase parts joined with -).
lower_first
Lowercases the first character; rest unchanged.
pascal_case
Converts a string to PascalCase.
snake_case
Converts a string to snake_case (lowercase parts joined with _).
split_by_case
Splits a string into words at case boundaries and separators.
title_case
Converts a string to Title Case (like train-case but with spaces, minor words lowercase).
train_case
Converts a string to Train-Case (each word capitalized, joined by -).
upper_first
Capitalizes the first character; rest unchanged.