Home | History | Annotate | Download | only in re2

Lines Matching defs:first

708 // Removes the first n leading runes from the beginning of re.
711 // Chase down concats to find first string.
754 // Delete first element of concat.
854 // Nothing to do - first iteration.
881 // just the first piece of each concatenation,
885 Regexp* first = NULL;
890 // Invariant: sub[start:i] consists of regexps that all begin with first.
895 if (first != NULL && Regexp::Equal(first, first_i)) {
901 // sub[start:i] all begin with first but sub[i] does not.
905 // Nothing to do - first iteration.
912 x[0] = first->Incref();
924 first = first_i;
995 // first marker, into a new op node (op == kRegexpAlternate
1307 // after the first non-hex digit. We require only hex digits,
1685 bool first = true; // ] is okay as first char in class
1686 while (s->size() > 0 && ((*s)[0] != ']' || first)) {
1687 // - is only okay unescaped as first or last in class.
1689 if ((*s)[0] == '-' && !first && !(flags_&PerlX) &&
1704 first = false;
1806 // Check for named captures, first introduced in Python's regexp library.