Lines Matching defs:clone
290 RegularExpression *clone = new RegularExpression;
291 if (clone == NULL) {
296 clone->fMatcher = source->fPat->matcher(*status);
298 delete clone;
302 clone->fPat = source->fPat;
303 clone->fPatRefCount = source->fPatRefCount;
304 clone->fPatString = source->fPatString;
305 clone->fPatStringLen = source->fPatStringLen;
309 return (URegularExpression*)clone;
395 utext_close(&input); // reset() made a shallow clone, so we don't need this copy