Lines Matching +defs:comp +defs:list
19 static void testRegexp(xmlRegexpPtr comp, const char *value) {
22 ret = xmlRegexpExec(comp, (const xmlChar *) value);
32 xmlRegexpExec(comp, (const xmlChar *) value);
38 xmlRegexpPtr comp = NULL;
62 if (comp != NULL) {
63 xmlRegFreeRegexp(comp);
64 comp = NULL;
67 comp = xmlRegexpCompile((const xmlChar *) pattern);
68 if (comp == NULL) {
72 } else if (comp == NULL) {
74 comp = xmlRegexpCompile((const xmlChar *) expression);
75 if (comp == NULL) {
79 } else if (comp != NULL) {
80 testRegexp(comp, expression);
85 if (comp != NULL)
86 xmlRegFreeRegexp(comp);
220 const char *list[40];
234 ret = xmlExpGetLanguage(ctxt, expr, (const xmlChar **) &list[0], 40);
236 printf("Failed to get list: %d\n", ret);
242 deriv = xmlExpStringDerive(ctxt, expr, BAD_CAST list[i], -1);
244 printf(" %s -> derivation failed\n", list[i]);
248 printf(" %s -> %s\n", list[i],
271 xmlRegexpPtr comp = NULL;
368 comp = xmlRegexpCompile((const xmlChar *) pattern);
369 if (comp == NULL) {
374 xmlRegexpPrint(stdout, comp);
376 testRegexp(comp, argv[i]);
380 if (comp != NULL)
381 xmlRegFreeRegexp(comp);