Uses of Class
org.miaixz.bus.core.text.replacer.StringReplacer
Packages that use StringReplacer
Package
Description
提供各种转义和反转义实现
文本替换类抽象及实现
-
Uses of StringReplacer in org.miaixz.bus.core.text.escape
Subclasses of StringReplacer in org.miaixz.bus.core.text.escapeModifier and TypeClassDescriptionclassHTML4的ESCAPE 参考:Commons Lang3classHTML4的UNESCAPEclass形如'的反转义器classclassXML的UNESCAPE -
Uses of StringReplacer in org.miaixz.bus.core.text.replacer
Subclasses of StringReplacer in org.miaixz.bus.core.text.replacerModifier and TypeClassDescriptionclass区间字符串替换,指定区间,将区间中的所有字符去除,替换为指定的字符,字符重复次数为区间长度,即替换后字符串长度不变 此方法使用String.codePoints()完成拆分替换class高效替换器,通过查找指定关键字,替换对应的值 基于AC自动机算法实现,需要被替换的原字符串越大,替换的键值对越多,效率提升越明显 注意: 如果需要被替换的关键字出现交叉,最先匹配中的关键字会被替换 1、"abc","ab" 会优先替换"ab" 2、"abed","be" 会优先替换"abed" 3、"abc", "ciphers" 会优先替换"abc"class查找替换器,通过查找指定关键字,替换对应的值class字符串替换链,用于组合多个字符串替换逻辑class查找替换器 查找给定的字符串,并全部替换为新的字符串,其它字符不变class区间字符串替换,指定区间,将区间中的所有字符去除,替换为指定的字符串,字符串只重复一次 此方法使用String.codePoints()完成拆分替换Methods in org.miaixz.bus.core.text.replacer that return types with arguments of type StringReplacerMethods in org.miaixz.bus.core.text.replacer with parameters of type StringReplacerConstructors in org.miaixz.bus.core.text.replacer with parameters of type StringReplacer