Sha256: 5819f9eda35c292a9dd507e6a4ec92ec36eb9d6e240a4e90a19c25240c051362

Contents?: true

Size: 1021 Bytes

Versions: 6

Compression:

Stored size: 1021 Bytes

Contents

/**
 * \file modp_html.h
 * \brief Experimental HTML decoder
 *
 * This is mostly experimental.
 */

/*
 * <PRE>
 * High Performance HTML Decoder (for now)
 *
 * Copyright &copy; 2013-2016 Nick Galbreath
 * All rights reserved.
 *
 * https://github.com/client9/stringencoders
 *
 * Released under MIT license.  See LICENSE for details.
 * </PRE>
 */

#ifndef COM_MODP_STRINGENCODERS_HTML
#define COM_MODP_STRINGENCODERS_HTML

#include "modp_stdint.h"

#ifdef __cplusplus
#define BEGIN_C extern "C" {
#define END_C }
#else
#define BEGIN_C
#define END_C
#endif

BEGIN_C

/**
 * \brief HTML decode a single character
 *
 * \param[in] str The input string
 * \param[in] len  The length of the input string, excluding any
 *   final null byte.
 * \param[out] Number of characters consumed
 * \return unicode character value or -1 if error
 *
 * Decode numerical entities (decimal or hexadecimal),
 *   and all named characters
 *
 */
int modp_html_decode_char_at(const char* str, size_t len, size_t* consumed);

END_C

#endif

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ffi-hydrogen-0.1.5 vendor/stringencoders/src/modp_html.h
ffi-hydrogen-0.1.4 vendor/stringencoders/src/modp_html.h
ffi-hydrogen-0.1.3 vendor/stringencoders/src/modp_html.h
ffi-hydrogen-0.1.2 vendor/stringencoders/src/modp_html.h
ffi-hydrogen-0.1.1 vendor/stringencoders/src/modp_html.h
ffi-hydrogen-0.1.0 vendor/stringencoders/src/modp_html.h