• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/gettext-tools/gnulib-lib/libxml/

Lines Matching refs: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
4892 * @ctxt: a regexp parser context
4910 * @ctxt: a regexp parser context
4951 * @ctxt: a regexp parser context
4976 * @ctxt: a regexp parser context
5000 * @ctxt: a regexp parser context
5064 * @ctxt: a regexp parser context
5118 * @ctxt: a regexp parser context
5139 * @ctxt: a regexp parser context
5176 * @ctxt: a regexp parser context
5221 * @regexp: the compiled regexp
5226 xmlRegexpPrint(FILE *output, xmlRegexpPtr regexp) {
5231 fprintf(output, " regexp: ");
5232 if (regexp == NULL) {
5236 fprintf(output, "'%s' ", regexp->string);
5238 fprintf(output, "%d atoms:\n", regexp->nbAtoms);
5239 for (i = 0;i < regexp->nbAtoms; i++) {
5241 xmlRegPrintAtom(output, regexp->atoms[i]);
5243 fprintf(output, "%d states:", regexp->nbStates);
5245 for (i = 0;i < regexp->nbStates; i++) {
5246 xmlRegPrintState(output, regexp->states[i]);
5248 fprintf(output, "%d counters:\n", regexp->nbCounters);
5249 for (i = 0;i < regexp->nbCounters; i++) {
5250 fprintf(output, " %d: min %d max %d\n", i, regexp->counters[i].min,
5251 regexp->counters[i].max);
5257 * @regexp: a regular expression string
5266 xmlRegexpCompile(const xmlChar *regexp) {
5270 ctxt = xmlRegNewParserCtxt(regexp);
5357 * @regexp: the regexp
5359 * Free a regexp
5362 xmlRegFreeRegexp(xmlRegexpPtr regexp) {
5364 if (regexp == NULL)
5367 if (regexp->string != NULL)
5368 xmlFree(regexp->string);
5369 if (regexp->states != NULL) {
5370 for (i = 0;i < regexp->nbStates;i++)
5371 xmlRegFreeState(regexp->states[i]);
5372 xmlFree(regexp->states);
5374 if (regexp->atoms != NULL) {
5375 for (i = 0;i < regexp->nbAtoms;i++)
5376 xmlRegFreeAtom(regexp->atoms[i]);
5377 xmlFree(regexp->atoms);
5379 if (regexp->counters != NULL)
5380 xmlFree(regexp->counters);
5381 if (regexp->compact != NULL)
5382 xmlFree(regexp->compact);
5383 if (regexp->transdata != NULL)
5384 xmlFree(regexp->transdata);
5385 if (regexp->stringMap != NULL) {
5386 for (i = 0; i < regexp->nbstrings;i++)
5387 xmlFree(regexp->stringMap[i]);
5388 xmlFree(regexp->stringMap);
5391 xmlFree(regexp);
6080 * Returns the compiled regexp or NULL in case of error