MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / IsValidEscape

Function IsValidEscape

tests/gtest/gtest-all.cc:10492–10494  ·  view source on GitHub ↗

Returns true iff "\\c" is a supported escape sequence.

Source from the content-addressed store, hash-verified

10490
10491// Returns true iff "\\c" is a supported escape sequence.
10492bool IsValidEscape(char c) {
10493 return (IsAsciiPunct(c) || IsInSet(c, "dDfnrsStvwW"));
10494}
10495
10496// Returns true iff the given atom (specified by escaped and pattern)
10497// matches ch. The result is undefined if the atom is invalid.

Callers 1

ValidateRegexFunction · 0.85

Calls 2

IsAsciiPunctFunction · 0.85
IsInSetFunction · 0.85

Tested by

no test coverage detected