public class StringFinder extends TextFinder
endIndex, negative, text| Constructor and Description |
|---|
StringFinder(CharSequence word,
boolean caseInsensitive)
构造
|
| Modifier and Type | Method and Description |
|---|---|
int |
end(int start)
返回结束位置,即最后一个字符后的位置(不包含)
|
int |
start(int from)
返回开始位置,即起始字符位置(包含),未找到返回-1
|
getValidEndIndex, setEndIndex, setNegative, setTextpublic StringFinder(CharSequence word, boolean caseInsensitive)
word - 被查找的字符caseInsensitive - 是否忽略大小写public int start(int from)
Finderfrom - 查找的开始位置(包含)public int end(int start)
Finderstart - 找到的起始位置Copyright © 2022. All rights reserved.