ReplaceRule

data class ReplaceRule(replaceString: String, isRegex: Boolean, matchRange: IntRange?, newString: CharSequence?, replacementMatch: OnSpanReplacementMatch?)

替换规则

Constructors

Link copied to clipboard
fun ReplaceRule(replaceString: String, isRegex: Boolean, matchRange: IntRange?, newString: CharSequence?, replacementMatch: OnSpanReplacementMatch?)

Properties

Link copied to clipboard
val isRegex: Boolean

replaceString是否为正则

Link copied to clipboard
val matchRange: IntRange?

匹配范围

Link copied to clipboard
val newString: CharSequence?

替换文本(null 为不替换)

Link copied to clipboard
val replacementMatch: OnSpanReplacementMatch?

匹配时回调

Link copied to clipboard
val replaceString: String

查找的字符串或正则文本