String.h 844 Bytes
Newer Older
Hisham Muhammad's avatar
Hisham Muhammad committed
1
/* Do not edit this file. It was automatically generated. */
Hisham Muhammad's avatar
Hisham Muhammad committed
2
3
4
5
6

#ifndef HEADER_String
#define HEADER_String
/*
htop
Hisham Muhammad's avatar
Hisham Muhammad committed
7
(C) 2004-2010 Hisham H. Muhammad
Hisham Muhammad's avatar
Hisham Muhammad committed
8
9
10
11
12
13
14
15
16
17
18
19
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/

#define _GNU_SOURCE
#include <string.h>
#include <strings.h>
#include <stdlib.h>
#include <stdio.h>

#include "debug.h"

20
21
#define String_startsWith(s, match) (strstr((s), (match)) == (s))

Hisham Muhammad's avatar
Hisham Muhammad committed
22
extern char* String_copy(const char* orig);
Hisham Muhammad's avatar
Hisham Muhammad committed
23

Hisham Muhammad's avatar
Hisham Muhammad committed
24
char* String_cat(const char* s1, const char* s2);
Hisham Muhammad's avatar
Hisham Muhammad committed
25

Hisham Muhammad's avatar
Hisham Muhammad committed
26
char* String_trim(const char* in);
Hisham Muhammad's avatar
Hisham Muhammad committed
27

28
extern int String_eq(const char* s1, const char* s2);
Hisham Muhammad's avatar
Hisham Muhammad committed
29

Hisham Muhammad's avatar
Hisham Muhammad committed
30
char** String_split(const char* s, char sep);
Hisham Muhammad's avatar
Hisham Muhammad committed
31
32
33

void String_freeArray(char** s);

Hisham Muhammad's avatar
Hisham Muhammad committed
34
int String_contains_i(const char* s, const char* match);
Hisham Muhammad's avatar
Hisham Muhammad committed
35

Hisham Muhammad's avatar
Hisham Muhammad committed
36
37
char* String_getToken(const char* line, const unsigned short int numMatch);

Hisham Muhammad's avatar
Hisham Muhammad committed
38
#endif