MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / IsValidEscape

Function IsValidEscape

rtpose_wrapper/src/gtest/gtest-all.cpp:7998–8000  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

7996
7997// Returns true iff "\\c" is a supported escape sequence.
7998bool IsValidEscape(char c) {
7999 return (IsAsciiPunct(c) || IsInSet(c, "dDfnrsStvwW"));
8000}
8001
8002// Returns true iff the given atom (specified by escaped and pattern)
8003// 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