ReadHelper predicate matching an arbitrary string. More...
#include <senf/Scheduler/ReadHelper.hh>
Public Member Functions | |
ReadUntil (std::string const &target) | |
std::string::size_type | operator() (std::string const &data) |
Public Attributes | |
std::string | target |
ReadHelper predicate matching an arbitrary string.
This predicate will terminate the read when the data read matches a given fixed string. All data up to and including the string matched is considered to be part of the data() portion, everything after the matched string is placed into the tail().
Definition at line 152 of file ReadHelper.hh.
senf::ReadUntil::ReadUntil | ( | std::string const & | target | ) |
std::string::size_type senf::ReadUntil::operator() | ( | std::string const & | data | ) |
std::string senf::ReadUntil::target |
Definition at line 156 of file ReadHelper.hh.