Home | History | Annotate | Download | only in re2

Lines Matching defs:cc

6 // Tested by parse_test.cc
300 Regexp* Regexp::NewCharClass(CharClass* cc, ParseFlags flags) {
302 re->cc_ = cc;
368 CharClass* acc = a->cc();
369 CharClass* bcc = b->cc();
766 void CharClassBuilder::AddCharClass(CharClassBuilder *cc) {
767 for (iterator it = cc->begin(); it != cc->end(); ++it)
781 CharClassBuilder* cc = new CharClassBuilder;
783 cc->ranges_.insert(RuneRange(it->lo, it->hi));
784 cc->upper_ = upper_;
785 cc->lower_ = lower_;
786 cc->nrunes_ = nrunes_;
787 return cc;
865 CharClass* cc;
866 uint8* data = new uint8[sizeof *cc + maxranges*sizeof cc->ranges_[0]];
867 cc = reinterpret_cast<CharClass*>(data);
868 cc->ranges_ = reinterpret_cast<RuneRange*>(data + sizeof *cc);
869 cc->nranges_ = 0;
870 cc->folds_ascii_ = false;
871 cc->nrunes_ = 0;
872 return cc;
883 CharClass* cc = CharClass::New(nranges_+1);
884 cc->folds_ascii_ = folds_ascii_;
885 cc->nrunes_ = Runemax + 1 - nrunes_;
892 cc->ranges_[n++] = RuneRange(nextlo, it->lo - 1);
897 cc->ranges_[n++] = RuneRange(nextlo, Runemax);
898 cc->nranges_ = n;
899 return cc;
920 CharClass* cc = CharClass::New(ranges_.size());
923 cc->ranges_[n++] = *it;
924 cc->nranges_ = n;
926 cc->nrunes_ = nrunes_;
927 cc->folds_ascii_ = FoldsASCII();
928 return cc;