继承自 <NSObject> .
◆ retrieveSearchResult:page_index:match_result:match_start_text_index:match_end_text_index:sentence:match_sentence_start_text_index:match_sentence_end_text_index:()
| - (int) retrieveSearchResult: |
|
(NSString *) |
file_path |
| page_index: |
|
(int) |
page_index |
| match_result: |
|
(NSString *) |
match_result |
| match_start_text_index: |
|
(int) |
match_start_text_index |
| match_end_text_index: |
|
(int) |
match_end_text_index |
| sentence: |
|
(NSString *) |
sentence |
| match_sentence_start_text_index: |
|
(int) |
match_sentence_start_text_index |
| match_sentence_end_text_index: |
|
(int) |
match_sentence_end_text_index |
|
|
| |
|
required |
用于检索搜索结果的回调函数。
- 参数
-
| [in] | file_path | 指定在哪个文件中找到匹配结果的文件路径。 |
| [in] | page_index | 指定在文件的哪一页找到匹配结果的页面索引。 |
| [in] | match_result | 表示匹配结果的字符串。 |
| [in] | match_start_text_index | 匹配结果中起始字符的索引。 |
| [in] | match_end_text_index | 匹配结果中结束字符的索引。 |
| [in] | sentence | 包含当前匹配结果的句子。 |
| [in] | match_sentence_start_text_index | 句子中起始字符的索引。 |
| [in] | match_sentence_end_text_index | 句子中结束字符的索引。 |
- 返回
- 如果返回非零值,搜索引擎将停止搜索。