public class LookupReplacer extends TextReplacer
| Constructor and Description |
|---|
LookupReplacer(String[]... lookup)
构造
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
replace(CharSequence text,
int indexes,
TextBuilder builder)
抽象的字符串替换方法,通过传入原字符串和当前位置,执行替换逻辑,返回处理或替换的字符串长度部分。
|
replacepublic LookupReplacer(String[]... lookup)
lookup - 被查找的键值对protected int replace(CharSequence text, int indexes, TextBuilder builder)
TextReplacerreplace in class TextReplacertext - 被处理的字符串indexes - 当前位置builder - 输出Copyright © 2021. All rights reserved.