Lines Matching refs:preg
24 preg = new llvm_regex(); in Regex()
25 preg->re_endp = regex.end(); in Regex()
32 error = llvm_regcomp(preg, regex.data(), flags|REG_PEND); in Regex()
36 if (preg) { in ~Regex()
37 llvm_regfree(preg); in ~Regex()
38 delete preg; in ~Regex()
46 size_t len = llvm_regerror(error, preg, nullptr, 0); in isValid()
49 llvm_regerror(error, preg, &Error[0], len); in isValid()
56 return preg->re_nsub; in getNumMatches()
60 unsigned nmatch = Matches ? preg->re_nsub+1 : 0; in match()
68 int rc = llvm_regexec(preg, String.data(), nmatch, pm.data(), REG_STARTEND); in match()