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