22 #pragma GCC diagnostic push
23 #pragma GCC diagnostic ignored "-Wextra-semi"
24 #pragma GCC diagnostic ignored "-Wsuggest-override"
25 #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
27 #pragma clang diagnostic push
28 #pragma clang diagnostic ignored "-Wsuggest-destructor-override"
32 #pragma clang diagnostic pop
34 #pragma GCC diagnostic pop
39 namespace sword {
class SWKey; }
50 using Results = std::vector<ModuleSearchResult>;
60 sword::ListKey scope);
66 QString
const & searchedText,
67 bool plainSearchedText =
false);
QList< CSwordModuleInfo const * > BtConstModuleList
QDataStream & operator<<(QDataStream &out, const CSwordModuleSearch::SearchType &searchType)
QDataStream & operator>>(QDataStream &in, CSwordModuleSearch::SearchType &searchType)
QString prepareSearchText(QString const &orig, SearchType const searchType)
QString highlightSearchedText(QString const &content, QString const &searchedText, bool plainSearchedText)
std::vector< std::shared_ptr< sword::SWKey const > > ModuleResultList
Results search(QString const &searchText, BtConstModuleList const &modules, sword::ListKey scope)
std::vector< ModuleSearchResult > Results
CSwordModuleInfo const * module