• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/libxml2-2.7.2/

Lines Matching refs:regexp

2  * regexp.c: generic and extensible Regular Expression engine
305 xmlRegexpPtr comp; /* the compiled regexp */
370 const char *regexp = NULL;
372 regexp = (const char *) ctxt->string;
377 regexp, NULL, 0, 0,
390 const char *regexp = NULL;
394 regexp = (const char *) ctxt->string;
400 regexp, NULL, idx, 0,
415 * Allocate a new regexp and fill it with the result from the parser
417 * Returns the new regexp or NULL in case of error
425 xmlRegexpErrMemory(ctxt, "compiling regexp");
465 xmlRegexpErrMemory(ctxt, "compiling regexp");
482 xmlRegexpErrMemory(ctxt, "compiling regexp");
489 xmlRegexpErrMemory(ctxt, "compiling regexp");
573 xmlRegexpErrMemory(ctxt, "compiling regexp");
669 * Allocate a new regexp parser context
693 * @ctxt: the regexp parser context
699 * Allocate a new regexp range
722 * @range: the regexp range
724 * Free a regexp range
738 * @range: the regexp range
740 * Copy a regexp range
768 * @ctxt: the regexp parser context
794 * @atom: the regexp atom
796 * Free a regexp atom
820 * @ctxt: the regexp parser context
823 * Allocate a new regexp range
881 * @state: the regexp state
883 * Free a regexp state
899 * @ctxt: the regexp parser context
901 * Free a regexp parser context
1446 * @ctxt: a regexp parser context
1469 * @ctxt: a regexp parser context
1487 * @ctxt: a regexp parser context
1506 * @ctxt: a regexp parser context
1525 * @ctxt: a regexp parser context
1748 * @ctxt: a regexp parser context
1830 * @ctxt: a regexp parser context
1904 * @ctxt: a regexp parser context
2551 * @ctxt: a regexp parser context
2553 * Check whether the associated regexp is determinist,
2601 * @ctxt: a regexp parser context
2603 * Check whether the associated regexp is determinist,
3058 xmlRegexpErrMemory(NULL, "saving regexp");
3072 xmlRegexpErrMemory(NULL, "saving regexp");
3088 xmlRegexpErrMemory(NULL, "saving regexp");
3130 * Verifier, running an input against a compiled regexp *
3157 xmlRegexpErrMemory(NULL, "running regexp");
3445 * Build a context used for progressive evaluation of a regexp.
3628 * @exec: a regexp execution context
3635 * Returns: 1 if the regexp reached a final state, 0 if non-final, and
3711 * @exec: a regexp execution context or NULL to indicate the end
3718 * Returns: 1 if the regexp reached a final state, 0 if non-final, and
4071 * @exec: a regexp execution context or NULL to indicate the end
4077 * Returns: 1 if the regexp reached a final state, 0 if non-final, and
4088 * @exec: a regexp execution context or NULL to indicate the end
4095 * Returns: 1 if the regexp reached a final state, 0 if non-final, and
4144 * @exec: a regexp execution context
4151 * Extract informations from the regexp execution, internal routine to
4304 * @exec: a regexp execution context
4310 * Extract informations from the regexp execution,
4327 * @exec: a regexp execution context generating an error
4334 * Extract error informations from the regexp execution, the parameter
4535 * @ctxt: a regexp parser context
4555 * @ctxt: a regexp parser context
4778 * @ctxt: a regexp parser context
4911 * @ctxt: a regexp parser context
5006 * @ctxt: a regexp parser context
5024 * @ctxt: a regexp parser context
5065 * @ctxt: a regexp parser context
5090 * @ctxt: a regexp parser context
5114 * @ctxt: a regexp parser context
5178 * @ctxt: a regexp parser context
5239 * @ctxt: a regexp parser context
5260 * @ctxt: a regexp parser context
5297 * @ctxt: a regexp parser context
5342 * @regexp: the compiled regexp
5347 xmlRegexpPrint(FILE *output, xmlRegexpPtr regexp) {
5352 fprintf(output, " regexp: ");
5353 if (regexp == NULL) {
5357 fprintf(output, "'%s' ", regexp->string);
5359 fprintf(output, "%d atoms:\n", regexp->nbAtoms);
5360 for (i = 0;i < regexp->nbAtoms; i++) {
5362 xmlRegPrintAtom(output, regexp->atoms[i]);
5364 fprintf(output, "%d states:", regexp->nbStates);
5366 for (i = 0;i < regexp->nbStates; i++) {
5367 xmlRegPrintState(output, regexp->states[i]);
5369 fprintf(output, "%d counters:\n", regexp->nbCounters);
5370 for (i = 0;i < regexp->nbCounters; i++) {
5371 fprintf(output, " %d: min %d max %d\n", i, regexp->counters[i].min,
5372 regexp->counters[i].max);
5378 * @regexp: a regular expression string
5387 xmlRegexpCompile(const xmlChar *regexp) {
5391 ctxt = xmlRegNewParserCtxt(regexp);
5482 * @regexp: the regexp
5484 * Free a regexp
5487 xmlRegFreeRegexp(xmlRegexpPtr regexp) {
5489 if (regexp == NULL)
5492 if (regexp->string != NULL)
5493 xmlFree(regexp->string);
5494 if (regexp->states != NULL) {
5495 for (i = 0;i < regexp->nbStates;i++)
5496 xmlRegFreeState(regexp->states[i]);
5497 xmlFree(regexp->states);
5499 if (regexp->atoms != NULL) {
5500 for (i = 0;i < regexp->nbAtoms;i++)
5501 xmlRegFreeAtom(regexp->atoms[i]);
5502 xmlFree(regexp->atoms);
5504 if (regexp->counters != NULL)
5505 xmlFree(regexp->counters);
5506 if (regexp->compact != NULL)
5507 xmlFree(regexp->compact);
5508 if (regexp->transdata != NULL)
5509 xmlFree(regexp->transdata);
5510 if (regexp->stringMap != NULL) {
5511 for (i = 0; i < regexp->nbstrings;i++)
5512 xmlFree(regexp->stringMap[i]);
5513 xmlFree(regexp->stringMap);
5516 xmlFree(regexp);
6205 * Returns the compiled regexp or NULL in case of error