| 6 |
* Copyright (C) 2004-2025 Leaflet <leaflet@leafok.com> |
* Copyright (C) 2004-2025 Leaflet <leaflet@leafok.com> |
| 7 |
*/ |
*/ |
| 8 |
|
|
| 9 |
|
#ifdef HAVE_CONFIG_H |
| 10 |
|
#include "config.h" |
| 11 |
|
#endif |
| 12 |
|
|
| 13 |
#define PCRE2_CODE_UNIT_WIDTH 8 |
#define PCRE2_CODE_UNIT_WIDTH 8 |
| 14 |
|
|
| 15 |
#include "bwf.h" |
#include "bwf.h" |
| 60 |
return -3; |
return -3; |
| 61 |
} |
} |
| 62 |
|
|
| 63 |
if (line[len_line - 1] == '\n') |
while (len_line > 0 && (line[len_line - 1] == '\n' || line[len_line - 1] == '\r')) |
| 64 |
{ |
{ |
| 65 |
line[len_line - 1] = '\0'; |
line[len_line - 1] = '\0'; |
| 66 |
|
len_line--; |
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
if (len_line == 0) |
| 70 |
|
{ |
| 71 |
|
continue; |
| 72 |
} |
} |
| 73 |
|
|
| 74 |
if (p > bwf_pattern_str) |
if (p > bwf_pattern_str) |