Lines Matching refs:re
85 static UBool validateRE(const RegularExpression *re, UBool requiresText, UErrorCode *status) {
89 if (re == NULL || re->fMagic != REXP_MAGIC) {
93 // !!! Not sure how to update this with the new UText backing, which is stored in re->fMatcher anyway
94 if (requiresText && re->fText == NULL && !re->fOwnsText) {
125 RegularExpression *re = new RegularExpression;
128 if (re == NULL || refC == NULL || patBuf == NULL) {
130 delete re;
135 re->fPatRefCount = refC;
136 *re->fPatRefCount = 1;
143 re->fPatString = patBuf;
144 re->fPatStringLen = patternLength;
155 re->fPat = RegexPattern::compile(&patText, flags, *pe, *status);
157 re->fPat = RegexPattern::compile(&patText, flags, *status);
168 re->fMatcher = re->fPat->matcher(*status);
170 return (URegularExpression*)re;
174 delete re;
205 RegularExpression *re = new RegularExpression;
212 if (re == NULL || refC == NULL || patBuf == NULL) {
214 delete re;
219 re->fPatRefCount = refC;
220 *re->fPatRefCount = 1;
227 re->fPatString = patBuf;
228 re->fPatStringLen = pattern16Length;
238 re->fPat = RegexPattern::compile(&patText, flags, *pe, *status);
240 re->fPat = RegexPattern::compile(&patText, flags, *status);
251 re->fMatcher = re->fPat->matcher(*status);
253 return (URegularExpression*)re;
257 delete re;
269 RegularExpression *re = (RegularExpression*)re2;
271 if (validateRE(re, FALSE, &status) == FALSE) {
274 delete re;