Home | History | Annotate | Download | only in regex

Lines Matching refs:parse

52  * parse structure, passed up and down to avoid global variables and
55 struct parse {
69 static void p_ere(struct parse *, int);
70 static void p_ere_exp(struct parse *);
71 static void p_str(struct parse *);
72 static void p_bre(struct parse *, int, int);
73 static int p_simp_re(struct parse *, int);
74 static int p_count(struct parse *);
75 static void p_bracket(struct parse *);
76 static void p_b_term(struct parse *, cset *);
77 static void p_b_cclass(struct parse *, cset *);
78 static void p_b_eclass(struct parse *, cset *);
79 static char p_b_symbol(struct parse *);
80 static char p_b_coll_elem(struct parse *, int);
82 static void bothcases(struct parse *, int);
83 static void ordinary(struct parse *, int);
84 static void nonnewline(struct parse *);
85 static void repeat(struct parse *, sopno, int, int);
86 static int seterr(struct parse *, int);
87 static cset *allocset(struct parse *);
88 static void freeset(struct parse *, cset *);
89 static int freezeset(struct parse *, cset *);
90 static int firstch(struct parse *, cset *);
91 static int nch(struct parse *, cset *);
92 static void mcadd(struct parse *, cset *, const char *);
93 static void mcinvert(struct parse *, cset *);
94 static void mccase(struct parse *, cset *);
97 static void categorize(struct parse *, struct re_guts *);
98 static sopno dupl(struct parse *, sopno, sopno);
99 static void doemit(struct parse *, sop, size_t);
100 static void doinsert(struct parse *, sop, size_t, sopno);
101 static void dofwd(struct parse *, sopno, sop);
102 static void enlarge(struct parse *, sopno);
103 static void stripsnug(struct parse *, struct re_guts *);
104 static void findmust(struct parse *, struct re_guts *);
105 static sopno pluscount(struct parse *, struct re_guts *);
110 * macros for use with parse structure
111 * BEWARE: these know that the parse structure is named `p' !!!
151 struct parse pa;
153 struct parse *p = &pa;
249 p_ere(struct parse *p, int stop) /* character this ERE should end at */
289 - p_ere_exp - parse one subERE, an atom possibly followed by a repetition op
292 p_ere_exp(struct parse *p)
439 p_str(struct parse *p)
457 p_bre(struct parse *p,
485 - p_simp_re - parse a simple RE, an atom possibly followed by a repetition
488 p_simp_re(struct parse *p,
601 - p_count - parse a repetition count
604 p_count(struct parse *p)
619 - p_bracket - parse a bracketed character list
625 p_bracket(struct parse *p)
701 - p_b_term - parse one term of a bracketed character list
704 p_b_term(struct parse *p, cset *cs)
764 - p_b_cclass - parse a character-class name and deal with it
767 p_b_cclass(struct parse *p, cset *cs)
795 - p_b_eclass - parse an equivalence-class name and deal with it
800 p_b_eclass(struct parse *p, cset *cs)
809 - p_b_symbol - parse a character or [..]ed multicharacter collating symbol
812 p_b_symbol(struct parse *p)
827 - p_b_coll_elem - parse a collating-element name and look it up
830 p_b_coll_elem(struct parse *p,
875 bothcases(struct parse *p, int ch)
898 ordinary(struct parse *p, int ch)
917 nonnewline(struct parse *p)
939 repeat(struct parse *p,
1009 seterr(struct parse *p, int e)
1022 allocset(struct parse *p)
1081 freeset(struct parse *p, cset *cs)
1103 freezeset(struct parse *p, cset *cs)
1134 firstch(struct parse *p, cset *cs)
1150 nch(struct parse *p, cset *cs)
1166 mcadd( struct parse *p, cset *cs, const char *cp)
1193 mcinvert(struct parse *p, cset *cs)
1206 mccase(struct parse *p, cset *cs)
1250 categorize(struct parse *p, struct re_guts *g)
1275 dupl(struct parse *p,
1301 doemit(struct parse *p, sop op, size_t opnd)
1323 doinsert(struct parse *p, sop op, size_t opnd, sopno pos)
1358 dofwd(struct parse *p, sopno pos, sop value)
1372 enlarge(struct parse *p, sopno size)
1392 parse *p, struct re_guts *g)
1412 findmust(struct parse *p, struct re_guts *g)
1490 pluscount(struct parse *p, struct re_guts *g)