CaseMatcher

sealed class CaseMatcher(val regex: Regex)

https://gist.github.com/SuppieRK/a6fb471cf600271230c8c7e532bdae4b

Constructors

Link copied to clipboard
protected fun CaseMatcher(regex: Regex)

Types

Link copied to clipboard
class CamelSnakeCaseMatcher : CaseMatcher

Represents matching for camel snake case, e.g. 'Camel_Snake_Case'

Link copied to clipboard
class CustomMatcher(val regex: Regex) : CaseMatcher

Represents matching for custom regular expressions

Link copied to clipboard
class KebabCaseMatcher : CaseMatcher

Represents matching for kebab case, e.g. 'kebab-case'

Link copied to clipboard
class LowerCamelCaseMatcher : CaseMatcher

Represents matching for camel case, e.g. 'camelCase'

Link copied to clipboard
class LowerFlatCaseMatcher : CaseMatcher

Represents matching for flat case, e.g. 'flatcase'

Link copied to clipboard
class ScreamingKebabCaseMatcher : CaseMatcher

Represents matching for screaming kebab case, e.g. 'SCREAMING-KEBAB-CASE'

Link copied to clipboard
class ScreamingSnakeCaseMatcher : CaseMatcher

Represents matching for screaming snake case, e.g. 'SCREAMING_SNAKE_CASE'

Link copied to clipboard
class SnakeCaseMatcher : CaseMatcher

Represents matching for snake case, e.g. 'snake_case'

Link copied to clipboard
class TrainCaseMatcher : CaseMatcher

Represents matching for train case, e.g. 'Train-Case'

Link copied to clipboard
class UpperCamelCaseMatcher : CaseMatcher

Represents matching for upper camel case, e.g. 'UpperCamelCase'

Link copied to clipboard
class UpperFlatCaseMatcher : CaseMatcher

Represents matching for upper flat case, e.g. 'UPPERFLATCASE'

Functions

Link copied to clipboard
open fun matches(source: String?): Boolean
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
private val regex: Regex

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Sources

Link copied to clipboard