Lines Matching defs:escaped
764 // Returns true if and only if the given atom (specified by escaped and
766 bool AtomMatchesChar(bool escaped, char pattern_char, char ch) {
767 if (escaped) { // "\\p" where p is pattern_char.
861 // expression. The regex atom is defined as c if escaped is false,
867 bool MatchRepetitionAndRegexAtHead(bool escaped, char c, char repeat,
883 if (str[i] == '\0' || !AtomMatchesChar(escaped, c, str[i])) return false;
900 const bool escaped = *regex == '\\';
901 if (escaped) ++regex;
906 return MatchRepetitionAndRegexAtHead(escaped, regex[0], regex[1], regex + 2,
912 return (*str != '\0') && AtomMatchesChar(escaped, *regex, *str) &&