1 /**
2  * Header for strings functions
3 
4  * Copyright (C) 2005, 2007, 2008, 2009  Sylvain Beucler
5 
6  * This file is part of GNU FreeDink
7 
8  * GNU FreeDink is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License as
10  * published by the Free Software Foundation; either version 3 of the
11  * License, or (at your option) any later version.
12 
13  * GNU FreeDink is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * General Public License for more details.
17 
18  * You should have received a copy of the GNU General Public License
19  * along with this program.  If not, see
20  * <http://www.gnu.org/licenses/>.
21  */
22 
23 #ifndef _STRING_UTIL_H
24 #define _STRING_UTIL_H
25 
26 #ifdef __cplusplus
27 extern "C"
28 {
29 #endif
30 
31   extern void strtoupper(char *s);
32   extern void strcpy_nooverlap(char *dst, char* src);
33   extern int asprintf_append(char **strp, const char* fmt, ...);
34   extern void reverse(char *st);
35   extern void strchar(char *string, char ch);
36   extern char* separate_string (char* str, int num, char sep);
37   extern char* get_word(char* line, int word);
38   extern /*bool*/int compare(char *orig, char *comp);
39   extern void replace(const char* find, const char* repl, char** line_p);
40   extern void replace_norealloc(const char* find, const char* repl, char* line);
41   extern char* latin1_to_utf8(char* source);
42 
43 #ifdef __cplusplus
44 }
45 #endif
46 
47 #endif
48