MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / IsValidEscape

Function IsValidEscape

test/common/gtest/gtest.cpp:9263–9265  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

9261
9262// Returns true iff "\\c" is a supported escape sequence.
9263bool IsValidEscape(char c) {
9264 return (IsAsciiPunct(c) || IsInSet(c, "dDfnrsStvwW"));
9265}
9266
9267// Returns true iff the given atom (specified by escaped and pattern)
9268// 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