/usr/include/modp_html.h is in libmodpbase64-dev 3.10.3+git20160924-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | /**
* \file modp_html.h
* \brief Experimental HTML decoder
*
* This is mostly experimental.
*/
/*
* <PRE>
* High Performance HTML Decoder (for now)
*
* Copyright © 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
|