alsi-lawr / alsi.caseconversions

ALSI.CaseConversions is a .NET library that converts various string formats into other cases. It provides robust handling of different casing conventions, separators, and special characters, making it an ideal utility for consistent string formatting in your applications.
MIT License
2 stars 1 forks source link

More Case Conversions Within Current Model #12

Open alsi-lawr opened 1 month ago

marcosreiss commented 1 month ago

I'll do it

alsi-lawr commented 1 month ago

I'll do it

Great! As a suggestion, there's a few cases that might be good to add:

Formatting Name(s) Suggested
twowords flatcase FlatCase
TWOWORDS UPPERCASE, SCREAMINGCASE UpperCase
TWO_WORDS ALL_CAPS, SCREAMING_SNAKE_CASE, MACRO_CASE, CONSTANT_CASE MacroCase
two_Words camel_Snake_Case CamelSnakeCase
Two_Words Pascal_Snake_Case, Start_Snake_case StartSnakeCase
TWO-WORDS TRAIN-CASE, COBOL-CASE, SCREAMING-KEBAB-CASE CobolCase
Two-Words Train-Case, HTTP-Header-Case TrainCase
Two words Sentence case SentenceCase

Obviously you don't need to implement all, although I think it'd be fairly trivial with the current model. Choose whichever namespace you want from the suggested names above, but be sensible as there's some overlap in naming.

For any submissions, I'd prefer a single PR per new case, and associated unit tests/README updates.