9 #if __has_include(<experimental/functional>)
10 #include <experimental/functional>
16 static void findStringInFile(
const QString& filepath, std::string_view req, T onSuccess)
19 if(f.open(QIODevice::ReadOnly))
21 unsigned char* data = f.map(0, f.size());
23 const char* cbegin =
reinterpret_cast<char*
>(data);
24 const char* cend = cbegin + f.size();
26 #if defined(__cpp_lib_boyer_moore_searcher)
28 = std::search(cbegin, cend, std::boyer_moore_searcher(req.begin(), req.end()));
29 #elif __has_include(<experimental/functional>)
30 auto it = std::search(
31 cbegin, cend, std::experimental::boyer_moore_searcher(req.begin(), req.end()));
33 auto it = std::search(cbegin, cend, req.begin(), req.end());
Base toolkit upon which the software is built.
Definition: Application.cpp:90