Lines Matching defs:ptrn
250 AddDirectory(char *head, char *ptrn, char *rest, char *map)
263 char *tmp = ptrn;
264 if ((rest == NULL) && (ptrn != NULL) && (strchr(ptrn, '/') == NULL))
266 tmp = ptrn;
267 map = strchr(ptrn, '(');
269 else if ((rest == NULL) && (ptrn == NULL) &&
308 if (ptrn && (!XkbNameMatchesPattern(filename, ptrn)))
352 char *str, *head, *ptrn, *rest = NULL;
356 ptrn = NULL;
361 ptrn = str;
366 ptrn = NULL;
369 else if (ptrn == NULL)
372 ptrn = head_in;
377 *ptrn = '\0';
378 ptrn++;
380 if (ptrn)
382 rest = strchr(ptrn, '/');
389 if (((rest && ptrn)
390 && ((strchr(ptrn, '(') != NULL) || (strchr(ptrn, ')') != NULL)))
398 return AddDirectory(head, ptrn, rest, NULL);
404 MapMatches(char *mapToConsider, char *ptrn)
406 if (ptrn != NULL)
407 return XkbNameMatchesPattern(mapToConsider, ptrn);