| 50 | } |
| 51 | |
| 52 | const std::string CukeCommands::escapeRegex(const std::string reg) const { |
| 53 | return regex_replace( |
| 54 | reg, |
| 55 | std::regex("[\\|\\(\\)\\[\\]\\{\\}\\^\\$\\*\\+\\?\\.\\\\]"), |
| 56 | "\\\\&", |
| 57 | std::regex_constants::match_default | std::regex_constants::format_sed |
| 58 | ); |
| 59 | } |
| 60 | |
| 61 | const std::string CukeCommands::escapeCString(const std::string str) const { |
| 62 | return regex_replace( |
nothing calls this directly
no outgoing calls
no test coverage detected