Lines Matching refs:anc

4003   OptAncInfo anc;  member
4013 OptAncInfo anc; member
4022 OptAncInfo anc; member
4158 clear_opt_anc_info(OptAncInfo* anc) in clear_opt_anc_info() argument
4160 anc->left_anchor = 0; in clear_opt_anc_info()
4161 anc->right_anchor = 0; in clear_opt_anc_info()
4191 is_left_anchor(int anc) in is_left_anchor() argument
4193 if (anc == ANCHOR_END_BUF || anc == ANCHOR_SEMI_END_BUF || in is_left_anchor()
4194 anc == ANCHOR_END_LINE || anc == ANCHOR_PREC_READ || in is_left_anchor()
4195 anc == ANCHOR_PREC_READ_NOT) in is_left_anchor()
4202 is_set_opt_anc_info(OptAncInfo* to, int anc) in is_set_opt_anc_info() argument
4204 if ((to->left_anchor & anc) != 0) return 1; in is_set_opt_anc_info()
4206 return ((to->right_anchor & anc) != 0 ? 1 : 0); in is_set_opt_anc_info()
4210 add_opt_anc_info(OptAncInfo* to, int anc) in add_opt_anc_info() argument
4212 if (is_left_anchor(anc)) in add_opt_anc_info()
4213 to->left_anchor |= anc; in add_opt_anc_info()
4215 to->right_anchor |= anc; in add_opt_anc_info()
4219 remove_opt_anc_info(OptAncInfo* to, int anc) in remove_opt_anc_info() argument
4221 if (is_left_anchor(anc)) in remove_opt_anc_info()
4222 to->left_anchor &= ~anc; in remove_opt_anc_info()
4224 to->right_anchor &= ~anc; in remove_opt_anc_info()
4244 clear_opt_anc_info(&ex->anc); in clear_opt_exact_info()
4282 concat_opt_anc_info(&tanc, &to->anc, &add->anc, 1, 1); in concat_opt_exact_info()
4284 copy_opt_anc_info(&to->anc, &tanc); in concat_opt_exact_info()
4336 alt_merge_opt_anc_info(&to->anc, &add->anc); in alt_merge_opt_exact_info()
4337 if (! to->reach_end) to->anc.right_anchor = 0; in alt_merge_opt_exact_info()
4492 alt_merge_opt_anc_info(&to->anc, &add->anc); in alt_merge_opt_map_info()
4507 clear_opt_anc_info(&opt->anc); in clear_node_opt_info()
4526 concat_opt_anc_info(&tanc, &to->anc, &add->anc, to->len.max, add->len.max); in concat_left_node_opt_info()
4527 copy_opt_anc_info(&to->anc, &tanc); in concat_left_node_opt_info()
4530 concat_opt_anc_info(&tanc, &to->anc, &add->exb.anc, in concat_left_node_opt_info()
4532 copy_opt_anc_info(&add->exb.anc, &tanc); in concat_left_node_opt_info()
4537 add->map.anc.left_anchor |= to->anc.left_anchor; in concat_left_node_opt_info()
4582 alt_merge_opt_anc_info (&to->anc, &add->anc); in alt_merge_node_opt_info()
4758 add_opt_anc_info(&opt->anc, NANCHOR(node)->type); in optimize_node_left()
4841 add_opt_anc_info(&opt->anc, ANCHOR_ANYCHAR_STAR_ML); in optimize_node_left()
4843 add_opt_anc_info(&opt->anc, ANCHOR_ANYCHAR_STAR); in optimize_node_left()
4912 if (is_set_opt_anc_info(&opt->anc, ANCHOR_ANYCHAR_STAR_MASK)) { in optimize_node_left()
4914 remove_opt_anc_info(&opt->anc, ANCHOR_ANYCHAR_STAR_MASK); in optimize_node_left()
5003 set_sub_anchor(regex_t* reg, OptAncInfo* anc) in set_sub_anchor() argument
5005 reg->sub_anchor |= anc->left_anchor & ANCHOR_BEGIN_LINE; in set_sub_anchor()
5006 reg->sub_anchor |= anc->right_anchor & ANCHOR_END_LINE; in set_sub_anchor()
5030 reg->anchor = opt.anc.left_anchor & (ANCHOR_BEGIN_BUF | in set_optimize_info_from_tree()
5034 if ((opt.anc.left_anchor & (ANCHOR_LOOK_BEHIND | ANCHOR_PREC_READ_NOT)) != 0) in set_optimize_info_from_tree()
5037 reg->anchor |= opt.anc.right_anchor & (ANCHOR_END_BUF | ANCHOR_SEMI_END_BUF | in set_optimize_info_from_tree()
5053 set_sub_anchor(reg, &opt.exb.anc); in set_optimize_info_from_tree()
5059 set_sub_anchor(reg, &opt.map.anc); in set_optimize_info_from_tree()
5062 reg->sub_anchor |= opt.anc.left_anchor & ANCHOR_BEGIN_LINE; in set_optimize_info_from_tree()
5064 reg->sub_anchor |= opt.anc.right_anchor & ANCHOR_END_LINE; in set_optimize_info_from_tree()