MCPcopy Create free account
hub / github.com/cucumber/cucumber-cpp / escapeCString

Method escapeCString

src/CukeCommands.cpp:61–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61const std::string CukeCommands::escapeCString(const std::string str) const {
62 return regex_replace(
63 str,
64 std::regex("[\"\\\\]"),
65 "\\\\&",
66 std::regex_constants::match_default | std::regex_constants::format_sed
67 );
68}
69
70MatchResult CukeCommands::stepMatches(const std::string description) const {
71 return StepManager::stepMatches(description);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected