Lines Matching refs:end_pattern
57 const char *end_pattern, *start_subst; in add_substitution() local
80 end_pattern = strchr(rule_text + 1, *rule_text); in add_substitution()
81 if (end_pattern == NULL) in add_substitution()
84 pattern = malloc(end_pattern - rule_text); in add_substitution()
87 memcpy(pattern, rule_text + 1, end_pattern - rule_text - 1); in add_substitution()
88 pattern[end_pattern - rule_text - 1] = '\0'; in add_substitution()
97 start_subst = end_pattern + 1; in add_substitution()
98 end_pattern = strchr(start_subst, *rule_text); in add_substitution()
99 if (end_pattern == NULL) in add_substitution()
102 rule->result = malloc(end_pattern - start_subst + 1); in add_substitution()
105 memcpy(rule->result, start_subst, end_pattern - start_subst); in add_substitution()
106 rule->result[end_pattern - start_subst] = '\0'; in add_substitution()
116 while (*++end_pattern) { in add_substitution()
117 switch (*end_pattern) { in add_substitution()
149 lafe_errc(1, 0, "Invalid replacement flag %c", *end_pattern); in add_substitution()