Foxit PDF SDK
<FSSearchCallback>协议 参考

继承自 <NSObject> .

构造函数

(int) - retrieveSearchResult:page_index:match_result:match_start_text_index:match_end_text_index:sentence:match_sentence_start_text_index:match_sentence_end_text_index:
 A callback function used to retrieve the searching result. 更多...
 

详细描述

This class represents a callback object to retrieve the searching result during the searching progress by function FSFullTextSearch::searchOf:rank_mode:callback:. All the pure virtual functions in this class are used as callback functions and should be implemented by user.

参见
FSFullTextSearch

函数文档

◆ 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

A callback function used to retrieve the searching result.

参数
[in]file_pathA file path that specifies in which file the matched result is found.
[in]page_indexA page index that specifies in which page of the file the matched result is found.
[in]match_resultA string that represents the matched result.
[in]match_start_text_indexThe index of start character in the matched result.
[in]match_end_text_indexThe index of end character in the matched result.
[in]sentenceThe sentence that contains current match result.
[in]match_sentence_start_text_indexThe index of start character in the sentence.
[in]match_sentence_end_text_indexThe index of end character in the sentence.
返回
If non-zero is returned, the search engine will stop searching.