1 #ifndef __DILLO_MISC_H__
2 #define __DILLO_MISC_H__
3 
4 #include <stddef.h>     /* for size_t */
5 
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif /* __cplusplus */
10 
11 
12 char *a_Misc_escape_chars(const char *str, const char *esc_set);
13 int a_Misc_expand_tabs(char **start, char *end, char *buf, int buflen);
14 int a_Misc_get_content_type_from_data(void *Data, size_t Size,const char **PT);
15 int a_Misc_content_type_check(const char *EntryType, const char *DetectedType);
16 void a_Misc_parse_content_type(const char *str, char **major, char **minor,
17                                char **charset);
18 int a_Misc_content_type_cmp(const char* ct1, const char *ct2);
19 int a_Misc_parse_geometry(char *geom, int *x, int *y, int *w, int *h);
20 int a_Misc_parse_search_url(char *source, char **label, char **urlstr);
21 char *a_Misc_encode_base64(const char *in);
22 Dstr *a_Misc_file2dstr(const char *filename);
23 
24 #ifdef __cplusplus
25 }
26 #endif /* __cplusplus */
27 
28 #endif /* __DILLO_MISC_H__ */
29 
30