rsked/vlcplayer.cc
/// Look for any of the known error strings from the (English language)
/// vlc cli response in string resp. Return true iff an error id detected.
///
Look for any of the known error strings from the (English language)
vlc cli response in string resp. Return true iff an error id detected.
Look for any of the known error strings from the ( English language ) vlc cli response in string resp . Return true iff an error id detected .
static bool detect_vlc_error( const std::string &resp )
{
    static boost::regex
        err_regex(R"*( ^ [E|e]rror | (filesystem|access) \s stream \s error )*",
                  boost::regex::mod_x);
    boost::match_results<std::string::const_iterator> what;
    boost::match_flag_type flags = boost::match_default;
    return regex_search( resp.begin(), resp.end(), what, err_regex, flags );
}
static bool detect_vlc_error ( const std :: string & resp ) { static boost :: regex err_regex ( R" * (  ^ [E|e]rror | (filesystem|access) \s stream \s error  ) * " , boost :: regex :: mod_x ) ; boost :: match_results < std :: string :: const_iterator > what ; boost :: match_flag_type flags = boost :: match_default ; return regex_search ( resp . begin ( ) , resp . end ( ) , what , err_regex , flags ) ; }
Look for any of the known error strings from the (English language)
vlc cli response in string resp.
Look for any of the known error strings from the ( English language ) vlc cli response in string resp .