Home | History | Annotate | Download | only in libxml2

Lines Matching defs:comp

313     xmlRegexpPtr comp;	/* the compiled regexp */
3135 if (exec->comp->nbCounters > 0) {
3138 xmlMalloc(exec->comp->nbCounters * sizeof(int));
3146 exec->comp->nbCounters * sizeof(int));
3164 if (exec->comp->nbCounters > 0) {
3172 exec->comp->nbCounters * sizeof(int));
3189 xmlFARegExec(xmlRegexpPtr comp, const xmlChar *content) {
3202 exec->comp = comp;
3203 exec->state = comp->states[0];
3208 if (comp->nbCounters > 0) {
3209 exec->counts = (int *) xmlMalloc(comp->nbCounters * sizeof(int));
3214 memset(exec->counts, 0, comp->nbCounters * sizeof(int));
3269 counter = &exec->comp->counters[trans->count];
3285 xmlRegStatePtr to = comp->states[trans->to];
3298 (exec->comp == NULL) ||
3299 (exec->comp->counters == NULL)) {
3303 counter = &exec->comp->counters[trans->counter];
3406 (exec->comp == NULL) ||
3407 (exec->comp->counters == NULL)) {
3411 counter = &exec->comp->counters[trans->counter];
3434 exec->state = comp->states[trans->to];
3496 * @comp: a precompiled regular expression
3506 xmlRegNewExecCtxt(xmlRegexpPtr comp, xmlRegExecCallbacks callback, void *data) {
3509 if (comp == NULL)
3511 if ((comp->compact == NULL) && (comp->states == NULL))
3526 exec->comp = comp;
3527 if (comp->compact == NULL)
3528 exec->state = comp->states[0];
3533 if (comp->nbCounters > 0) {
3538 exec->counts = (int *) xmlMalloc(comp->nbCounters * sizeof(int)
3545 memset(exec->counts, 0, comp->nbCounters * sizeof(int) * 2);
3546 exec->errCounts = &exec->counts[comp->nbCounters];
3685 * @comp: the precompiled exec with a compact table
3696 xmlRegexpPtr comp,
3702 if ((comp == NULL) || (comp->compact == NULL) || (comp->stringMap == NULL))
3709 if (comp->compact[state * (comp->nbstrings + 1)] ==
3722 for (i = 0;i < comp->nbstrings;i++) {
3723 target = comp->compact[state * (comp->nbstrings + 1) + i + 1];
3724 if ((target > 0) && (target <= comp->nbstates)) {
3726 if (xmlRegStrEqualWildcard(comp->stringMap[i], value)) {
3728 if ((exec->callback != NULL) && (comp->transdata != NULL)) {
3730 comp->transdata[state * comp->nbstrings + i], data);
3735 if (comp->compact[target * (comp->nbstrings + 1)] ==
3739 if (comp->compact[target * (comp->nbstrings + 1)] ==
3788 if (exec->comp == NULL)
3793 if (exec->comp->compact != NULL)
3794 return(xmlRegCompactPushString(exec, exec->comp, value, data));
3859 counter = &exec->comp->counters[t->counter];
3894 counter = &exec->comp->counters[t->counter];
3910 counter = &exec->comp->counters[trans->count];
3932 counter = &exec->comp->counters[trans->counter];
3938 xmlRegStatePtr to = exec->comp->states[trans->to];
4033 if ((exec->comp->states[trans->to] != NULL) &&
4034 (exec->comp->states[trans->to]->type ==
4045 exec->comp->nbCounters * sizeof(int));
4047 exec->state = exec->comp->states[trans->to];
4093 exec->comp->nbCounters * sizeof(int));
4163 if (exec->comp == NULL)
4188 if (exec->comp->compact != NULL)
4189 ret = xmlRegCompactPushString(exec, exec->comp, str, data);
4226 if ((exec->comp != NULL) && (exec->comp->compact != NULL)) {
4227 xmlRegexpPtr comp;
4230 comp = exec->comp;
4239 if (comp->compact[state * (comp->nbstrings + 1)] ==
4245 for (i = 0;(i < comp->nbstrings) && (nb < maxval);i++) {
4246 target = comp->compact[state * (comp->nbstrings + 1) + i + 1];
4247 if ((target > 0) && (target <= comp->nbstates) &&
4248 (comp->compact[(target - 1) * (comp->nbstrings + 1)] !=
4250 values[nb++] = comp->stringMap[i];
4254 for (i = 0;(i < comp->nbstrings) && (nb < maxval);i++) {
4255 target = comp->compact[state * (comp->nbstrings + 1) + i + 1];
4256 if ((target > 0) && (target <= comp->nbstates) &&
4257 (comp->compact[(target - 1) * (comp->nbstrings + 1)] ==
4259 values[nb++] = comp->stringMap[i];
4306 if (exec->comp != NULL)
4307 counter = &exec->comp->counters[trans->counter];
4316 if ((exec->comp != NULL) && (exec->comp->states[trans->to] != NULL) &&
4317 (exec->comp->states[trans->to]->type !=
4343 if ((exec->comp->states[trans->to] != NULL) &&
4344 (exec->comp->states[trans->to]->type ==
4466 counter = &exec->comp->counters[trans->count];
4480 xmlRegStatePtr to = exec->comp->states[trans->to];
4558 exec->state = exec->comp->states[trans->to];
5500 * @comp: the compiled regular expression
5508 xmlRegexpExec(xmlRegexpPtr comp, const xmlChar *content) {
5509 if ((comp == NULL) || (content == NULL))
5511 return(xmlFARegExec(comp, content));
5516 * @comp: the compiled regular expression
5523 xmlRegexpIsDeterminist(xmlRegexpPtr comp) {
5527 if (comp == NULL)
5529 if (comp->determinist != -1)
5530 return(comp->determinist);
5540 am->nbAtoms = comp->nbAtoms;
5541 am->atoms = comp->atoms;
5542 am->nbStates = comp->nbStates;
5543 am->states = comp->states;
5545 am->flags = comp->flags;
5550 comp->determinist = ret;