Lines Matching refs:anc

3739   OptAncInfo anc;  member
3749 OptAncInfo anc; member
3758 OptAncInfo anc; member
3894 clear_opt_anc_info(OptAncInfo* anc) in clear_opt_anc_info() argument
3896 anc->left_anchor = 0; in clear_opt_anc_info()
3897 anc->right_anchor = 0; in clear_opt_anc_info()
3924 is_left_anchor(int anc) in is_left_anchor() argument
3926 if (anc == ANCHOR_END_BUF || anc == ANCHOR_SEMI_END_BUF || in is_left_anchor()
3927 anc == ANCHOR_END_LINE || anc == ANCHOR_PREC_READ || in is_left_anchor()
3928 anc == ANCHOR_PREC_READ_NOT) in is_left_anchor()
3935 is_set_opt_anc_info(OptAncInfo* to, int anc) in is_set_opt_anc_info() argument
3937 if ((to->left_anchor & anc) != 0) return 1; in is_set_opt_anc_info()
3939 return ((to->right_anchor & anc) != 0 ? 1 : 0); in is_set_opt_anc_info()
3943 add_opt_anc_info(OptAncInfo* to, int anc) in add_opt_anc_info() argument
3945 if (is_left_anchor(anc)) in add_opt_anc_info()
3946 to->left_anchor |= anc; in add_opt_anc_info()
3948 to->right_anchor |= anc; in add_opt_anc_info()
3952 remove_opt_anc_info(OptAncInfo* to, int anc) in remove_opt_anc_info() argument
3954 if (is_left_anchor(anc)) in remove_opt_anc_info()
3955 to->left_anchor &= ~anc; in remove_opt_anc_info()
3957 to->right_anchor &= ~anc; in remove_opt_anc_info()
3977 clear_opt_anc_info(&ex->anc); in clear_opt_exact_info()
4015 concat_opt_anc_info(&tanc, &to->anc, &add->anc, 1, 1); in concat_opt_exact_info()
4017 copy_opt_anc_info(&to->anc, &tanc); in concat_opt_exact_info()
4069 alt_merge_opt_anc_info(&to->anc, &add->anc); in alt_merge_opt_exact_info()
4070 if (! to->reach_end) to->anc.right_anchor = 0; in alt_merge_opt_exact_info()
4231 alt_merge_opt_anc_info(&to->anc, &add->anc); in alt_merge_opt_map_info()
4246 clear_opt_anc_info(&opt->anc); in clear_node_opt_info()
4265 concat_opt_anc_info(&tanc, &to->anc, &add->anc, to->len.max, add->len.max); in concat_left_node_opt_info()
4266 copy_opt_anc_info(&to->anc, &tanc); in concat_left_node_opt_info()
4269 concat_opt_anc_info(&tanc, &to->anc, &add->exb.anc, in concat_left_node_opt_info()
4271 copy_opt_anc_info(&add->exb.anc, &tanc); in concat_left_node_opt_info()
4276 add->map.anc.left_anchor |= to->anc.left_anchor; in concat_left_node_opt_info()
4321 alt_merge_opt_anc_info (&to->anc, &add->anc); in alt_merge_node_opt_info()
4493 add_opt_anc_info(&opt->anc, NANCHOR(node).type); in optimize_node_left()
4578 add_opt_anc_info(&opt->anc, ANCHOR_ANYCHAR_STAR_ML); in optimize_node_left()
4580 add_opt_anc_info(&opt->anc, ANCHOR_ANYCHAR_STAR); in optimize_node_left()
4649 if (is_set_opt_anc_info(&opt->anc, ANCHOR_ANYCHAR_STAR_MASK)) { in optimize_node_left()
4651 remove_opt_anc_info(&opt->anc, ANCHOR_ANYCHAR_STAR_MASK); in optimize_node_left()
4740 set_sub_anchor(regex_t* reg, OptAncInfo* anc) in set_sub_anchor() argument
4742 reg->sub_anchor |= anc->left_anchor & ANCHOR_BEGIN_LINE; in set_sub_anchor()
4743 reg->sub_anchor |= anc->right_anchor & ANCHOR_END_LINE; in set_sub_anchor()
4767 reg->anchor = opt.anc.left_anchor & (ANCHOR_BEGIN_BUF | in set_optimize_info_from_tree()
4770 reg->anchor |= opt.anc.right_anchor & (ANCHOR_END_BUF | ANCHOR_SEMI_END_BUF); in set_optimize_info_from_tree()
4785 set_sub_anchor(reg, &opt.exb.anc); in set_optimize_info_from_tree()
4791 set_sub_anchor(reg, &opt.map.anc); in set_optimize_info_from_tree()
4794 reg->sub_anchor |= opt.anc.left_anchor & ANCHOR_BEGIN_LINE; in set_optimize_info_from_tree()
4796 reg->sub_anchor |= opt.anc.right_anchor & ANCHOR_END_LINE; in set_optimize_info_from_tree()