Lines Matching refs:patBuf
127 UChar *patBuf = (UChar *)uprv_malloc(sizeof(UChar)*(actualPatLen+1)); in uregex_open() local
128 if (re == NULL || refC == NULL || patBuf == NULL) { in uregex_open()
132 uprv_free(patBuf); in uregex_open()
143 re->fPatString = patBuf; in uregex_open()
145 u_memcpy(patBuf, pattern, actualPatLen); in uregex_open()
146 patBuf[actualPatLen] = 0; in uregex_open()
149 utext_openUChars(&patText, patBuf, patternLength, status); in uregex_open()
211 UChar *patBuf = (UChar *)uprv_malloc(sizeof(UChar)*(pattern16Length+1)); in uregex_openUText() local
212 if (re == NULL || refC == NULL || patBuf == NULL) { in uregex_openUText()
216 uprv_free(patBuf); in uregex_openUText()
227 re->fPatString = patBuf; in uregex_openUText()
229 utext_extract(pattern, 0, patternNativeLength, patBuf, pattern16Length+1, status); in uregex_openUText()
232 utext_openUChars(&patText, patBuf, pattern16Length, status); in uregex_openUText()