Home | History | Annotate | Download | only in libxml2

Lines Matching refs:comp

309     xmlRegexpPtr comp;	/* the compiled regexp */
3122 if (exec->comp->nbCounters > 0) {
3125 xmlMalloc(exec->comp->nbCounters * sizeof(int));
3133 exec->comp->nbCounters * sizeof(int));
3151 if (exec->comp->nbCounters > 0) {
3158 exec->comp->nbCounters * sizeof(int));
3174 xmlFARegExec(xmlRegexpPtr comp, const xmlChar *content) {
3187 exec->comp = comp;
3188 exec->state = comp->states[0];
3193 if (comp->nbCounters > 0) {
3194 exec->counts = (int *) xmlMalloc(comp->nbCounters * sizeof(int));
3199 memset(exec->counts, 0, comp->nbCounters * sizeof(int));
3254 counter = &exec->comp->counters[trans->count];
3270 xmlRegStatePtr to = comp->states[trans->to];
3283 (exec->comp == NULL) ||
3284 (exec->comp->counters == NULL)) {
3288 counter = &exec->comp->counters[trans->counter];
3391 (exec->comp == NULL) ||
3392 (exec->comp->counters == NULL)) {
3396 counter = &exec->comp->counters[trans->counter];
3419 exec->state = comp->states[trans->to];
3479 * @comp: a precompiled regular expression
3489 xmlRegNewExecCtxt(xmlRegexpPtr comp, xmlRegExecCallbacks callback, void *data) {
3492 if (comp == NULL)
3494 if ((comp->compact == NULL) && (comp->states == NULL))
3509 exec->comp = comp;
3510 if (comp->compact == NULL)
3511 exec->state = comp->states[0];
3516 if (comp->nbCounters > 0) {
3521 exec->counts = (int *) xmlMalloc(comp->nbCounters * sizeof(int)
3528 memset(exec->counts, 0, comp->nbCounters * sizeof(int) * 2);
3529 exec->errCounts = &exec->counts[comp->nbCounters];
3668 * @comp: the precompiled exec with a compact table
3679 xmlRegexpPtr comp,
3685 if ((comp == NULL) || (comp->compact == NULL) || (comp->stringMap == NULL))
3692 if (comp->compact[state * (comp->nbstrings + 1)] ==
3705 for (i = 0;i < comp->nbstrings;i++) {
3706 target = comp->compact[state * (comp->nbstrings + 1) + i + 1];
3707 if ((target > 0) && (target <= comp->nbstates)) {
3709 if (xmlRegStrEqualWildcard(comp->stringMap[i], value)) {
3711 if ((exec->callback != NULL) && (comp->transdata != NULL)) {
3713 comp->transdata[state * comp->nbstrings + i], data);
3718 if (comp->compact[target * (comp->nbstrings + 1)] ==
3722 if (comp->compact[target * (comp->nbstrings + 1)] ==
3771 if (exec->comp == NULL)
3776 if (exec->comp->compact != NULL)
3777 return(xmlRegCompactPushString(exec, exec->comp, value, data));
3842 counter = &exec->comp->counters[t->counter];
3877 counter = &exec->comp->counters[t->counter];
3893 counter = &exec->comp->counters[trans->count];
3915 counter = &exec->comp->counters[trans->counter];
3921 xmlRegStatePtr to = exec->comp->states[trans->to];
4016 if ((exec->comp->states[trans->to] != NULL) &&
4017 (exec->comp->states[trans->to]->type ==
4028 exec->comp->nbCounters * sizeof(int));
4030 exec->state = exec->comp->states[trans->to];
4076 exec->comp->nbCounters * sizeof(int));
4146 if (exec->comp == NULL)
4171 if (exec->comp->compact != NULL)
4172 ret = xmlRegCompactPushString(exec, exec->comp, str, data);
4209 if ((exec->comp != NULL) && (exec->comp->compact != NULL)) {
4210 xmlRegexpPtr comp;
4213 comp = exec->comp;
4222 if (comp->compact[state * (comp->nbstrings + 1)] ==
4228 for (i = 0;(i < comp->nbstrings) && (nb < maxval);i++) {
4229 target = comp->compact[state * (comp->nbstrings + 1) + i + 1];
4230 if ((target > 0) && (target <= comp->nbstates) &&
4231 (comp->compact[(target - 1) * (comp->nbstrings + 1)] !=
4233 values[nb++] = comp->stringMap[i];
4237 for (i = 0;(i < comp->nbstrings) && (nb < maxval);i++) {
4238 target = comp->compact[state * (comp->nbstrings + 1) + i + 1];
4239 if ((target > 0) && (target <= comp->nbstates) &&
4240 (comp->compact[(target - 1) * (comp->nbstrings + 1)] ==
4242 values[nb++] = comp->stringMap[i];
4289 if (exec->comp != NULL)
4290 counter = &exec->comp->counters[trans->counter];
4299 if ((exec->comp->states[trans->to] != NULL) &&
4300 (exec->comp->states[trans->to]->type !=
4326 if ((exec->comp->states[trans->to] != NULL) &&
4327 (exec->comp->states[trans->to]->type ==
4449 counter = &exec->comp->counters[trans->count];
4463 xmlRegStatePtr to = exec->comp->states[trans->to];
4541 exec->state = exec->comp->states[trans->to];
5478 * @comp: the compiled regular expression
5486 xmlRegexpExec(xmlRegexpPtr comp, const xmlChar *content) {
5487 if ((comp == NULL) || (content == NULL))
5489 return(xmlFARegExec(comp, content));
5494 * @comp: the compiled regular expression
5501 xmlRegexpIsDeterminist(xmlRegexpPtr comp) {
5505 if (comp == NULL)
5507 if (comp->determinist != -1)
5508 return(comp->determinist);
5518 am->nbAtoms = comp->nbAtoms;
5519 am->atoms = comp->atoms;
5520 am->nbStates = comp->nbStates;
5521 am->states = comp->states;
5523 am->flags = comp->flags;
5528 comp->determinist = ret;