StringCaseExtensions extension
Extension to convert strings into different cases. Supports snake_case, camelCase, PascalCase, kebab-case, SCREAMING_SNAKE_CASE, Title Case, and Sentence case.
- on
Methods
-
toCamelCase(
) → String -
Available on String, provided by the StringCaseExtensions extension
Converts string tocamelCase. Example:"edit item"→"editItem" -
toKebabCase(
) → String -
Available on String, provided by the StringCaseExtensions extension
Converts string tokebab-case. Example:"Edit Item"→"edit-item" -
toPascalCase(
) → String -
Available on String, provided by the StringCaseExtensions extension
Converts string toPascalCase. Example:"edit item"→"EditItem" -
toScreamingSnakeCase(
) → String -
Available on String, provided by the StringCaseExtensions extension
Converts string toSCREAMING_SNAKE_CASE. Example:"Edit Item"→"EDIT_ITEM" -
toSentenceCase(
) → String -
Available on String, provided by the StringCaseExtensions extension
Converts string to Sentence case (capitalize only the first word). Example:"edit_item now"→"Edit item now" -
toSnakeCase(
) → String -
Available on String, provided by the StringCaseExtensions extension
Converts string tosnake_case. Example:"EditItem"→"edit_item" -
toTitleCase(
) → String -
Available on String, provided by the StringCaseExtensions extension
Converts string to Title Case (capitalize every word). Example:"edit_item"→"Edit Item"