Lines Matching defs:regexp

2  * regexp.c: generic and extensible Regular Expression engine
309 xmlRegexpPtr comp; /* the compiled regexp */
376 const char *regexp = NULL;
378 regexp = (const char *) ctxt->string;
383 regexp, NULL, 0, 0,
396 const char *regexp = NULL;
400 regexp = (const char *) ctxt->string;
406 regexp, NULL, idx, 0,
421 * Allocate a new regexp and fill it with the result from the parser
423 * Returns the new regexp or NULL in case of error
431 xmlRegexpErrMemory(ctxt, "compiling regexp");
472 xmlRegexpErrMemory(ctxt, "compiling regexp");
489 xmlRegexpErrMemory(ctxt, "compiling regexp");
496 xmlRegexpErrMemory(ctxt, "compiling regexp");
580 xmlRegexpErrMemory(ctxt, "compiling regexp");
676 * Allocate a new regexp parser context
700 * @ctxt: the regexp parser context
706 * Allocate a new regexp range
729 * @range: the regexp range
731 * Free a regexp range
745 * @range: the regexp range
747 * Copy a regexp range
775 * @ctxt: the regexp parser context
801 * @atom: the regexp atom
803 * Free a regexp atom
827 * @ctxt: the regexp parser context
830 * Allocate a new regexp range
888 * @state: the regexp state
890 * Free a regexp state
906 * @ctxt: the regexp parser context
908 * Free a regexp parser context
1453 * @ctxt: a regexp parser context
1476 * @ctxt: a regexp parser context
1494 * @ctxt: a regexp parser context
1513 * @ctxt: a regexp parser context
1532 * @ctxt: a regexp parser context
1760 * @ctxt: a regexp parser context
1842 * @ctxt: a regexp parser context
1916 * @ctxt: a regexp parser context
2572 * @ctxt: a regexp parser context
2574 * Check whether the associated regexp is determinist,
2627 * @ctxt: a regexp parser context
2629 * Check whether the associated regexp is determinist,
3097 xmlRegexpErrMemory(NULL, "saving regexp");
3111 xmlRegexpErrMemory(NULL, "saving regexp");
3127 xmlRegexpErrMemory(NULL, "saving regexp");
3169 * Verifier, running an input against a compiled regexp *
3196 xmlRegexpErrMemory(NULL, "running regexp");
3484 * Build a context used for progressive evaluation of a regexp.
3667 * @exec: a regexp execution context
3674 * Returns: 1 if the regexp reached a final state, 0 if non-final, and
3750 * @exec: a regexp execution context or NULL to indicate the end
3757 * Returns: 1 if the regexp reached a final state, 0 if non-final, and
4110 * @exec: a regexp execution context or NULL to indicate the end
4116 * Returns: 1 if the regexp reached a final state, 0 if non-final, and
4127 * @exec: a regexp execution context or NULL to indicate the end
4134 * Returns: 1 if the regexp reached a final state, 0 if non-final, and
4183 * @exec: a regexp execution context
4190 * Extract informations from the regexp execution, internal routine to
4343 * @exec: a regexp execution context
4349 * Extract informations from the regexp execution,
4366 * @exec: a regexp execution context generating an error
4373 * Extract error informations from the regexp execution, the parameter
4574 * @ctxt: a regexp parser context
4594 * @ctxt: a regexp parser context
4817 * @ctxt: a regexp parser context
4961 * @ctxt: a regexp parser context
5056 * @ctxt: a regexp parser context
5074 * @ctxt: a regexp parser context
5115 * @ctxt: a regexp parser context
5140 * @ctxt: a regexp parser context
5164 * @ctxt: a regexp parser context
5228 * @ctxt: a regexp parser context
5289 * @ctxt: a regexp parser context
5310 * @ctxt: a regexp parser context
5347 * @ctxt: a regexp parser context
5392 * @regexp: the compiled regexp
5397 xmlRegexpPrint(FILE *output, xmlRegexpPtr regexp) {
5402 fprintf(output, " regexp: ");
5403 if (regexp == NULL) {
5407 fprintf(output, "'%s' ", regexp->string);
5409 fprintf(output, "%d atoms:\n", regexp->nbAtoms);
5410 for (i = 0;i < regexp->nbAtoms; i++) {
5412 xmlRegPrintAtom(output, regexp->atoms[i]);
5414 fprintf(output, "%d states:", regexp->nbStates);
5416 for (i = 0;i < regexp->nbStates; i++) {
5417 xmlRegPrintState(output, regexp->states[i]);
5419 fprintf(output, "%d counters:\n", regexp->nbCounters);
5420 for (i = 0;i < regexp->nbCounters; i++) {
5421 fprintf(output, " %d: min %d max %d\n", i, regexp->counters[i].min,
5422 regexp->counters[i].max);
5428 * @regexp: a regular expression string
5437 xmlRegexpCompile(const xmlChar *regexp) {
5441 ctxt = xmlRegNewParserCtxt(regexp);
5534 * @regexp: the regexp
5536 * Free a regexp
5539 xmlRegFreeRegexp(xmlRegexpPtr regexp) {
5541 if (regexp == NULL)
5544 if (regexp->string != NULL)
5545 xmlFree(regexp->string);
5546 if (regexp->states != NULL) {
5547 for (i = 0;i < regexp->nbStates;i++)
5548 xmlRegFreeState(regexp->states[i]);
5549 xmlFree(regexp->states);
5551 if (regexp->atoms != NULL) {
5552 for (i = 0;i < regexp->nbAtoms;i++)
5553 xmlRegFreeAtom(regexp->atoms[i]);
5554 xmlFree(regexp->atoms);
5556 if (regexp->counters != NULL)
5557 xmlFree(regexp->counters);
5558 if (regexp->compact != NULL)
5559 xmlFree(regexp->compact);
5560 if (regexp->transdata != NULL)
5561 xmlFree(regexp->transdata);
5562 if (regexp->stringMap != NULL) {
5563 for (i = 0; i < regexp->nbstrings;i++)
5564 xmlFree(regexp->stringMap[i]);
5565 xmlFree(regexp->stringMap);
5568 xmlFree(regexp);
6272 * Returns the compiled regexp or NULL in case of error