Lines Matching defs:comp

305     xmlRegexpPtr comp;	/* the compiled regexp */
3062 if (exec->comp->nbCounters > 0) {
3065 xmlMalloc(exec->comp->nbCounters * sizeof(int));
3073 exec->comp->nbCounters * sizeof(int));
3091 if (exec->comp->nbCounters > 0) {
3098 exec->comp->nbCounters * sizeof(int));
3114 xmlFARegExec(xmlRegexpPtr comp, const xmlChar *content) {
3127 exec->comp = comp;
3128 exec->state = comp->states[0];
3133 if (comp->nbCounters > 0) {
3134 exec->counts = (int *) xmlMalloc(comp->nbCounters * sizeof(int));
3139 memset(exec->counts, 0, comp->nbCounters * sizeof(int));
3193 counter = &exec->comp->counters[trans->count];
3209 xmlRegStatePtr to = comp->states[trans->to];
3222 (exec->comp == NULL) ||
3223 (exec->comp->counters == NULL)) {
3227 counter = &exec->comp->counters[trans->counter];
3330 (exec->comp == NULL) ||
3331 (exec->comp->counters == NULL)) {
3335 counter = &exec->comp->counters[trans->counter];
3358 exec->state = comp->states[trans->to];
3418 * @comp: a precompiled regular expression
3428 xmlRegNewExecCtxt(xmlRegexpPtr comp, xmlRegExecCallbacks callback, void *data) {
3431 if (comp == NULL)
3433 if ((comp->compact == NULL) && (comp->states == NULL))
3448 exec->comp = comp;
3449 if (comp->compact == NULL)
3450 exec->state = comp->states[0];
3455 if (comp->nbCounters > 0) {
3460 exec->counts = (int *) xmlMalloc(comp->nbCounters * sizeof(int)
3467 memset(exec->counts, 0, comp->nbCounters * sizeof(int) * 2);
3468 exec->errCounts = &exec->counts[comp->nbCounters];
3607 * @comp: the precompiled exec with a compact table
3618 xmlRegexpPtr comp,
3624 if ((comp == NULL) || (comp->compact == NULL) || (comp->stringMap == NULL))
3631 if (comp->compact[state * (comp->nbstrings + 1)] ==
3644 for (i = 0;i < comp->nbstrings;i++) {
3645 target = comp->compact[state * (comp->nbstrings + 1) + i + 1];
3646 if ((target > 0) && (target <= comp->nbstates)) {
3648 if (xmlRegStrEqualWildcard(comp->stringMap[i], value)) {
3650 if ((exec->callback != NULL) && (comp->transdata != NULL)) {
3652 comp->transdata[state * comp->nbstrings + i], data);
3657 if (comp->compact[target * (comp->nbstrings + 1)] ==
3661 if (comp->compact[target * (comp->nbstrings + 1)] ==
3710 if (exec->comp == NULL)
3715 if (exec->comp->compact != NULL)
3716 return(xmlRegCompactPushString(exec, exec->comp, value, data));
3781 counter = &exec->comp->counters[t->counter];
3816 counter = &exec->comp->counters[t->counter];
3832 counter = &exec->comp->counters[trans->count];
3854 counter = &exec->comp->counters[trans->counter];
3860 xmlRegStatePtr to = exec->comp->states[trans->to];
3955 if ((exec->comp->states[trans->to] != NULL) &&
3956 (exec->comp->states[trans->to]->type ==
3967 exec->comp->nbCounters * sizeof(int));
3969 exec->state = exec->comp->states[trans->to];
4015 exec->comp->nbCounters * sizeof(int));
4085 if (exec->comp == NULL)
4110 if (exec->comp->compact != NULL)
4111 ret = xmlRegCompactPushString(exec, exec->comp, str, data);
4148 if ((exec->comp != NULL) && (exec->comp->compact != NULL)) {
4149 xmlRegexpPtr comp;
4152 comp = exec->comp;
4161 if (comp->compact[state * (comp->nbstrings + 1)] ==
4167 for (i = 0;(i < comp->nbstrings) && (nb < maxval);i++) {
4168 target = comp->compact[state * (comp->nbstrings + 1) + i + 1];
4169 if ((target > 0) && (target <= comp->nbstates) &&
4170 (comp->compact[(target - 1) * (comp->nbstrings + 1)] !=
4172 values[nb++] = comp->stringMap[i];
4176 for (i = 0;(i < comp->nbstrings) && (nb < maxval);i++) {
4177 target = comp->compact[state * (comp->nbstrings + 1) + i + 1];
4178 if ((target > 0) && (target <= comp->nbstates) &&
4179 (comp->compact[(target - 1) * (comp->nbstrings + 1)] ==
4181 values[nb++] = comp->stringMap[i];
4228 if (exec->comp != NULL)
4229 counter = &exec->comp->counters[trans->counter];
4238 if ((exec->comp->states[trans->to] != NULL) &&
4239 (exec->comp->states[trans->to]->type !=
4265 if ((exec->comp->states[trans->to] != NULL) &&
4266 (exec->comp->states[trans->to]->type ==
4388 counter = &exec->comp->counters[trans->count];
4402 xmlRegStatePtr to = exec->comp->states[trans->to];
4480 exec->state = exec->comp->states[trans->to];
5470 * @comp: the compiled regular expression
5478 xmlRegexpExec(xmlRegexpPtr comp, const xmlChar *content) {
5479 if ((comp == NULL) || (content == NULL))
5481 return(xmlFARegExec(comp, content));
5486 * @comp: the compiled regular expression
5493 xmlRegexpIsDeterminist(xmlRegexpPtr comp) {
5497 if (comp == NULL)
5499 if (comp->determinist != -1)
5500 return(comp->determinist);
5510 am->nbAtoms = comp->nbAtoms;
5511 am->atoms = comp->atoms;
5512 am->nbStates = comp->nbStates;
5513 am->states = comp->states;