equal
deleted
inserted
replaced
1 #ifndef __UTILS_H__ |
1 #ifndef __UTILS_H__ |
2 #define __UTILS_H__ 1 |
2 #define __UTILS_H__ 1 |
|
3 |
|
4 #include <config.h> |
3 |
5 |
4 extern char *LocaleCharSet; |
6 extern char *LocaleCharSet; |
5 |
7 |
6 #define to_utf8(s) ((s) ? g_locale_to_utf8((s), -1, NULL,NULL,NULL) : NULL) |
8 #define to_utf8(s) ((s) ? g_locale_to_utf8((s), -1, NULL,NULL,NULL) : NULL) |
7 #define from_utf8(s) ((s) ? g_convert_with_fallback((s), -1, LocaleCharSet, \ |
9 #define from_utf8(s) ((s) ? g_convert_with_fallback((s), -1, LocaleCharSet, \ |
28 void free_arg_lst(char **arglst); |
30 void free_arg_lst(char **arglst); |
29 |
31 |
30 void replace_nl_with_dots(char *bufstr); |
32 void replace_nl_with_dots(char *bufstr); |
31 char *ut_expand_tabs(const char *text); |
33 char *ut_expand_tabs(const char *text); |
32 |
34 |
|
35 #if !defined (HAVE_STRCASESTR) |
|
36 char *strcasestr(const char *haystack, const char *needle); |
33 #endif |
37 #endif |
34 |
38 |
|
39 #endif // __UTILS_H__ |
|
40 |
35 /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */ |
41 /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */ |