Lines Matching defs:regexp

2  * regexp.c: generic and extensible Regular Expression engine
313 xmlRegexpPtr comp; /* the compiled regexp */
380 const char *regexp = NULL;
382 regexp = (const char *) ctxt->string;
387 regexp, NULL, 0, 0,
400 const char *regexp = NULL;
404 regexp = (const char *) ctxt->string;
410 regexp, NULL, idx, 0,
425 * Allocate a new regexp and fill it with the result from the parser
427 * Returns the new regexp or NULL in case of error
435 xmlRegexpErrMemory(ctxt, "compiling regexp");
476 xmlRegexpErrMemory(ctxt, "compiling regexp");
493 xmlRegexpErrMemory(ctxt, "compiling regexp");
500 xmlRegexpErrMemory(ctxt, "compiling regexp");
584 xmlRegexpErrMemory(ctxt, "compiling regexp");
680 * Allocate a new regexp parser context
704 * @ctxt: the regexp parser context
710 * Allocate a new regexp range
733 * @range: the regexp range
735 * Free a regexp range
749 * @range: the regexp range
751 * Copy a regexp range
779 * @ctxt: the regexp parser context
805 * @atom: the regexp atom
807 * Free a regexp atom
831 * @ctxt: the regexp parser context
834 * Allocate a new regexp range
892 * @state: the regexp state
894 * Free a regexp state
910 * @ctxt: the regexp parser context
912 * Free a regexp parser context
1457 * @ctxt: a regexp parser context
1480 * @ctxt: a regexp parser context
1498 * @ctxt: a regexp parser context
1517 * @ctxt: a regexp parser context
1536 * @ctxt: a regexp parser context
1769 * @ctxt: a regexp parser context
1851 * @ctxt: a regexp parser context
1925 * @ctxt: a regexp parser context
2581 * @ctxt: a regexp parser context
2583 * Check whether the associated regexp is determinist,
2640 * @ctxt: a regexp parser context
2642 * Check whether the associated regexp is determinist,
3115 xmlRegexpErrMemory(NULL, "saving regexp");
3129 xmlRegexpErrMemory(NULL, "saving regexp");
3145 xmlRegexpErrMemory(NULL, "saving regexp");
3189 * Verifier, running an input against a compiled regexp *
3216 xmlRegexpErrMemory(NULL, "running regexp");
3506 * Build a context used for progressive evaluation of a regexp.
3689 * @exec: a regexp execution context
3696 * Returns: 1 if the regexp reached a final state, 0 if non-final, and
3772 * @exec: a regexp execution context or NULL to indicate the end
3779 * Returns: 1 if the regexp reached a final state, 0 if non-final, and
4133 * @exec: a regexp execution context or NULL to indicate the end
4139 * Returns: 1 if the regexp reached a final state, 0 if non-final, and
4150 * @exec: a regexp execution context or NULL to indicate the end
4157 * Returns: 1 if the regexp reached a final state, 0 if non-final, and
4206 * @exec: a regexp execution context
4213 * Extract informations from the regexp execution, internal routine to
4366 * @exec: a regexp execution context
4372 * Extract informations from the regexp execution,
4389 * @exec: a regexp execution context generating an error
4396 * Extract error informations from the regexp execution, the parameter
4597 * @ctxt: a regexp parser context
4617 * @ctxt: a regexp parser context
4840 * @ctxt: a regexp parser context
4985 * @ctxt: a regexp parser context
5081 * @ctxt: a regexp parser context
5099 * @ctxt: a regexp parser context
5140 * @ctxt: a regexp parser context
5165 * @ctxt: a regexp parser context
5189 * @ctxt: a regexp parser context
5253 * @ctxt: a regexp parser context
5314 * @ctxt: a regexp parser context
5335 * @ctxt: a regexp parser context
5372 * @ctxt: a regexp parser context
5421 * @regexp: the compiled regexp
5426 xmlRegexpPrint(FILE *output, xmlRegexpPtr regexp) {
5431 fprintf(output, " regexp: ");
5432 if (regexp == NULL) {
5436 fprintf(output, "'%s' ", regexp->string);
5438 fprintf(output, "%d atoms:\n", regexp->nbAtoms);
5439 for (i = 0;i < regexp->nbAtoms; i++) {
5441 xmlRegPrintAtom(output, regexp->atoms[i]);
5443 fprintf(output, "%d states:", regexp->nbStates);
5445 for (i = 0;i < regexp->nbStates; i++) {
5446 xmlRegPrintState(output, regexp->states[i]);
5448 fprintf(output, "%d counters:\n", regexp->nbCounters);
5449 for (i = 0;i < regexp->nbCounters; i++) {
5450 fprintf(output, " %d: min %d max %d\n", i, regexp->counters[i].min,
5451 regexp->counters[i].max);
5457 * @regexp: a regular expression string
5466 xmlRegexpCompile(const xmlChar *regexp) {
5470 ctxt = xmlRegNewParserCtxt(regexp);
5563 * @regexp: the regexp
5565 * Free a regexp
5568 xmlRegFreeRegexp(xmlRegexpPtr regexp) {
5570 if (regexp == NULL)
5573 if (regexp->string != NULL)
5574 xmlFree(regexp->string);
5575 if (regexp->states != NULL) {
5576 for (i = 0;i < regexp->nbStates;i++)
5577 xmlRegFreeState(regexp->states[i]);
5578 xmlFree(regexp->states);
5580 if (regexp->atoms != NULL) {
5581 for (i = 0;i < regexp->nbAtoms;i++)
5582 xmlRegFreeAtom(regexp->atoms[i]);
5583 xmlFree(regexp->atoms);
5585 if (regexp->counters != NULL)
5586 xmlFree(regexp->counters);
5587 if (regexp->compact != NULL)
5588 xmlFree(regexp->compact);
5589 if (regexp->transdata != NULL)
5590 xmlFree(regexp->transdata);
5591 if (regexp->stringMap != NULL) {
5592 for (i = 0; i < regexp->nbstrings;i++)
5593 xmlFree(regexp->stringMap[i]);
5594 xmlFree(regexp->stringMap);
5597 xmlFree(regexp);
6299 * Returns the compiled regexp or NULL in case of error