Home
last modified time | relevance | path

Searched refs:subcopy (Results 1 – 2 of 2) sorted by relevance

/third_party/re2/re2/
Dregexp.cc246 Regexp** subcopy = NULL; in ConcatOrAlternate() local
249 subcopy = new Regexp*[nsub]; in ConcatOrAlternate()
250 memmove(subcopy, sub, nsub * sizeof sub[0]); in ConcatOrAlternate()
251 sub = subcopy; in ConcatOrAlternate()
255 delete[] subcopy; in ConcatOrAlternate()
272 delete[] subcopy; in ConcatOrAlternate()
282 delete[] subcopy; in ConcatOrAlternate()
Dcompile.cc1021 PODArray<Regexp*> subcopy(re->nsub()); in IsAnchorStart() local
1022 subcopy[0] = sub; // already have reference in IsAnchorStart()
1024 subcopy[i] = re->sub()[i]->Incref(); in IsAnchorStart()
1025 *pre = Regexp::Concat(subcopy.data(), re->nsub(), re->parse_flags()); in IsAnchorStart()
1068 PODArray<Regexp*> subcopy(re->nsub()); in IsAnchorEnd() local
1069 subcopy[re->nsub() - 1] = sub; // already have reference in IsAnchorEnd()
1071 subcopy[i] = re->sub()[i]->Incref(); in IsAnchorEnd()
1072 *pre = Regexp::Concat(subcopy.data(), re->nsub(), re->parse_flags()); in IsAnchorEnd()