Uses of Class
org.miaixz.bus.core.text.finder.TextFinder
Packages that use TextFinder
Package
Description
提供文本相关操作的封装
文本查找实现,包括:
查找文本中的字符(正向、反向)
查找文本中的匹配字符(正向、反向)
查找文本中的字符串(正向、反向)
查找文本中匹配正则的字符串(正向)
-
Uses of TextFinder in org.miaixz.bus.core.text
Constructors in org.miaixz.bus.core.text with parameters of type TextFinderModifierConstructorDescriptionStringSplitter(CharSequence text, TextFinder separatorFinder, int limit, boolean ignoreEmpty) 构造 -
Uses of TextFinder in org.miaixz.bus.core.text.finder
Subclasses of TextFinder in org.miaixz.bus.core.text.finderModifier and TypeClassDescriptionclass字符查找器 查找指定字符在字符串中的位置信息class固定长度查找器 给定一个长度,查找的位置为from + length,一般用于分段截取class字符匹配查找器 查找满足指定Predicate匹配的字符所在位置,此类长用于查找某一类字符,如数字等class正则查找器 通过传入正则表达式,查找指定字符串中匹配正则的开始和结束位置class字符串查找器Methods in org.miaixz.bus.core.text.finder that return TextFinderModifier and TypeMethodDescriptionTextFinder.setEndIndex(int endIndex) 设置查找的结束位置 如果从前向后查找,结束位置最大为text.length() 如果从后向前,结束位置为-1PatternFinder.setNegative(boolean negative) TextFinder.setNegative(boolean negative) 设置是否反向查找,true表示从后向前查找PatternFinder.setText(CharSequence text) TextFinder.setText(CharSequence text) 设置被查找的文本