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);
|
|
|
|
void decodeQP(char *p);
|
|
|
|
void decodeHTML(char *p);
|
|
|
|
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);
|
|
|
|
void utf8_encode(unsigned char *p);
|
2011-11-14 15:57:52 +01:00
|
|
|
|
|
|
|
#endif /* _DECODER_H */
|