2011-11-14 15:57:52 +01:00
|
|
|
/*
|
|
|
|
* decoder.h, SJ
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _DECODER_H
|
|
|
|
#define _DECODER_H
|
|
|
|
|
2012-05-26 15:18:22 +02:00
|
|
|
void base64_encode(unsigned char *in, int inlen, char *out, int outlen);
|
|
|
|
|
2011-11-14 15:57:52 +01:00
|
|
|
void sanitiseBase64(char *s);
|
|
|
|
int decodeBase64(char *p);
|
2012-09-07 15:08:50 +02:00
|
|
|
int decode_base64_to_buffer(char *p, int plen, unsigned char *b, int blen);
|
2011-11-14 15:57:52 +01:00
|
|
|
void decodeQP(char *p);
|
2014-08-30 21:10:29 +02:00
|
|
|
void decodeHTML(char *p, int utf8);
|
2011-11-14 15:57:52 +01:00
|
|
|
void decodeURL(char *p);
|
2011-12-07 15:24:52 +01:00
|
|
|
inline void utf8_encode_char(unsigned char c, unsigned char *buf, int buflen, int *len);
|
2014-08-30 21:10:29 +02:00
|
|
|
int utf8_encode(char *inbuf, int inbuflen, char *outbuf, int outbuflen, char *encoding);
|
2011-11-14 15:57:52 +01:00
|
|
|
|
|
|
|
#endif /* _DECODER_H */
|