Sha256: c842bc7638736ccbf608d5ebc38faef697ef28e812f58ebb3808078562a302c1

Contents?: true

Size: 1.32 KB

Versions: 71

Compression:

Stored size: 1.32 KB

Contents

#ifndef HOUDINI_H__
#define HOUDINI_H__

#include "buffer.h"

#ifdef __cplusplus
extern "C" {
#endif

#ifdef HOUDINI_USE_LOCALE
#	define _isxdigit(c) isxdigit(c)
#	define _isdigit(c) isdigit(c)
#else
/*
 * Helper _isdigit methods -- do not trust the current locale
 * */
#	define _isxdigit(c) (strchr("0123456789ABCDEFabcdef", (c)) != NULL)
#	define _isdigit(c) ((c) >= '0' && (c) <= '9')
#endif

extern void houdini_escape_html(struct buf *ob, const uint8_t *src, size_t size);
extern void houdini_escape_html0(struct buf *ob, const uint8_t *src, size_t size, int secure);
extern void houdini_unescape_html(struct buf *ob, const uint8_t *src, size_t size);
extern void houdini_escape_xml(struct buf *ob, const uint8_t *src, size_t size);
extern void houdini_escape_uri(struct buf *ob, const uint8_t *src, size_t size);
extern void houdini_escape_url(struct buf *ob, const uint8_t *src, size_t size);
extern void houdini_escape_href(struct buf *ob, const uint8_t *src, size_t size);
extern void houdini_unescape_uri(struct buf *ob, const uint8_t *src, size_t size);
extern void houdini_unescape_url(struct buf *ob, const uint8_t *src, size_t size);
extern void houdini_escape_js(struct buf *ob, const uint8_t *src, size_t size);
extern void houdini_unescape_js(struct buf *ob, const uint8_t *src, size_t size);

#ifdef __cplusplus
}
#endif

#endif

Version data entries

71 entries across 67 versions & 10 rubygems

Version Path
tdiary-5.0.5 vendor/bundle/gems/github-markdown-0.6.9/ext/markdown/houdini.h
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/github-markdown-0.6.9/ext/markdown/houdini.h
tdiary-5.0.4 vendor/bundle/gems/github-markdown-0.6.9/ext/markdown/houdini.h
redsnow-0.4.4 ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini.h
lounge_lizard-0.1.4 ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini.h
lounge_lizard-0.1.3 ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini.h
lounge_lizard-0.1.2 ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini.h
lounge_lizard-0.1.1 ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini.h
lounge_lizard-0.1.0 ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini.h
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/github-markdown-0.6.9/ext/markdown/houdini.h
github-markdown-0.6.9 ext/markdown/houdini.h
redsnow-0.4.3 ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini.h
redsnow-0.4.1 ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini.h
redsnow-0.4.0 ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini.h
redsnow-0.3.7 ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini.h
redsnow-0.3.4 ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini.h
github-markdown-0.6.8 ext/markdown/houdini.h
redsnow-0.3.3 ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini.h
redsnow-0.3.2 ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini.h
redsnow-0.3.1 ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini.h