From 1e21147176d202f3c8399c280ca3a6b77f830433 Mon Sep 17 00:00:00 2001 From: jcid Date: Thu, 29 May 2008 02:19:08 +0200 Subject: - Switched from charset to content-type for handling data. - Fixed data guesser to detect ASCII, LATIN1, UTF8, KOI8-R, CP-1251 as text. --- src/misc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/misc.h') diff --git a/src/misc.h b/src/misc.h index 145b155b..c4d901ab 100644 --- a/src/misc.h +++ b/src/misc.h @@ -13,6 +13,9 @@ char *a_Misc_escape_chars(const char *str, char *esc_set); char *a_Misc_expand_tabs(const char *str); int a_Misc_get_content_type_from_data(void *Data, size_t Size,const char **PT); int a_Misc_content_type_check(const char *EntryType, const char *DetectedType); +void a_Misc_parse_content_type(const char *str, char **major, char **minor, + char **charset); +int a_Misc_content_type_cmp(const char* ct1, const char *ct2); int a_Misc_parse_geometry(char *geom, int *x, int *y, int *w, int *h); char *a_Misc_encode_base64(const char *in); Dstr *a_Misc_file2dstr(const char *filename); -- cgit v1.2.3