2 +----------------------------------------------------------------------+
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 +----------------------------------------------------------------------+
18 #ifndef incl_HPHP_EXT_XML_H_
19 #define incl_HPHP_EXT_XML_H_
21 #include "hphp/runtime/ext/extension.h"
24 ///////////////////////////////////////////////////////////////////////////////
26 Resource
HHVM_FUNCTION(xml_parser_create
,
27 const Variant
& encoding
= uninit_variant
);
28 bool HHVM_FUNCTION(xml_parser_free
,
29 const Resource
& parser
);
30 int64_t HHVM_FUNCTION(xml_parse
,
31 const Resource
& parser
,
33 bool is_final
= true);
34 int64_t HHVM_FUNCTION(xml_parse_into_struct
,
35 const Resource
& parser
,
39 Resource
HHVM_FUNCTION(xml_parser_create_ns
,
40 const Variant
& encoding
= uninit_variant
,
41 const Variant
& separator
= uninit_variant
);
42 Variant
HHVM_FUNCTION(xml_parser_get_option
,
43 const Resource
& parser
,
45 bool HHVM_FUNCTION(xml_parser_set_option
,
46 const Resource
& parser
,
48 const Variant
& value
);
49 bool HHVM_FUNCTION(xml_set_character_data_handler
,
50 const Resource
& parser
,
51 const Variant
& handler
);
52 bool HHVM_FUNCTION(xml_set_default_handler
,
53 const Resource
& parser
,
54 const Variant
& handler
);
55 bool HHVM_FUNCTION(xml_set_element_handler
,
56 const Resource
& parser
,
57 const Variant
& start_element_handler
,
58 const Variant
& end_element_handler
);
59 bool HHVM_FUNCTION(xml_set_processing_instruction_handler
,
60 const Resource
& parser
,
61 const Variant
& handler
);
62 bool HHVM_FUNCTION(xml_set_start_namespace_decl_handler
,
63 const Resource
& parser
,
64 const Variant
& handler
);
65 bool HHVM_FUNCTION(xml_set_end_namespace_decl_handler
,
66 const Resource
& parser
,
67 const Variant
& handler
);
68 bool HHVM_FUNCTION(xml_set_unparsed_entity_decl_handler
,
69 const Resource
& parser
,
70 const Variant
& handler
);
71 bool HHVM_FUNCTION(xml_set_external_entity_ref_handler
,
72 const Resource
& parser
,
73 const Variant
& handler
);
74 bool HHVM_FUNCTION(xml_set_notation_decl_handler
,
75 const Resource
& parser
,
76 const Variant
& handler
);
77 bool HHVM_FUNCTION(xml_set_object
,
78 const Resource
& parser
,
79 const Variant
& object
);
80 int64_t HHVM_FUNCTION(xml_get_current_byte_index
,
81 const Resource
& parser
);
82 int64_t HHVM_FUNCTION(xml_get_current_column_number
,
83 const Resource
& parser
);
84 int64_t HHVM_FUNCTION(xml_get_current_line_number
,
85 const Resource
& parser
);
86 int64_t HHVM_FUNCTION(xml_get_error_code
,
87 const Resource
& parser
);
88 String
HHVM_FUNCTION(xml_error_string
,
90 String
HHVM_FUNCTION(utf8_decode
,
92 String
HHVM_FUNCTION(utf8_encode
,
95 ///////////////////////////////////////////////////////////////////////////////
98 #endif // incl_HPHP_EXT_XML_H_