summaryrefslogtreecommitdiff
path: root/textcode.h
diff options
context:
space:
mode:
authorFelix von Leitner <felix-libowfat@fefe.de>2019-04-27 09:28:40 +0000
committerFelix von Leitner <felix-libowfat@fefe.de>2019-04-27 09:28:40 +0000
commita85915ba39c63d4e455270231ccfc4134292d1c9 (patch)
treeadbd0147a411eb40f889598e8112aab0d108ecf8 /textcode.h
parentc629697da40250f97fdf536e52fea064f229d82f (diff)
downloadlibowfat-a85915ba39c63d4e455270231ccfc4134292d1c9.tar.gz
libowfat-a85915ba39c63d4e455270231ccfc4134292d1c9.zip
add some comments
Diffstat (limited to 'textcode.h')
-rw-r--r--textcode.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/textcode.h b/textcode.h
index b10cf3a..beb296e 100644
--- a/textcode.h
+++ b/textcode.h
@@ -72,8 +72,13 @@ 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);
+/* Decodes escaped C string text, turning e.g. \n into newline */
size_t scan_cescape(const char* src,char* dest,size_t* destlen);
+/* Decodes escaped LDIF text, turning e.g. \5C into \ */
size_t scan_ldapescape(const char* src,char* dest,size_t* destlen);
+/* Decodes escaped JSON strings (like \"\r\n\u0013), turns escaped
+ * surrogate pairs into UTF-8. Expects input to be valid UTF-8. Ends at
+ * \0 or unescaped double quote. */
size_t scan_jsonescape(const char* src,char* dest,size_t* destlen);
size_t scan_base85(const char* src,char* dest,size_t* destlen);