Lines Matching refs:brackets
248 int bracket_index; /* index for 'struct bracket_pair brackets' */
258 struct bracket_pair brackets[MAX_BRACKETS];
385 /* i is offset in re, j is offset in s, bi is brackets index */
391 step = re[i] == '(' ? info->brackets[bi + 1].len + 2 :
469 /* Nothing follows brackets */
504 const struct bracket_pair *b = &info->brackets[bi];
522 int i, result = -1, is_anchored = info->brackets[0].ptr[0] == '^';
556 info->brackets[i].num_branches = 0;
557 info->brackets[i].branches = j;
559 info->brackets[i].num_branches++;
570 info->brackets[0].ptr = re;
571 info->brackets[0].len = re_len;
574 /* Make a single pass over regex string, memorize brackets and branches */
582 info->brackets[info->num_brackets - 1].len == -1 ?
599 FAIL_IF(info->num_brackets >= (int) ARRAY_SIZE(info->brackets),
602 info->brackets[info->num_brackets].ptr = re + i + 1;
603 info->brackets[info->num_brackets].len = -1;
608 int ind = info->brackets[info->num_brackets - 1].len == -1 ?
610 info->brackets[ind].len = (int) (&re[i] - info->brackets[ind].ptr);
612 ind, info->brackets[ind].len, info->brackets[ind].ptr));
3670 err = "unbalanced brackets"; break;