/[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.12 - (hide annotations)
Wed Jul 2 04:17:33 2025 UTC (8 months, 2 weeks ago) by sysadm
Branch: MAIN
Changes since 1.11: +2 -0 lines
Content type: text/x-chdr
Support UTF8 instead of GBK

1 sysadm 1.1 /***************************************************************************
2     str_process.h - description
3     -------------------
4     Copyright : (C) 2004-2025 by Leaflet
5     Email : leaflet@leafok.com
6     ***************************************************************************/
7    
8     /***************************************************************************
9     * *
10     * This program is free software; you can redistribute it and/or modify *
11     * it under the terms of the GNU General Public License as published by *
12 sysadm 1.3 * the Free Software Foundation; either version 3 of the License, or *
13 sysadm 1.1 * (at your option) any later version. *
14     * *
15     ***************************************************************************/
16    
17     #ifndef _STR_PROCESS_H_
18     #define _STR_PROCESS_H_
19    
20     #include <stdio.h>
21    
22 sysadm 1.8 #define MAX_SPLIT_FILE_LINES 65536
23    
24 sysadm 1.12 extern int str_length(const char *str, int skip_ctrl_seq);
25    
26 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);
27 sysadm 1.1
28 sysadm 1.11 // p_line_widths may be NULL. Otherwise, the widths of each line will be store into the pointed array
29     extern long split_data_lines(const char *p_buf, int max_display_len, long *p_line_offsets, long line_offsets_count,
30     int skip_ctrl_seq, int *p_line_widths);
31 sysadm 1.1
32 sysadm 1.10 extern int str_filter(char *buffer, int skip_ctrl_seq);
33 sysadm 1.9
34 sysadm 1.1 #endif //_STR_PROCESS_H_

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