• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/bmake/

Lines Matching defs:pattern

241 /* Flags for pattern matching in the :S and :C modifiers */
1369 * Place the word in the buffer if it matches the given pattern.
1374 const char *pattern = data;
1375 DEBUG2(VAR, "VarMatch [%s] [%s]\n", word, pattern);
1376 if (Str_Match(word, pattern))
1382 * Place the word in the buffer if it doesn't match the given pattern.
1387 const char *pattern = data;
1388 if (!Str_Match(word, pattern))
1395 * Check word against pattern for a match (% is a wildcard).
1399 * pattern Pattern to examine against
1404 * out_hasPercent returns whether the pattern contains a percent.
1407 SysVMatch(const char *word, const char *pattern,
1410 const char *p = pattern;
1422 return NULL; /* empty word does not match pattern */
1432 /* No more pattern, return the rest of the string */
1487 /* Copy the prefix of the replacement pattern */
1494 /* Append the suffix of the replacement pattern */
2143 * if the last character of the pattern is a $. */
2178 if (p[1] == delim) { /* Unescaped $ at end of pattern */
2665 Boolean copy = FALSE; /* pattern should be, or has been, copied */
2668 char *pattern;
2706 /* Compress the \:'s out of the pattern. */
2707 pattern = bmake_malloc((size_t)(endpat - (mod + 1)) + 1);
2708 dst = pattern;
2719 pattern = bmake_strsedup(mod + 1, endpat);
2723 char *old_pattern = pattern;
2724 (void)Var_Subst(pattern, st->scope, st->eflags, &pattern);
2730 st->var->name.str, val, pattern);
2733 st->newVal = FStr_InitOwn(ModifyWords(val, callback, pattern,
2735 free(pattern);
2761 * If pattern begins with '^', it is anchored to the
2762 * start of the word -- skip over it and flag pattern.