| 3 |
* str_process |
* str_process |
| 4 |
* - common string processing features with UTF-8 support |
* - common string processing features with UTF-8 support |
| 5 |
* |
* |
| 6 |
* Copyright (C) 2004-2025 by Leaflet <leaflet@leafok.com> |
* Copyright (C) 2004-2025 Leaflet <leaflet@leafok.com> |
| 7 |
*/ |
*/ |
| 8 |
|
|
| 9 |
#include "common.h" |
#include "common.h" |
| 162 |
p_line_offsets[line_cnt + 1] = p_line_offsets[line_cnt] + len; |
p_line_offsets[line_cnt + 1] = p_line_offsets[line_cnt] + len; |
| 163 |
line_cnt++; |
line_cnt++; |
| 164 |
p_buf += len; |
p_buf += len; |
| 165 |
} while (p_buf[0] != '\0'); |
} while (p_buf[0] != '\0' || end_of_line); |
| 166 |
|
|
| 167 |
return line_cnt; |
return line_cnt; |
| 168 |
} |
} |