-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhtml_entity_decoder.h
40 lines (29 loc) · 1.2 KB
/
html_entity_decoder.h
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
// Copyright Rich Elmes 2019
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
/*******************************************************************************
The block below describes the properties of this module, and is read by
the Projucer to automatically generate project code that uses it.
For details about the syntax and how to create or use a module, see the
JUCE Module Format.txt file.
BEGIN_JUCE_MODULE_DECLARATION
ID: html_entity_decoder
vendor: ADSR
version: 0.0.1
name: HTML entity decoder
description: Decode HTML entities in a JUCE String
website: http://www.adsrsounds.com
license: Boost 1.0
dependencies: juce_core
END_JUCE_MODULE_DECLARATION
*******************************************************************************/
#pragma once
#define HTML_ENTITY_DECODER_H_INCLUDED
#include <juce_core/juce_core.h>
#include <map>
struct HTMLEntityDecoder
{
static juce::String decode(const juce::String& input);
static std::map<juce::String, unsigned int> entityMap;
};