MCPcopy Create free account
hub / github.com/catchorg/Catch2 / needsEscape

Function needsEscape

extras/catch_amalgamated.cpp:4684–4687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4682
4683 namespace {
4684 static bool needsEscape( char c ) {
4685 return c == '"' || c == '\\' || c == '\b' || c == '\f' ||
4686 c == '\n' || c == '\r' || c == '\t';
4687 }
4688
4689 static Catch::StringRef makeEscapeStringRef( char c ) {
4690 if ( c == '"' ) {

Callers 1

writeImplMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected