diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2014-12-15 12:05:04 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2014-12-15 12:05:04 -0800 |
commit | d6077ea037e23f6e2c0d83dda7b5d7106f48d1a3 (patch) | |
tree | 5bf5a03ba41d8570ecea1846ac6cd36c049bfc7a /src/houdini_href_e.c | |
parent | ab19f3cf3c247a5216ae7e7e78ef8c2eaac7ce0a (diff) |
Re-added cmark_ prefix to strbuf and chunk.
Reverts 225d720.
Diffstat (limited to 'src/houdini_href_e.c')
-rw-r--r-- | src/houdini_href_e.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/houdini_href_e.c b/src/houdini_href_e.c index 1c99432..c8949d4 100644 --- a/src/houdini_href_e.c +++ b/src/houdini_href_e.c @@ -49,7 +49,7 @@ static const char HREF_SAFE[] = { }; int -houdini_escape_href(strbuf *ob, const uint8_t *src, size_t size) +houdini_escape_href(cmark_strbuf *ob, const uint8_t *src, size_t size) { static const uint8_t hex_chars[] = "0123456789ABCDEF"; size_t i = 0, org; @@ -63,7 +63,7 @@ houdini_escape_href(strbuf *ob, const uint8_t *src, size_t size) i++; if (likely(i > org)) - strbuf_put(ob, src + org, i - org); + cmark_strbuf_put(ob, src + org, i - org); /* escaping */ if (i >= size) @@ -73,14 +73,14 @@ houdini_escape_href(strbuf *ob, const uint8_t *src, size_t size) /* amp appears all the time in URLs, but needs * HTML-entity escaping to be inside an href */ case '&': - strbuf_puts(ob, "&"); + cmark_strbuf_puts(ob, "&"); break; /* the single quote is a valid URL character * according to the standard; it needs HTML * entity escaping too */ case '\'': - strbuf_puts(ob, "'"); + cmark_strbuf_puts(ob, "'"); break; /* the space can be escaped to %20 or a plus @@ -89,7 +89,7 @@ houdini_escape_href(strbuf *ob, const uint8_t *src, size_t size) * when building GET strings */ #if 0 case ' ': - strbuf_putc(ob, '+'); + cmark_strbuf_putc(ob, '+'); break; #endif @@ -97,7 +97,7 @@ houdini_escape_href(strbuf *ob, const uint8_t *src, size_t size) default: hex_str[1] = hex_chars[(src[i] >> 4) & 0xF]; hex_str[2] = hex_chars[src[i] & 0xF]; - strbuf_put(ob, hex_str, 3); + cmark_strbuf_put(ob, hex_str, 3); } i++; |