summaryrefslogtreecommitdiff
path: root/textcode.h
diff options
context:
space:
mode:
authorFelix von Leitner <felix-libowfat@fefe.de>2014-09-17 13:58:59 +0000
committerFelix von Leitner <felix-libowfat@fefe.de>2014-09-17 13:58:59 +0000
commitb3b2c14973713ce33c4d3eaabffe8620dad3d81c (patch)
treeaecffa70c77803dc0be6e4601eb7a67030071844 /textcode.h
parent95999b640a48b6cfa1390a3237a44db8173aa906 (diff)
downloadlibowfat-b3b2c14973713ce33c4d3eaabffe8620dad3d81c.tar.gz
libowfat-b3b2c14973713ce33c4d3eaabffe8620dad3d81c.zip
add scan_html_tagarg
Diffstat (limited to 'textcode.h')
-rw-r--r--textcode.h31
1 files changed, 18 insertions, 13 deletions
diff --git a/textcode.h b/textcode.h
index 336668a..2bb1132 100644
--- a/textcode.h
+++ b/textcode.h
@@ -57,19 +57,24 @@ size_t fmt_base85(char* dest,const char* src,size_t len);
/* These read one line from src, decode it, and write the result to
* dest. The number of decoded bytes is written to destlen. dest
* should be able to hold strlen(src) bytes as a rule of thumb. */
-size_t scan_uuencoded(const char *src,char *dest,size_t *destlen);
-size_t scan_base64(const char *src,char *dest,size_t *destlen);
-size_t scan_quotedprintable(const char *src,char *dest,size_t *destlen);
-size_t scan_urlencoded(const char *src,char *dest,size_t *destlen);
-size_t scan_urlencoded2(const char *src,char *dest,size_t *destlen);
-size_t scan_yenc(const char *src,char *dest,size_t *destlen);
-size_t scan_hexdump(const char *src,char *dest,size_t *destlen);
-size_t scan_html(const char *src,char *dest,size_t *destlen);
-size_t scan_cescape(const char *src,char *dest,size_t *destlen);
-size_t scan_ldapescape(const char* src,char* dest,size_t *destlen);
-size_t scan_jsonescape(const char* src,char* dest,size_t *destlen);
-
-size_t scan_base85(const char* src,char* dest,size_t *destlen);
+size_t scan_uuencoded(const char* src,char* dest,size_t* destlen);
+size_t scan_base64(const char* src,char* dest,size_t* destlen);
+size_t scan_quotedprintable(const char* src,char* dest,size_t* destlen);
+size_t scan_urlencoded(const char* src,char* dest,size_t* destlen);
+size_t scan_urlencoded2(const char* src,char* dest,size_t* destlen);
+size_t scan_yenc(const char* src,char* dest,size_t* destlen);
+size_t scan_hexdump(const char* src,char* dest,size_t* destlen);
+/* decodes all html5-standardized &foo; escapes, and also
+ * "<br>" to "\n" and "<p>" to "\n\n", leaves the rest of the tags alone */
+size_t scan_html(const char* src,char* dest,size_t* destlen);
+/* decodes all html5-standardized &foo; escapes, but leaves all tags
+ * alone */
+size_t scan_html_tagarg(const char* src,char* dest,size_t* destlen);
+size_t scan_cescape(const char* src,char* dest,size_t* destlen);
+size_t scan_ldapescape(const char* src,char* dest,size_t* destlen);
+size_t scan_jsonescape(const char* src,char* dest,size_t* destlen);
+
+size_t scan_base85(const char* src,char* dest,size_t* destlen);
#ifdef STRALLOC_H
/* WARNING: these functions _append_ to the stralloc, not overwrite! */