BlackToppStudios / Mezz_Foundation

Foundational Data types that enforce no opinions on how to build games and provide many facilities that complex games need. This largely avoids graphics and physics, but provides tools like the SortedVector, CountedPtr and HashedString classes.
GNU General Public License v3.0
3 stars 0 forks source link

A few other programmer case tools on string tools #57

Open Sqeaky opened 5 years ago

Sqeaky commented 5 years ago

In StringTools.h there is a function for dragon/camelcasing a string. 2 actually, one mutably modifies a range and another immutably copies.

Functions like this would be easy to make for other common programmer styles, and I would have used them a few times:

dragon case/pascal case - Every Word Is Upper Case.

camel case - every Word But The First Is Upper Case.

snake case - all_lower_case_with_underscores

kebab case - all-lower-case-with-dashes

screaming dragon or screaming snake case - ALL_UPPER_CASE_WITH_UNDERSCORES