aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.h
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-06-27 03:01:20 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-06-29 01:35:45 +0200
commit519f1f8031687ebf3853817a8b2e3557c2443d67 (patch)
tree320be2942773ee95c34a798da09685728115045f /src/utils.h
parent4cfeb39fbe99be28f22611c6146b1655549f7850 (diff)
downloadblogc-519f1f8031687ebf3853817a8b2e3557c2443d67.tar.gz
blogc-519f1f8031687ebf3853817a8b2e3557c2443d67.tar.bz2
blogc-519f1f8031687ebf3853817a8b2e3557c2443d67.zip
content-parser: rewrote inline parser.
parser is stricter now, and won't produce invalid HTML anymore.
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h
index 411295a..aefcbf3 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -51,6 +51,7 @@ char* sb_str_rstrip(char *str);
char* sb_str_strip(char *str);
char** sb_str_split(const char *str, char c, unsigned int max_pieces);
char* sb_str_replace(const char *str, const char search, const char *replace);
+char* sb_str_find(const char *str, char c);
void sb_strv_free(char **strv);
char* sb_strv_join(char **strv, const char *separator);
size_t sb_strv_length(char **strv);
@@ -71,6 +72,7 @@ sb_string_t* sb_string_append_len(sb_string_t *str, const char *suffix, size_t l
sb_string_t* sb_string_append(sb_string_t *str, const char *suffix);
sb_string_t* sb_string_append_c(sb_string_t *str, char c);
sb_string_t* sb_string_append_printf(sb_string_t *str, const char *format, ...);
+sb_string_t* sb_string_append_escaped(sb_string_t *str, const char *suffix);
// trie