You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
516 B
25 lines
516 B
2 months ago
|
class SearchResult {
|
||
|
final String filePath;
|
||
|
final int lineNumber;
|
||
|
final String lineContent;
|
||
|
final List<MatchResult> matches;
|
||
|
final String queryTerm; // 记录匹配的查询项
|
||
|
|
||
|
SearchResult({
|
||
|
required this.filePath,
|
||
|
required this.lineNumber,
|
||
|
required this.lineContent,
|
||
|
required this.matches,
|
||
|
required this.queryTerm,
|
||
|
});
|
||
|
}
|
||
|
|
||
|
class MatchResult {
|
||
|
final int start;
|
||
|
final int end;
|
||
|
|
||
|
const MatchResult({required this.start, required this.end});
|
||
|
}
|
||
|
|
||
|
enum SearchMode { locate, count }
|