fix bug where environment was wrongly dropped, loosing type variable information
[hiphop-php.git] / hphp / zend / html-table.h
blobb1d0d6e889720bad22ec102c97621678894ce39d
1 /*
2 +----------------------------------------------------------------------+
3 | HipHop for PHP |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
6 | Copyright (c) 1997-2010 The PHP Group |
7 +----------------------------------------------------------------------+
8 | This source file is subject to version 3.01 of the PHP license, |
9 | that is bundled with this package in the file LICENSE, and is |
10 | available through the world-wide-web at the following url: |
11 | http://www.php.net/license/3_01.txt |
12 | If you did not receive a copy of the PHP license and are unable to |
13 | obtain it through the world-wide-web, please send a note to |
14 | license@php.net so we can mail you a copy immediately. |
15 +----------------------------------------------------------------------+
17 #pragma once
19 #include "hphp/util/assertions.h"
20 #include "hphp/zend/zend-html.h"
21 #include <unordered_map>
22 #include <map>
24 namespace HPHP {
26 enum class entity_doctype {
27 html401,
28 html5,
29 xhtml,
30 xml1,
33 typedef std::unordered_map<int, std::string> entity_doctype_table_t;
34 const entity_doctype_table_t* get_doctype_entity_table(entity_doctype doctype);
36 typedef std::map<std::pair<int, int>, std::string> entity_multicode_table_t;
37 const entity_multicode_table_t* get_multicode_table();
39 typedef std::unordered_map<int, int> charset_table_t;
40 const charset_table_t* get_charset_table(entity_charset charset);