| 1 |
sysadm |
1.13 |
/* SPDX-License-Identifier: GPL-3.0-or-later */
|
| 2 |
|
|
/*
|
| 3 |
|
|
* str_process
|
| 4 |
|
|
* - common string processing features with UTF-8 support
|
| 5 |
|
|
*
|
| 6 |
|
|
* Copyright (C) 2004-2025 by Leaflet <leaflet@leafok.com>
|
| 7 |
|
|
*/
|
| 8 |
sysadm |
1.1 |
|
| 9 |
|
|
#ifndef _STR_PROCESS_H_
|
| 10 |
|
|
#define _STR_PROCESS_H_
|
| 11 |
|
|
|
| 12 |
|
|
#include <stdio.h>
|
| 13 |
|
|
|
| 14 |
sysadm |
1.8 |
#define MAX_SPLIT_FILE_LINES 65536
|
| 15 |
|
|
|
| 16 |
sysadm |
1.12 |
extern int str_length(const char *str, int skip_ctrl_seq);
|
| 17 |
|
|
|
| 18 |
sysadm |
1.10 |
extern int split_line(const char *buffer, int max_display_len, int *p_eol, int *p_display_len, int skip_ctrl_seq);
|
| 19 |
sysadm |
1.1 |
|
| 20 |
sysadm |
1.11 |
// p_line_widths may be NULL. Otherwise, the widths of each line will be store into the pointed array
|
| 21 |
|
|
extern long split_data_lines(const char *p_buf, int max_display_len, long *p_line_offsets, long line_offsets_count,
|
| 22 |
|
|
int skip_ctrl_seq, int *p_line_widths);
|
| 23 |
sysadm |
1.1 |
|
| 24 |
sysadm |
1.10 |
extern int str_filter(char *buffer, int skip_ctrl_seq);
|
| 25 |
sysadm |
1.9 |
|
| 26 |
sysadm |
1.1 |
#endif //_STR_PROCESS_H_
|