| 91 |
|
|
| 92 |
fclose(fp); |
fclose(fp); |
| 93 |
|
|
| 94 |
#ifdef _DEBUG |
log_debug("Debug: bwf_pattern_str: %s\n", bwf_pattern_str); |
|
log_error("Debug: bwf_pattern_str: %s\n", bwf_pattern_str); |
|
|
#endif |
|
| 95 |
|
|
| 96 |
return 0; |
return 0; |
| 97 |
} |
} |
| 170 |
} |
} |
| 171 |
else |
else |
| 172 |
{ |
{ |
| 173 |
#ifdef _DEBUG |
log_debug("Debug: match pattern #%d of %d at offsets [%d, %d]\n", |
|
log_error("Debug: match pattern #%d of %d at offsets [%d, %d]\n", |
|
| 174 |
i, match_count, ovector[i * 2], ovector[i * 2 + 1] - ovector[i * 2]); |
i, match_count, ovector[i * 2], ovector[i * 2 + 1] - ovector[i * 2]); |
|
#endif |
|
| 175 |
memset(str + ovector[i * 2], c_mask, ovector[i * 2 + 1] - ovector[i * 2]); |
memset(str + ovector[i * 2], c_mask, ovector[i * 2 + 1] - ovector[i * 2]); |
| 176 |
total_match_count++; |
total_match_count++; |
| 177 |
startoffset = ovector[i * 2 + 1]; |
startoffset = ovector[i * 2 + 1]; |