11 #include <boost/regex.hpp>
30 static constexpr std::size_t
35 return std::numeric_limits< std::size_t >::max();
44 bool is_case_sensative )
46 compiled_regex_t::flag_type regex_flags = boost::regex::ECMAScript;
48 if( !is_case_sensative )
50 regex_flags |= boost::regex::icase;
63 boost::cmatch matches;
67 target_path.data() + target_path.size(),
71 match_results.reserve( matches.size() );
76 std::back_inserter( match_results ),
77 [ begin = target_path.data() ](
const auto & m ){
78 return matched_item_descriptor_t{ m.first - begin, m.second - begin };