test/systemtests/parse_logs.cpp
// We are aware of c++11's std::regex, but it's not fully supported in gcc 4.8, which we're using.
// again, we do not want to bump our compiler requirements for a a testcase helper binary.

We are aware of c++11's std::regex, but it's not fully supported in gcc 4.8, which we're using.
again, we do not want to bump our compiler requirements for a a testcase helper binary.
We are aware of c ++ 11 ' s std :: regex but it ' s not fully supported in gcc 4 . 8 which we ' re using . again we do not want to bump our compiler requirements for a a testcase helper binary .
static bool str_starts_with(const std::string &subject, const std::string &prefix, std::string &suffix) {
	if (subject.substr(0, prefix.length()) == prefix) {
		suffix = subject.substr(prefix.length());
		return true;
	}
	suffix = "";
	return false;
}
static bool str_starts_with ( const std :: string & subject , const std :: string & prefix , std :: string & suffix ) { if ( subject . substr ( 0 , prefix . length ( ) ) == prefix ) { suffix = subject . substr ( prefix . length ( ) ) ; return true ; } suffix = " " ; return false ; }
We are aware of c++11's std::regex, but it's not fully supported in gcc 4.8, which we're using.
We are aware of c ++ 11 ' s std :: regex but it ' s not fully supported in gcc 4 . 8 which we ' re using .