documentation 간단한 일치 기능을 찾을 수 있습니다 : 그것은 공백에 일치하는이 경우 (변경 표준을 :: isspace와 당신이 원하는에 따라)에서
std::pair<iterator, bool>
match_whitespace(iterator begin, iterator end)
{
iterator i = begin;
while (i != end)
if (std::isspace(*i++))
return std::make_pair(i, true);
return std::make_pair(i, false);
}
합니다.
// Function used for error handling
void handler(const boost::system::error_code& e, std::size_t size)
{
// Do something
}
// Example of call, it reads from inputStream to outputStreamBuff
// until the specified delimiter (";") is found
boost::asio::async_read_until(inputStream, outputStreamBuff,
match_char(';'), handler);
테스트 설정에 대한 자세한 내용 : boost_1-59-0 –