Lines Matching +defs:match +defs:string
148 * Take care of substitution string
390 * Rewrites string according to rule; may return:
405 regmatch_t match[ REWRITE_MAX_MATCH ];
409 char *string;
421 string = (char *)arg;
424 * In case recursive match is required (default)
429 " rule='%s' string='%s' [%d pass(es)]\n",
430 rule->lr_pattern, string, strcnt + 1 );
434 rc = regexec( &rule->lr_regex, string, nmatch, match, 0 );
436 if ( *result == NULL && string != arg ) {
437 free( string );
441 * No match is OK; *result = NULL means no match
446 rc = rewrite_subst_apply( info, op, rule->lr_subst, string,
447 match, &val );
451 if ( string != arg ) {
452 free( string );
453 string = NULL;
463 string = *result;