• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/libxml2-2.7.2/source/

Lines Matching refs:comp

305     xmlRegexpPtr comp;	/* the compiled regexp */
3083 if (exec->comp->nbCounters > 0) {
3086 xmlMalloc(exec->comp->nbCounters * sizeof(int));
3094 exec->comp->nbCounters * sizeof(int));
3112 if (exec->comp->nbCounters > 0) {
3119 exec->comp->nbCounters * sizeof(int));
3135 xmlFARegExec(xmlRegexpPtr comp, const xmlChar *content) {
3148 exec->comp = comp;
3149 exec->state = comp->states[0];
3154 if (comp->nbCounters > 0) {
3155 exec->counts = (int *) xmlMalloc(comp->nbCounters * sizeof(int));
3160 memset(exec->counts, 0, comp->nbCounters * sizeof(int));
3215 counter = &exec->comp->counters[trans->count];
3231 xmlRegStatePtr to = comp->states[trans->to];
3244 (exec->comp == NULL) ||
3245 (exec->comp->counters == NULL)) {
3249 counter = &exec->comp->counters[trans->counter];
3352 (exec->comp == NULL) ||
3353 (exec->comp->counters == NULL)) {
3357 counter = &exec->comp->counters[trans->counter];
3380 exec->state = comp->states[trans->to];
3440 * @comp: a precompiled regular expression
3450 xmlRegNewExecCtxt(xmlRegexpPtr comp, xmlRegExecCallbacks callback, void *data) {
3453 if (comp == NULL)
3455 if ((comp->compact == NULL) && (comp->states == NULL))
3470 exec->comp = comp;
3471 if (comp->compact == NULL)
3472 exec->state = comp->states[0];
3477 if (comp->nbCounters > 0) {
3482 exec->counts = (int *) xmlMalloc(comp->nbCounters * sizeof(int)
3489 memset(exec->counts, 0, comp->nbCounters * sizeof(int) * 2);
3490 exec->errCounts = &exec->counts[comp->nbCounters];
3629 * @comp: the precompiled exec with a compact table
3640 xmlRegexpPtr comp,
3646 if ((comp == NULL) || (comp->compact == NULL) || (comp->stringMap == NULL))
3653 if (comp->compact[state * (comp->nbstrings + 1)] ==
3666 for (i = 0;i < comp->nbstrings;i++) {
3667 target = comp->compact[state * (comp->nbstrings + 1) + i + 1];
3668 if ((target > 0) && (target <= comp->nbstates)) {
3670 if (xmlRegStrEqualWildcard(comp->stringMap[i], value)) {
3672 if ((exec->callback != NULL) && (comp->transdata != NULL)) {
3674 comp->transdata[state * comp->nbstrings + i], data);
3679 if (comp->compact[target * (comp->nbstrings + 1)] ==
3683 if (comp->compact[target * (comp->nbstrings + 1)] ==
3732 if (exec->comp == NULL)
3737 if (exec->comp->compact != NULL)
3738 return(xmlRegCompactPushString(exec, exec->comp, value, data));
3803 counter = &exec->comp->counters[t->counter];
3838 counter = &exec->comp->counters[t->counter];
3854 counter = &exec->comp->counters[trans->count];
3876 counter = &exec->comp->counters[trans->counter];
3882 xmlRegStatePtr to = exec->comp->states[trans->to];
3977 if ((exec->comp->states[trans->to] != NULL) &&
3978 (exec->comp->states[trans->to]->type ==
3989 exec->comp->nbCounters * sizeof(int));
3991 exec->state = exec->comp->states[trans->to];
4037 exec->comp->nbCounters * sizeof(int));
4107 if (exec->comp == NULL)
4132 if (exec->comp->compact != NULL)
4133 ret = xmlRegCompactPushString(exec, exec->comp, str, data);
4170 if ((exec->comp != NULL) && (exec->comp->compact != NULL)) {
4171 xmlRegexpPtr comp;
4174 comp = exec->comp;
4183 if (comp->compact[state * (comp->nbstrings + 1)] ==
4189 for (i = 0;(i < comp->nbstrings) && (nb < maxval);i++) {
4190 target = comp->compact[state * (comp->nbstrings + 1) + i + 1];
4191 if ((target > 0) && (target <= comp->nbstates) &&
4192 (comp->compact[(target - 1) * (comp->nbstrings + 1)] !=
4194 values[nb++] = comp->stringMap[i];
4198 for (i = 0;(i < comp->nbstrings) && (nb < maxval);i++) {
4199 target = comp->compact[state * (comp->nbstrings + 1) + i + 1];
4200 if ((target > 0) && (target <= comp->nbstates) &&
4201 (comp->compact[(target - 1) * (comp->nbstrings + 1)] ==
4203 values[nb++] = comp->stringMap[i];
4250 if (exec->comp != NULL)
4251 counter = &exec->comp->counters[trans->counter];
4260 if ((exec->comp->states[trans->to] != NULL) &&
4261 (exec->comp->states[trans->to]->type !=
4287 if ((exec->comp->states[trans->to] != NULL) &&
4288 (exec->comp->states[trans->to]->type ==
4410 counter = &exec->comp->counters[trans->count];
4424 xmlRegStatePtr to = exec->comp->states[trans->to];
4502 exec->state = exec->comp->states[trans->to];
5428 * @comp: the compiled regular expression
5436 xmlRegexpExec(xmlRegexpPtr comp, const xmlChar *content) {
5437 if ((comp == NULL) || (content == NULL))
5439 return(xmlFARegExec(comp, content));
5444 * @comp: the compiled regular expression
5451 xmlRegexpIsDeterminist(xmlRegexpPtr comp) {
5455 if (comp == NULL)
5457 if (comp->determinist != -1)
5458 return(comp->determinist);
5468 am->nbAtoms = comp->nbAtoms;
5469 am->atoms = comp->atoms;
5470 am->nbStates = comp->nbStates;
5471 am->states = comp->states;