search static method
Implementation
static RecordHitInfo? search(String target, String query) {
var index = kmpSearch(target, query);
if (index >= 0) {
return RecordHitInfo(index, index + query.length);
}
return null;
}
static RecordHitInfo? search(String target, String query) {
var index = kmpSearch(target, query);
if (index >= 0) {
return RecordHitInfo(index, index + query.length);
}
return null;
}