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 Validation Functions #1

Open
Fleshgrinder opened this issue Apr 11, 2021 · 0 comments
Open

Add Validation Functions #1

Fleshgrinder opened this issue Apr 11, 2021 · 0 comments
Assignees
Labels
🎉 enhancement New feature or request
Milestone

Comments

@Fleshgrinder
Copy link
Owner

It would be great to have functions with which it is possible to verify if a given string is in an expected case format, or not. These functions can then be used with Kotlin's require and check functions as needed.

public fun String.isUpperCaseFormat(separator: Char, vararg ignore: Char): Boolean
public fun String.isUpperCamelCase(vararg ignore: Char): Boolean
public fun String.isUpperDashCase(vararg ignore: Char): Boolean
public fun String.isUpperSnakeCase(vararg ignore: Char): Boolean

public fun String.isLowerCaseFormat(separator: Char, vararg ignore: Char): Boolean
public fun String.isLowerCamelCase(vararg ignore: Char): Boolean
public fun String.isLowerDashCase(vararg ignore: Char): Boolean
public fun String.isLowerSnakeCase(vararg ignore: Char): Boolean
@Fleshgrinder Fleshgrinder added the 🎉 enhancement New feature or request label Apr 11, 2021
@Fleshgrinder Fleshgrinder self-assigned this Apr 11, 2021
@Fleshgrinder Fleshgrinder added this to the 0.3.0 milestone Apr 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎉 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant