Returns true iff "\\c" is a supported escape sequence.
| 9261 | |
| 9262 | // Returns true iff "\\c" is a supported escape sequence. |
| 9263 | bool 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. |
no test coverage detected