Lines Matching defs:regexp

2  * regexp.c: generic and extensible Regular Expression engine
298 xmlRegexpPtr comp; /* the compiled regexp */
363 const char *regexp = NULL;
365 regexp = (const char *) ctxt->string;
370 regexp, NULL, 0, 0,
383 const char *regexp = NULL;
387 regexp = (const char *) ctxt->string;
393 regexp, NULL, idx, 0,
408 * Allocate a new regexp and fill it with the result from the parser
410 * Returns the new regexp or NULL in case of error
418 xmlRegexpErrMemory(ctxt, "compiling regexp");
458 xmlRegexpErrMemory(ctxt, "compiling regexp");
475 xmlRegexpErrMemory(ctxt, "compiling regexp");
482 xmlRegexpErrMemory(ctxt, "compiling regexp");
566 xmlRegexpErrMemory(ctxt, "compiling regexp");
662 * Allocate a new regexp parser context
686 * @ctxt: the regexp parser context
692 * Allocate a new regexp range
715 * @range: the regexp range
717 * Free a regexp range
731 * @ctxt: the regexp parser context
734 * Allocate a new regexp range
757 * @atom: the regexp atom
759 * Free a regexp atom
798 * @state: the regexp state
800 * Free a regexp state
816 * @ctxt: the regexp parser context
818 * Free a regexp parser context
1363 * @ctxt: a regexp parser context
1386 * @ctxt: a regexp parser context
1404 * @ctxt: a regexp parser context
1423 * @ctxt: a regexp parser context
1442 * @ctxt: a regexp parser context
1606 * @ctxt: a regexp parser context
1688 * @ctxt: a regexp parser context
1771 * @ctxt: a regexp parser context
2400 * @ctxt: a regexp parser context
2402 * Check whether the associated regexp is determinist,
2450 * @ctxt: a regexp parser context
2452 * Check whether the associated regexp is determinist,
2906 xmlRegexpErrMemory(NULL, "saving regexp");
2920 xmlRegexpErrMemory(NULL, "saving regexp");
2936 xmlRegexpErrMemory(NULL, "saving regexp");
2978 * Verifier, running an input against a compiled regexp *
3005 xmlRegexpErrMemory(NULL, "running regexp");
3274 * Build a context used for progressive evaluation of a regexp.
3457 * @exec: a regexp execution context
3464 * Returns: 1 if the regexp reached a final state, 0 if non-final, and
3540 * @exec: a regexp execution context or NULL to indicate the end
3547 * Returns: 1 if the regexp reached a final state, 0 if non-final, and
3900 * @exec: a regexp execution context or NULL to indicate the end
3906 * Returns: 1 if the regexp reached a final state, 0 if non-final, and
3917 * @exec: a regexp execution context or NULL to indicate the end
3924 * Returns: 1 if the regexp reached a final state, 0 if non-final, and
3973 * @exec: a regexp execution context
3980 * Extract informations from the regexp execution, internal routine to
4133 * @exec: a regexp execution context
4139 * Extract informations from the regexp execution,
4156 * @exec: a regexp execution context generating an error
4163 * Extract error informations from the regexp execution, the parameter
4364 * @ctxt: a regexp parser context
4384 * @ctxt: a regexp parser context
4607 * @ctxt: a regexp parser context
4738 * @ctxt: a regexp parser context
4796 * @ctxt: a regexp parser context
4887 * @ctxt: a regexp parser context
4905 * @ctxt: a regexp parser context
4946 * @ctxt: a regexp parser context
4971 * @ctxt: a regexp parser context
4995 * @ctxt: a regexp parser context
5059 * @ctxt: a regexp parser context
5113 * @ctxt: a regexp parser context
5134 * @ctxt: a regexp parser context
5171 * @ctxt: a regexp parser context
5216 * @regexp: the compiled regexp
5221 xmlRegexpPrint(FILE *output, xmlRegexpPtr regexp) {
5226 fprintf(output, " regexp: ");
5227 if (regexp == NULL) {
5231 fprintf(output, "'%s' ", regexp->string);
5233 fprintf(output, "%d atoms:\n", regexp->nbAtoms);
5234 for (i = 0;i < regexp->nbAtoms; i++) {
5236 xmlRegPrintAtom(output, regexp->atoms[i]);
5238 fprintf(output, "%d states:", regexp->nbStates);
5240 for (i = 0;i < regexp->nbStates; i++) {
5241 xmlRegPrintState(output, regexp->states[i]);
5243 fprintf(output, "%d counters:\n", regexp->nbCounters);
5244 for (i = 0;i < regexp->nbCounters; i++) {
5245 fprintf(output, " %d: min %d max %d\n", i, regexp->counters[i].min,
5246 regexp->counters[i].max);
5252 * @regexp: a regular expression string
5261 xmlRegexpCompile(const xmlChar *regexp) {
5265 ctxt = xmlRegNewParserCtxt(regexp);
5352 * @regexp: the regexp
5354 * Free a regexp
5357 xmlRegFreeRegexp(xmlRegexpPtr regexp) {
5359 if (regexp == NULL)
5362 if (regexp->string != NULL)
5363 xmlFree(regexp->string);
5364 if (regexp->states != NULL) {
5365 for (i = 0;i < regexp->nbStates;i++)
5366 xmlRegFreeState(regexp->states[i]);
5367 xmlFree(regexp->states);
5369 if (regexp->atoms != NULL) {
5370 for (i = 0;i < regexp->nbAtoms;i++)
5371 xmlRegFreeAtom(regexp->atoms[i]);
5372 xmlFree(regexp->atoms);
5374 if (regexp->counters != NULL)
5375 xmlFree(regexp->counters);
5376 if (regexp->compact != NULL)
5377 xmlFree(regexp->compact);
5378 if (regexp->transdata != NULL)
5379 xmlFree(regexp->transdata);
5380 if (regexp->stringMap != NULL) {
5381 for (i = 0; i < regexp->nbstrings;i++)
5382 xmlFree(regexp->stringMap[i]);
5383 xmlFree(regexp->stringMap);
5386 xmlFree(regexp);
6075 * Returns the compiled regexp or NULL in case of error