Home | History | Annotate | Download | only in libxml2

Lines Matching refs:comp

313     xmlRegexpPtr comp;	/* the compiled regexp */
3130 if (exec->comp->nbCounters > 0) {
3133 xmlMalloc(exec->comp->nbCounters * sizeof(int));
3141 exec->comp->nbCounters * sizeof(int));
3159 if (exec->comp->nbCounters > 0) {
3166 exec->comp->nbCounters * sizeof(int));
3182 xmlFARegExec(xmlRegexpPtr comp, const xmlChar *content) {
3195 exec->comp = comp;
3196 exec->state = comp->states[0];
3201 if (comp->nbCounters > 0) {
3202 exec->counts = (int *) xmlMalloc(comp->nbCounters * sizeof(int));
3207 memset(exec->counts, 0, comp->nbCounters * sizeof(int));
3262 counter = &exec->comp->counters[trans->count];
3278 xmlRegStatePtr to = comp->states[trans->to];
3291 (exec->comp == NULL) ||
3292 (exec->comp->counters == NULL)) {
3296 counter = &exec->comp->counters[trans->counter];
3399 (exec->comp == NULL) ||
3400 (exec->comp->counters == NULL)) {
3404 counter = &exec->comp->counters[trans->counter];
3427 exec->state = comp->states[trans->to];
3489 * @comp: a precompiled regular expression
3499 xmlRegNewExecCtxt(xmlRegexpPtr comp, xmlRegExecCallbacks callback, void *data) {
3502 if (comp == NULL)
3504 if ((comp->compact == NULL) && (comp->states == NULL))
3519 exec->comp = comp;
3520 if (comp->compact == NULL)
3521 exec->state = comp->states[0];
3526 if (comp->nbCounters > 0) {
3531 exec->counts = (int *) xmlMalloc(comp->nbCounters * sizeof(int)
3538 memset(exec->counts, 0, comp->nbCounters * sizeof(int) * 2);
3539 exec->errCounts = &exec->counts[comp->nbCounters];
3678 * @comp: the precompiled exec with a compact table
3689 xmlRegexpPtr comp,
3695 if ((comp == NULL) || (comp->compact == NULL) || (comp->stringMap == NULL))
3702 if (comp->compact[state * (comp->nbstrings + 1)] ==
3715 for (i = 0;i < comp->nbstrings;i++) {
3716 target = comp->compact[state * (comp->nbstrings + 1) + i + 1];
3717 if ((target > 0) && (target <= comp->nbstates)) {
3719 if (xmlRegStrEqualWildcard(comp->stringMap[i], value)) {
3721 if ((exec->callback != NULL) && (comp->transdata != NULL)) {
3723 comp->transdata[state * comp->nbstrings + i], data);
3728 if (comp->compact[target * (comp->nbstrings + 1)] ==
3732 if (comp->compact[target * (comp->nbstrings + 1)] ==
3781 if (exec->comp == NULL)
3786 if (exec->comp->compact != NULL)
3787 return(xmlRegCompactPushString(exec, exec->comp, value, data));
3852 counter = &exec->comp->counters[t->counter];
3887 counter = &exec->comp->counters[t->counter];
3903 counter = &exec->comp->counters[trans->count];
3925 counter = &exec->comp->counters[trans->counter];
3931 xmlRegStatePtr to = exec->comp->states[trans->to];
4026 if ((exec->comp->states[trans->to] != NULL) &&
4027 (exec->comp->states[trans->to]->type ==
4038 exec->comp->nbCounters * sizeof(int));
4040 exec->state = exec->comp->states[trans->to];
4086 exec->comp->nbCounters * sizeof(int));
4156 if (exec->comp == NULL)
4181 if (exec->comp->compact != NULL)
4182 ret = xmlRegCompactPushString(exec, exec->comp, str, data);
4219 if ((exec->comp != NULL) && (exec->comp->compact != NULL)) {
4220 xmlRegexpPtr comp;
4223 comp = exec->comp;
4232 if (comp->compact[state * (comp->nbstrings + 1)] ==
4238 for (i = 0;(i < comp->nbstrings) && (nb < maxval);i++) {
4239 target = comp->compact[state * (comp->nbstrings + 1) + i + 1];
4240 if ((target > 0) && (target <= comp->nbstates) &&
4241 (comp->compact[(target - 1) * (comp->nbstrings + 1)] !=
4243 values[nb++] = comp->stringMap[i];
4247 for (i = 0;(i < comp->nbstrings) && (nb < maxval);i++) {
4248 target = comp->compact[state * (comp->nbstrings + 1) + i + 1];
4249 if ((target > 0) && (target <= comp->nbstates) &&
4250 (comp->compact[(target - 1) * (comp->nbstrings + 1)] ==
4252 values[nb++] = comp->stringMap[i];
4299 if (exec->comp != NULL)
4300 counter = &exec->comp->counters[trans->counter];
4309 if ((exec->comp->states[trans->to] != NULL) &&
4310 (exec->comp->states[trans->to]->type !=
4336 if ((exec->comp->states[trans->to] != NULL) &&
4337 (exec->comp->states[trans->to]->type ==
4459 counter = &exec->comp->counters[trans->count];
4473 xmlRegStatePtr to = exec->comp->states[trans->to];
4551 exec->state = exec->comp->states[trans->to];
5492 * @comp: the compiled regular expression
5500 xmlRegexpExec(xmlRegexpPtr comp, const xmlChar *content) {
5501 if ((comp == NULL) || (content == NULL))
5503 return(xmlFARegExec(comp, content));
5508 * @comp: the compiled regular expression
5515 xmlRegexpIsDeterminist(xmlRegexpPtr comp) {
5519 if (comp == NULL)
5521 if (comp->determinist != -1)
5522 return(comp->determinist);
5532 am->nbAtoms = comp->nbAtoms;
5533 am->atoms = comp->atoms;
5534 am->nbStates = comp->nbStates;
5535 am->states = comp->states;
5537 am->flags = comp->flags;
5542 comp->determinist = ret;