00001
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __CHARCONVERT_H
00021 #define __CHARCONVERT_H
00022
00033 u_char *charset_convert(const u_char *toencode,size_t in_len,const u_char *from_charset,const u_char *to_charset,size_t *out_len_p);
00034
00044 u_char *htmlentities(const u_char *string,int sq);
00045
00054 size_t print_htmlentities_encoded(const u_char *string,int sq,FILE *handle);
00055
00065 int utf8_to_unicode(const u_char *s,size_t n,u_int32_t *num);
00066
00080 u_char *htmlentities_charset_convert(const u_char *toencode, const u_char *from, const u_char *to,size_t *outlen,int sq);
00081
00094 u_char *charset_convert_entities(const u_char *toencode, size_t in_len,const u_char *from, const u_char *to,size_t *outlen);
00095
00102 int is_valid_utf8_string(const u_char *str,size_t len);
00103
00104 #endif
00105
00106