mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 09:45:19 +08:00
Modify add reusable conditions and change code note in NameConditions
This commit is contained in:
@@ -28,6 +28,8 @@ fun equalsOf(other: String, isIgnoreCase: Boolean)
|
||||
|
||||
> 完全字符匹配。
|
||||
|
||||
可以重复使用,最终会选择完全匹配的一个。
|
||||
|
||||
### startsWith *- method*
|
||||
|
||||
```kotlin
|
||||
@@ -42,6 +44,8 @@ fun startsWith(prefix: String, startIndex: Int, isIgnoreCase: Boolean)
|
||||
|
||||
> 起始字符匹配。
|
||||
|
||||
可以重复使用,最终会选择完全匹配的一个。
|
||||
|
||||
### endsWith *- method*
|
||||
|
||||
```kotlin
|
||||
@@ -56,6 +60,8 @@ fun endsWith(suffix: String, isIgnoreCase: Boolean)
|
||||
|
||||
> 结束字符匹配。
|
||||
|
||||
可以重复使用,最终会选择完全匹配的一个。
|
||||
|
||||
### contains *- method*
|
||||
|
||||
```kotlin
|
||||
@@ -70,6 +76,8 @@ fun contains(other: String, isIgnoreCase: Boolean)
|
||||
|
||||
> 包含字符匹配。
|
||||
|
||||
可以重复使用,最终会选择完全匹配的一个。
|
||||
|
||||
### matches *- method*
|
||||
|
||||
```kotlin
|
||||
@@ -88,6 +96,8 @@ fun matches(regex: Regex)
|
||||
|
||||
> 正则字符匹配。
|
||||
|
||||
可以重复使用,最终会选择完全匹配的一个。
|
||||
|
||||
### length *- method*
|
||||
|
||||
```kotlin
|
||||
@@ -110,6 +120,8 @@ fun length(conditions: IntConditions)
|
||||
|
||||
> 字符长度与范围及条件匹配。
|
||||
|
||||
不可重复使用,重复使用旧的条件会被当前条件替换。
|
||||
|
||||
### thisSynthetic0 *- method*
|
||||
|
||||
```kotlin
|
||||
|
Reference in New Issue
Block a user