Sha256: 06f02f7a20cb28de72ae57555cfa99d21000d5fcf77cf66acdd2b5e7ad34288b

Contents?: true

Size: 767 Bytes

Versions: 3

Compression:

Stored size: 767 Bytes

Contents

#ifndef HOUDINI_H__
#define HOUDINI_H__

#include <stdlib.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_escape_href(struct buf *ob, const uint8_t *src, size_t size);

#define is_non_space(c) (!isspace(c) || (c) >= 0x7f)

#ifdef __cplusplus
}
#endif

#endif

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
greenmat-3.2.2.4 ext/greenmat/houdini.h
greenmat-3.2.2.3 ext/greenmat/houdini.h
greenmat-3.2.2.2 ext/greenmat/houdini.h