Lines Matching defs:pattern
536 * Compares an adr_name_t to a pattern. A pattern is just a partial
538 * the pattern is present in the name and has the same value.
541 adr_name_match(const adr_name_t *name, const adr_name_t *pattern)
543 if (pattern == NULL)
546 if (pattern->an_domain[0] != '\0' &&
547 strcmp(name->an_domain, pattern->an_domain) != 0)
550 for (int i = 0; i < pattern->an_count; i++) {
551 const char *value = adr_name_key(name, pattern->an_keys[i]);
552 if (value == NULL || strcmp(value, pattern->an_values[i]) != 0)