Searched refs:preg (Results 1 - 25 of 40) sorted by relevance

12

/freebsd-10.1-release/usr.bin/grep/regex/
H A Dfastmatch.c40 tre_fixncomp(fastmatch_t *preg, const char *regex, size_t n, int cflags) argument
52 ret = tre_compile_literal(preg, wregex, wlen, cflags);
57 return tre_compile_literal(preg, NULL, 0, cflags);
61 tre_fastncomp(fastmatch_t *preg, const char *regex, size_t n, int cflags) argument
74 ? tre_compile_literal(preg, wregex, wlen, cflags)
75 : tre_compile_fast(preg, wregex, wlen, cflags);
80 return tre_compile_literal(preg, NULL, 0, cflags);
85 tre_fixcomp(fastmatch_t *preg, const char *regex, int cflags) argument
87 return tre_fixncomp(preg, regex, regex ? strlen(regex) : 0, cflags);
91 tre_fastcomp(fastmatch_t *preg, cons argument
97 tre_fixwncomp(fastmatch_t *preg, const wchar_t *regex, size_t n, int cflags) argument
103 tre_fastwncomp(fastmatch_t *preg, const wchar_t *regex, size_t n, int cflags) argument
111 tre_fixwcomp(fastmatch_t *preg, const wchar_t *regex, int cflags) argument
117 tre_fastwcomp(fastmatch_t *preg, const wchar_t *regex, int cflags) argument
123 tre_fastfree(fastmatch_t *preg) argument
129 tre_fastnexec(const fastmatch_t *preg, const char *string, size_t len, size_t nmatch, regmatch_t pmatch[], int eflags) argument
143 tre_fastexec(const fastmatch_t *preg, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags) argument
150 tre_fastwnexec(const fastmatch_t *preg, const wchar_t *string, size_t len, size_t nmatch, regmatch_t pmatch[], int eflags) argument
164 tre_fastwexec(const fastmatch_t *preg, const wchar_t *string, size_t nmatch, regmatch_t pmatch[], int eflags) argument
[all...]
H A Dtre-fastmatch.h14 int tre_compile_literal(fastmatch_t *preg, const tre_char_t *regex,
16 int tre_compile_fast(fastmatch_t *preg, const tre_char_t *regex, size_t, int);
19 void tre_free_fast(fastmatch_t *preg);
H A Dfastmatch.h38 tre_fixcomp(fastmatch_t *preg, const char *regex, int cflags);
41 tre_fastcomp(fastmatch_t *preg, const char *regex, int cflags);
44 tre_fastexec(const fastmatch_t *preg, const char *string, size_t nmatch,
48 tre_fastfree(fastmatch_t *preg);
51 tre_fixwcomp(fastmatch_t *preg, const wchar_t *regex, int cflags);
54 tre_fastwcomp(fastmatch_t *preg, const wchar_t *regex, int cflags);
57 tre_fastwexec(const fastmatch_t *preg, const wchar_t *string,
63 tre_fixncomp(fastmatch_t *preg, const char *regex, size_t len, int cflags);
66 tre_fastncomp(fastmatch_t *preg, const char *regex, size_t len, int cflags);
69 tre_fastnexec(const fastmatch_t *preg, cons
[all...]
/freebsd-10.1-release/contrib/llvm/lib/Support/
H A Dregfree.c50 llvm_regfree(llvm_regex_t *preg) argument
54 if (preg->re_magic != MAGIC1) /* oops */
57 g = preg->re_g;
60 preg->re_magic = 0; /* mark it invalid */
H A Dregerror.c84 llvm_regerror(int errcode, const llvm_regex_t *preg, char *errbuf, size_t errbuf_size) argument
93 s = regatoi(preg, convbuf, sizeof convbuf);
123 regatoi(const llvm_regex_t *preg, char *localbuf, int localbufsize) argument
128 if (strcmp(r->name, preg->re_endp) == 0)
H A DRegex.cpp24 preg = new llvm_regex();
25 preg->re_endp = regex.end();
32 error = llvm_regcomp(preg, regex.data(), flags|REG_PEND);
36 llvm_regfree(preg);
37 delete preg;
44 size_t len = llvm_regerror(error, preg, NULL, 0);
47 llvm_regerror(error, preg, &Error[0], len);
54 return preg->re_nsub;
58 unsigned nmatch = Matches ? preg->re_nsub+1 : 0;
66 int rc = llvm_regexec(preg, Strin
[all...]
H A Dregexec.c141 llvm_regexec(const llvm_regex_t *preg, const char *string, size_t nmatch, argument
144 struct re_guts *g = preg->re_g;
151 if (preg->re_magic != MAGIC1 || g->magic != MAGIC2)
/freebsd-10.1-release/usr.bin/sed/
H A Dmisc.c59 strregerror(int errcode, regex_t *preg) argument
66 s = regerror(errcode, preg, NULL, 0);
69 (void)regerror(errcode, preg, oe, s);
/freebsd-10.1-release/contrib/nvi/regex/
H A Dregfree.c59 regfree(regex_t *preg) argument
63 if (preg->re_magic != MAGIC1) /* oops */
66 g = preg->re_g;
69 preg->re_magic = 0; /* mark it invalid */
H A Dregerror.c62 static char *regatoi __P((const regex_t *preg, char *localbuf));
118 regerror(int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size) argument
127 s = regatoi(preg, convbuf);
155 == static char *regatoi(const regex_t *preg, char *localbuf);
158 regatoi(const regex_t *preg, char *localbuf) argument
166 if (strcmp(r->name, preg->re_endp) == 0)
H A Dregexec.c160 regexec(const regex_t *preg, const RCHAR_T *string, size_t nmatch, regmatch_t *pmatch, int eflags) argument
162 register struct re_guts *g = preg->re_g;
169 if (preg->re_magic != MAGIC1 || g->magic != MAGIC2)
/freebsd-10.1-release/contrib/ncurses/form/
H A Dfty_regex.c106 RegExp_Arg *preg; local
108 preg = typeMalloc(RegExp_Arg, 1);
110 if (preg)
112 T((T_CREATE("RegExp_Arg %p"), preg));
113 if (((preg->pRegExp = typeMalloc(regex_t, 1)) != 0)
114 && !regcomp(preg->pRegExp, rx,
117 T((T_CREATE("regex_t %p"), preg->pRegExp));
118 preg->refCount = typeMalloc(unsigned long, 1);
120 *(preg->refCount) = 1;
124 if (preg
[all...]
/freebsd-10.1-release/contrib/libgnuregex/
H A Dregex.c31 # define regfree(preg) __regfree (preg)
33 # define regcomp(preg, pattern, cflags) __regcomp (preg, pattern, cflags)
34 # define regerror(errcode, preg, errbuf, errbuf_size) \
35 __regerror(errcode, preg, errbuf, errbuf_size)
H A Dregcomp.c20 static reg_errcode_t re_compile_internal (regex_t *preg, const char * pattern,
29 static void free_workarea_compile (regex_t *preg);
34 static reg_errcode_t analyze (regex_t *preg);
43 static bin_tree_t *lower_subexp (reg_errcode_t *err, regex_t *preg,
59 static bin_tree_t *parse (re_string_t *regexp, regex_t *preg,
61 static bin_tree_t *parse_reg_exp (re_string_t *regexp, regex_t *preg,
64 static bin_tree_t *parse_branch (re_string_t *regexp, regex_t *preg,
67 static bin_tree_t *parse_expression (re_string_t *regexp, regex_t *preg,
70 static bin_tree_t *parse_sub_exp (re_string_t *regexp, regex_t *preg,
469 regcomp (preg, patter
729 re_compile_internal(regex_t *preg, const char * pattern, size_t length, reg_syntax_t syntax) argument
971 free_workarea_compile(regex_t *preg) argument
1146 analyze(regex_t *preg) argument
1307 regex_t *preg = (regex_t *) extra; local
1327 lower_subexp(reg_errcode_t *err, regex_t *preg, bin_tree_t *node) argument
2104 parse(re_string_t *regexp, regex_t *preg, reg_syntax_t syntax, reg_errcode_t *err) argument
2138 parse_reg_exp(re_string_t *regexp, regex_t *preg, re_token_t *token, reg_syntax_t syntax, int nest, reg_errcode_t *err) argument
2179 parse_branch(re_string_t *regexp, regex_t *preg, re_token_t *token, reg_syntax_t syntax, int nest, reg_errcode_t *err) argument
2224 parse_expression(re_string_t *regexp, regex_t *preg, re_token_t *token, reg_syntax_t syntax, int nest, reg_errcode_t *err) argument
2440 parse_sub_exp(re_string_t *regexp, regex_t *preg, re_token_t *token, reg_syntax_t syntax, int nest, reg_errcode_t *err) argument
[all...]
/freebsd-10.1-release/lib/libc/regex/
H A Dregfree.c58 regfree(regex_t *preg) argument
63 if (preg->re_magic != MAGIC1) /* oops */
66 g = preg->re_g;
69 preg->re_magic = 0; /* mark it invalid */
H A Dregerror.c57 static char *regatoi(const regex_t *preg, char *localbuf);
116 const regex_t * __restrict preg,
127 s = regatoi(preg, convbuf);
159 == static char *regatoi(const regex_t *preg, char *localbuf);
162 regatoi(const regex_t *preg, char *localbuf) argument
167 if (strcmp(r->name, preg->re_endp) == 0)
115 regerror(int errcode, const regex_t * __restrict preg, char * __restrict errbuf, size_t errbuf_size) argument
H A Dregexec.c207 regexec(const regex_t * __restrict preg, argument
213 struct re_guts *g = preg->re_g;
220 if (preg->re_magic != MAGIC1 || g->magic != MAGIC2)
/freebsd-10.1-release/contrib/flex/
H A Dregex.c46 * @param preg Same as for regcomp().
50 void flex_regcomp(regex_t *preg, const char *regex, int cflags) argument
54 memset (preg, 0, sizeof (regex_t));
56 if ((err = regcomp (preg, regex, cflags)) != 0) {
66 regerror (err, preg, rxerr, errbuf_sz);
/freebsd-10.1-release/contrib/llvm/include/llvm/Support/
H A DRegex.h85 struct llvm_regex *preg; member in class:llvm::Regex
/freebsd-10.1-release/contrib/atf/atf-c++/detail/
H A Dtext.cpp66 ::regex_t preg; local
68 if (::regcomp(&preg, regex.c_str(), REG_EXTENDED) != 0)
72 const int res = ::regexec(&preg, str.c_str(), 0, NULL, 0);
73 regfree(&preg);
/freebsd-10.1-release/contrib/binutils/include/opcode/
H A Dcr16.h68 preg; typedef in typeref:enum:__anon586
281 preg pr;
283 preg prp;
355 preg preg_val;
/freebsd-10.1-release/contrib/atf/atf-c/
H A Dutils.c59 regex_t preg; local
62 ATF_REQUIRE(regcomp(&preg, regex, REG_EXTENDED) == 0);
64 res = regexec(&preg, str, 0, NULL, 0);
67 regfree(&preg);
/freebsd-10.1-release/sys/arm/xscale/i80321/
H A Di80321.c87 uint32_t preg; local
209 preg = bus_space_read_4(sc->sc_st, sc->sc_atu_sh,
211 preg |= PCIM_CMD_MEMEN |
215 PCIR_COMMAND, preg);
/freebsd-10.1-release/contrib/llvm/lib/CodeGen/
H A DRegAllocPBQP.cpp182 assert(isPRegOption(vreg, option) && "Not a preg option.");
201 // Collect the set of preg intervals, record that they're used in the MF.
225 unsigned preg = rawOrder[i]; local
226 if (mri->isReserved(preg))
229 // vregLI crosses a regmask operand that clobbers preg.
230 if (!regMaskOverlaps.empty() && !regMaskOverlaps.test(preg))
235 for (MCRegUnitIterator Units(preg, tri); Units.isValid(); ++Units) {
244 // preg is usable for this virtual register.
245 vrAllowed.push_back(preg);
485 unsigned preg local
[all...]
/freebsd-10.1-release/sys/dev/sound/isa/
H A Dess.c688 int preg = 0, rreg = 0, l, r; local
694 preg = 0x36;
699 preg = 0x14;
704 preg = 0x3e;
709 preg = 0x1a;
714 preg = 0x3a;
719 preg = 0x38;
724 preg = 0x3c;
737 if (preg)
738 ess_setmixer(sc, preg, (
[all...]

Completed in 269 milliseconds

12