491 std::string regex_string{
glob};
493 regex_string = std::regex_replace(regex_string, std::regex(
"\\\\"),
"\\\\");
494 regex_string = std::regex_replace(regex_string, std::regex(
"\\^"),
"\\^");
495 regex_string = std::regex_replace(regex_string, std::regex(
"\\."),
"\\.");
496 regex_string = std::regex_replace(regex_string, std::regex(
"\\$"),
"\\$");
497 regex_string = std::regex_replace(regex_string, std::regex(
"\\|"),
"\\|");
498 regex_string = std::regex_replace(regex_string, std::regex(
"\\("),
"\\(");
499 regex_string = std::regex_replace(regex_string, std::regex(
"\\)"),
"\\)");
500 regex_string = std::regex_replace(regex_string, std::regex(
"\\{"),
"\\{");
501 regex_string = std::regex_replace(regex_string, std::regex(
"\\{"),
"\\}");
502 regex_string = std::regex_replace(regex_string, std::regex(
"\\["),
"\\[");
503 regex_string = std::regex_replace(regex_string, std::regex(
"\\]"),
"\\]");
504 regex_string = std::regex_replace(regex_string, std::regex(
"\\+"),
"\\+");
505 regex_string = std::regex_replace(regex_string, std::regex(
"\\/"),
"\\/");
507 regex_string = std::regex_replace(regex_string, std::regex(
"\\?"),
".");
508 regex_string = std::regex_replace(regex_string, std::regex(
"\\*"),
".*");
512 case_sensitive ? std::regex_constants::ECMAScript : std::regex_constants::icase);
std::vector< std::string > glob(const std::string &pattern)