Lines Matching refs:pattern
177 check_installed_pattern(const char *pattern) in check_installed_pattern() argument
181 match_installed_pkgs(pattern, check_one_installed_pkg, &ret); in check_installed_pattern()
388 check_pkg_history_pattern(const char *pkg, const char *pattern) in check_pkg_history_pattern() argument
392 if (strpbrk(pattern, "*[") != NULL) { in check_pkg_history_pattern()
394 for (delim = pattern; in check_pkg_history_pattern()
402 pattern); in check_pkg_history_pattern()
403 if ((delim = strchr(pattern, '>')) != NULL || in check_pkg_history_pattern()
404 (delim = strchr(pattern, '<')) != NULL) in check_pkg_history_pattern()
407 pattern); in check_pkg_history_pattern()
408 } else if ((delim = strchr(pattern, '>')) != NULL) { in check_pkg_history_pattern()
410 if ((delim = strchr(pattern, '<')) != NULL && delim < end_base) in check_pkg_history_pattern()
412 pattern); in check_pkg_history_pattern()
413 } else if ((delim = strchr(pattern, '<')) != NULL) { in check_pkg_history_pattern()
415 } else if ((end_base = strrchr(pattern, '-')) == NULL) { in check_pkg_history_pattern()
417 pattern); in check_pkg_history_pattern()
420 if (strncmp(pkg, pattern, end_base - pattern) != 0) in check_pkg_history_pattern()
422 if (pkg[end_base - pattern] != '\0') in check_pkg_history_pattern()
429 check_pkg_history1(const char *pkg, const char *pattern) in check_pkg_history1() argument
435 open_brace = strchr(pattern, '{'); in check_pkg_history1()
437 if ((close_brace = strchr(pattern, '}')) != NULL) in check_pkg_history1()
439 pattern); in check_pkg_history1()
440 return check_pkg_history_pattern(pkg, pattern); in check_pkg_history1()
443 if (strchr(pattern, '}') != close_brace) in check_pkg_history1()
445 pattern); in check_pkg_history1()
453 expanded_pkg = xmalloc(strlen(pattern)); /* {} are going away... */ in check_pkg_history1()
455 prefix_len = open_brace - pattern; in check_pkg_history1()
458 memcpy(expanded_pkg, pattern, prefix_len); in check_pkg_history1()