MCPcopy Create free account
hub / github.com/apache/singa / IsValidEscape

Function IsValidEscape

test/gtest/gtest-all.cc:8432–8434  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

8430
8431// Returns true iff "\\c" is a supported escape sequence.
8432bool IsValidEscape(char c) {
8433 return (IsAsciiPunct(c) || IsInSet(c, "dDfnrsStvwW"));
8434}
8435
8436// Returns true iff the given atom (specified by escaped and pattern)
8437// 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