public interface Finder
start(int)查找开始位置,再调用end(int)找结束位置| Modifier and Type | Field and Description |
|---|---|
static int |
INDEX_NOT_FOUND |
| Modifier and Type | Method and Description |
|---|---|
int |
end(int start)
返回结束位置,即最后一个字符后的位置(不包含)
|
default Finder |
reset()
复位查找器,用于重用对象
|
int |
start(int from)
返回开始位置,即起始字符位置(包含),未找到返回-1
|
static final int INDEX_NOT_FOUND
int start(int from)
from - 查找的开始位置(包含)int end(int start)
start - 找到的起始位置default Finder reset()
Copyright © 2025. All rights reserved.