blob: 4519ad0d9d7d73e9b69239c4bdb73167cf02312e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
/* ########################################################### */
/* This Software is licensed under the GPL licensed Version 2, */
/* please read http://www.gnu.org/copyleft/gpl.html */
/* ########################################################### */
#ifndef UTILS_H
#define UTILS_H
# include <errno.h>
# include <unistd.h>
typedef struct interval_s interval_t;
typedef struct range_s range_t;
struct interval_s
{
long low;
long high;
};
/* Structure used by the replace function to delimit matches */
/* """"""""""""""""""""""""""""""""""""""""""""""""""""""""" */
struct range_s
{
size_t start;
size_t end;
};
interval_t *
interval_new(void);
int
interval_comp(void * a, void * b);
void
interval_swap(void * a, void * b);
void
merge_intervals(ll_t * list);
char *
concat(const char * str1, ...);
int
strprefix(char * str1, char * str2);
void
ltrim(char * str, const char * trim);
void
rtrim(char * str, const char * trim, size_t min_len);
int
my_strcasecmp(const char * str1, const char * str2);
char *
my_strcpy(char * dst, char * src);
int
isprint7(int i);
int
isprint8(int i);
int
xwcscasecmp(const wchar_t * w1s, const wchar_t * w2s);
int
is_integer(const char * const s);
#endif
|