Home
last modified time | relevance | path

Searched refs:nrunes_ (Results 1 – 3 of 3) sorted by relevance

/external/regex-re2/re2/
Dregexp.cc161 if (nrunes_ == 0) { in AddRuneToString()
164 } else if (nrunes_ >= 8 && (nrunes_ & (nrunes_ - 1)) == 0) { in AddRuneToString()
167 runes_ = new Rune[nrunes_ * 2]; in AddRuneToString()
168 for (int i = 0; i < nrunes_; i++) in AddRuneToString()
173 runes_[nrunes_++] = r; in AddRuneToString()
644 prefix->resize(re->nrunes_); in RequiredPrefix()
645 for (int j = 0; j < re->nrunes_; j++) in RequiredPrefix()
650 prefix->resize(re->nrunes_ * UTFmax); in RequiredPrefix()
652 for (int j = 0; j < re->nrunes_; j++) { in RequiredPrefix()
694 nrunes_ = 0; in CharClassBuilder()
[all …]
Dregexp.h245 int size() { return nrunes_; } in size()
246 bool empty() { return nrunes_ == 0; } in empty()
247 bool full() { return nrunes_ == Runemax+1; } in full()
261 int nrunes_; variable
333 int nrunes() { DCHECK_EQ(op_, kRegexpLiteralString); return nrunes_; } in nrunes()
556 int nrunes_; member
585 int size() { return nrunes_; } in size()
586 bool empty() { return nrunes_ == 0; } in empty()
587 bool full() { return nrunes_ == Runemax+1; } in full()
603 int nrunes_; variable
Dparse.cc700 *nrune = re->nrunes_; in LeadingString()
729 if (n >= re->nrunes_) { in RemoveLeadingString()
732 re->nrunes_ = 0; in RemoveLeadingString()
734 } else if (n == re->nrunes_ - 1) { in RemoveLeadingString()
735 Rune rune = re->runes_[re->nrunes_ - 1]; in RemoveLeadingString()
738 re->nrunes_ = 0; in RemoveLeadingString()
742 re->nrunes_ -= n; in RemoveLeadingString()
743 memmove(re->runes_, re->runes_ + n, re->nrunes_ * sizeof re->runes_[0]); in RemoveLeadingString()
1088 re2->nrunes_ = 0; in MaybeConcatString()
1097 for (int i = 0; i < re1->nrunes_; i++) in MaybeConcatString()
[all …]