Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add string case reified types #96

Merged
merged 14 commits into from
Oct 12, 2024
Merged

Add string case reified types #96

merged 14 commits into from
Oct 12, 2024

Conversation

poteat
Copy link
Owner

@poteat poteat commented Oct 12, 2024

Adds various case conversions.

  • Add String.CamelCase to convert a string to camelCase.
  • Add String.PascalCase to convert a string to PascalCase.
  • Add String.SnakeCase to convert a string to snake_case.
  • Add String.KebabCase to convert a string to kebab-case.
  • Add String.ConstantCase to convert a string to CONSTANT_CASE.
  • Reify String.Capitalize to a value-level function.
  • Add String.Words to split a string into words.
  • Add String.IsUppercaseLetter to check if a string is uppercase.
  • Add String.IsLowercaseLetter to check if a string is lowercase.
  • Add String.IsDigit to check if a string is a digit.

@poteat poteat merged commit db7a013 into main Oct 12, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant