18 BufferSearch(std::string_view searchTerm, std::string_view terminationChars, std::string_view giveUpTerm,
CallbackType &&callback);
19 void operator()(std::string_view buffer);
20 void operator()(
const std::string_view::value_type *buffer, std::size_t bufferSize);
21 template <std::
size_t bufferCapacity>
22 void operator()(std::shared_ptr<std::array<std::string_view::value_type, bufferCapacity>> buffer, std::size_t bufferSize);
26 const std::string_view m_searchTerm;
27 const std::string_view m_terminationChars;
28 const std::string_view m_terminationTerm;
29 const std::string_view m_giveUpTerm;
31 std::string_view::const_iterator m_searchTermIterator;
32 std::string_view::const_iterator m_giveUpTermIterator;
33 std::string_view::const_iterator m_terminationTermIterator;
BufferSearch(std::string_view searchTerm, std::string_view terminationChars, std::string_view giveUpTerm, CallbackType &&callback)
Constructs a new BufferSearch.