Foxit PDF SDK
foxit::fts::SearchCallback类 参考abstract

Public 成员函数

virtual void Release ()=0
 用于释放当前回调对象本身的回调函数。 更多...
 
virtual int RetrieveSearchResult (const wchar_t *file_path, int page_index, const WString &match_result, int match_start_text_index, int match_end_text_index, const WString &sentence, int match_sentence_start_text_index, int match_sentence_end_text_index)=0
 用于检索搜索结果的回调函数。 更多...
 

详细描述

此类表示一个回调对象,用于在搜索过程中通过函数 FullTextSearch::SearchOf 检索搜索结果。 此类中的所有纯虚函数都用作回调函数,应由用户实现。

参见
FullTextSearch

成员函数说明

◆ Release()

virtual void foxit::fts::SearchCallback::Release ( )
pure virtual

用于释放当前回调对象本身的回调函数。

返回
无。

◆ RetrieveSearchResult()

virtual int foxit::fts::SearchCallback::RetrieveSearchResult ( const wchar_t *  file_path,
int  page_index,
const WString match_result,
int  match_start_text_index,
int  match_end_text_index,
const WString sentence,
int  match_sentence_start_text_index,
int  match_sentence_end_text_index 
)
pure virtual

用于检索搜索结果的回调函数。

参数
[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句子中结束字符的索引。
返回
如果返回非零值,搜索引擎将停止搜索。