• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/tre-0.8.0/lib/

Lines Matching refs:p1

1568 /* Adds a transition from each position in `p1' to each position in `p2'. */
1570 tre_make_trans(tre_pos_and_tags_t *p1, tre_pos_and_tags_t *p2,
1579 while (p1->position >= 0)
1593 position `p1->position'. */
1594 trans = transitions + offs[p1->position];
1598 /* If we find a previous transition from `p1->position' to
1620 /* Use the character ranges, assertions, etc. from `p1' for
1621 the transition from `p1' to `p2'. */
1622 trans->code_min = p1->code_min;
1623 trans->code_max = p1->code_max;
1626 trans->assertions = p1->assertions | p2->assertions
1627 | (p1->class ? ASSERT_CHAR_CLASS : 0)
1628 | (p1->neg_classes != NULL ? ASSERT_CHAR_CLASS_NEG : 0);
1629 if (p1->backref >= 0)
1633 trans->u.backref = p1->backref;
1637 trans->u.class = p1->class;
1638 if (p1->neg_classes != NULL)
1640 for (i = 0; p1->neg_classes[i] != (tre_ctype_t)0; i++);
1645 for (i = 0; p1->neg_classes[i] != (tre_ctype_t)0; i++)
1646 trans->neg_classes[i] = p1->neg_classes[i];
1654 if (p1->tags != NULL)
1655 while(p1->tags[i] >= 0)
1674 if (p1->tags != NULL)
1675 while(p1->tags[i] >= 0)
1677 trans->tags[i] = p1->tags[i];
1700 /* Set the parameter array. If both `p2' and `p1' have same
1701 parameters, the values in `p2' override those in `p1'. */
1702 if (p1->params || p2->params)
1712 if (p1->params && p1->params[i] != TRE_PARAM_UNSET)
1713 trans->params[i] = p1->params[i];
1730 DPRINT((" %2d -> %2d on %3d", p1->position, p2->position,
1731 p1->code_min));
1732 if (p1->code_max != p1->code_min)
1733 DPRINT(("-%3d", p1->code_max));
1765 p1++;
1770 while (p1->position >= 0)
1775 counts[p1->position]++;
1778 p1++;