/[LeafOK_CVS]/lbbs/include/str_process.h
ViewVC logotype

Annotation of /lbbs/include/str_process.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.16 - (hide annotations)
Sat Nov 8 08:21:31 2025 UTC (4 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.15: +2 -0 lines
Content type: text/x-chdr
Support dynamic wide-character display width in str_process and editor related functions
Add dynamic / fixed wide-character display width selection

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 sysadm 1.14 * Copyright (C) 2004-2025 Leaflet <leaflet@leafok.com>
7 sysadm 1.13 */
8 sysadm 1.1
9     #ifndef _STR_PROCESS_H_
10     #define _STR_PROCESS_H_
11    
12     #include <stdio.h>
13    
14 sysadm 1.15 enum str_process_constant_t
15     {
16     MAX_SPLIT_FILE_LINES = 65536,
17     };
18 sysadm 1.8
19 sysadm 1.16 extern int UTF8_fixed_width;
20    
21 sysadm 1.12 extern int str_length(const char *str, int skip_ctrl_seq);
22    
23 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);
24 sysadm 1.1
25 sysadm 1.11 // p_line_widths may be NULL. Otherwise, the widths of each line will be store into the pointed array
26     extern long split_data_lines(const char *p_buf, int max_display_len, long *p_line_offsets, long line_offsets_count,
27     int skip_ctrl_seq, int *p_line_widths);
28 sysadm 1.1
29 sysadm 1.10 extern int str_filter(char *buffer, int skip_ctrl_seq);
30 sysadm 1.9
31 sysadm 1.1 #endif //_STR_PROCESS_H_

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1