00001 #ifdef __cplusplus 00002 extern "C" { 00003 #endif 00004 00005 /* Registered charset names are at most 40 characters long. */ 00006 00007 #define CHARSET_MAX 41 00008 00009 /* Figure out the charset to use from the ContentType. 00010 buf contains the body of the header field (the part after "Content-Type:"). 00011 charset gets the charset to use. It must be at least CHARSET_MAX chars 00012 long. charset will be empty if the default charset should be used. 00013 */ 00014 00015 void getXMLCharset(const char *buf, char *charset); 00016 00017 #ifdef __cplusplus 00018 } 00019 #endif