summaryrefslogtreecommitdiff
path: root/textcode.h
diff options
context:
space:
mode:
authorFelix von Leitner <felix-libowfat@fefe.de>2003-04-23 20:17:57 +0000
committerFelix von Leitner <felix-libowfat@fefe.de>2003-04-23 20:17:57 +0000
commit4a830369db2c643d25044f628c99fe1909eccb9a (patch)
tree5f308bfd9026fd2298d8953f1730c9d25534fe96 /textcode.h
parent9d4b5037400504dc1224794f26be1ecd8dd4e074 (diff)
downloadlibowfat-4a830369db2c643d25044f628c99fe1909eccb9a.tar.gz
libowfat-4a830369db2c643d25044f628c99fe1909eccb9a.zip
add html encoders
add vd (mldonkey support program) as test for socket API
Diffstat (limited to 'textcode.h')
-rw-r--r--textcode.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/textcode.h b/textcode.h
index 1fb6ad2..955eacf 100644
--- a/textcode.h
+++ b/textcode.h
@@ -9,6 +9,8 @@ unsigned int fmt_quotedprintable(char* dest,const char* src,unsigned int len);
unsigned int fmt_urlencoded(char* dest,const char* src,unsigned int len);
unsigned int fmt_yenc(char* dest,const char* src,unsigned int len);
unsigned int fmt_hexdump(char* dest,const char* src,unsigned int len);
+/* this changes '<' to '&lt;' and '&' to '&amp;' */
+unsigned int fmt_html(char* dest,const char* src,unsigned int len);
/* These read one line from src, decoded it, and write the result to
* dest. The number of decoded bytes is written to destlen. dest
@@ -19,6 +21,7 @@ unsigned int scan_quotedprintable(const char *src,char *dest,unsigned int *destl
unsigned int scan_urlencoded(const char *src,char *dest,unsigned int *destlen);
unsigned int scan_yenc(const char *src,char *dest,unsigned int *destlen);
unsigned int scan_hexdump(const char *src,char *dest,unsigned int *destlen);
+unsigned int scan_html(const char *src,char *dest,unsigned int *destlen);
#ifdef STRALLOC_H
/* These take len bytes from src and write them in encoded form to sa.