MatchType

关键词匹配类型。

Author

ForteScarlet

Entries

Link copied to clipboard

全等匹配

Link copied to clipboard

忽略大小写的全等匹配

Link copied to clipboard

首部匹配

Link copied to clipboard

尾部匹配.

Link copied to clipboard

包含匹配.

Link copied to clipboard

正则完全匹配. regex.matches(...)

Link copied to clipboard

正则包含匹配. regex.containsMatchIn(...)

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard

Inherited properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun match(keyword: Keyword, value: String): Boolean

提供一个匹配关键词 keyword 和匹配目标 value, 对其进行匹配并返回匹配结果。

Link copied to clipboard
fun valueOf(value: String): MatchType

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.