-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathmustache_mustache.hpp
46 lines (35 loc) · 1.26 KB
/
mustache_mustache.hpp
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
#ifndef PHP_MUSTACHE_MUSTACHE_HPP
#define PHP_MUSTACHE_MUSTACHE_HPP
#include "mustache/mustache.hpp"
#ifdef __cplusplus
extern "C" {
#endif
struct php_obj_Mustache {
mustache::Mustache * mustache;
zend_object std;
};
php_obj_Mustache * php_mustache_mustache_object_fetch_object(zval * zv);
PHP_MINIT_FUNCTION(mustache_mustache);
mustache::Mustache * mustache_new_Mustache();
void mustache_data_from_zval(mustache::Data * node, zval * current);
bool mustache_parse_data_param(zval * data, mustache::Mustache * mustache,
mustache::Data ** node);
bool mustache_parse_partials_param(zval * array, mustache::Mustache * mustache,
mustache::Node::Partials * partials);
bool mustache_parse_template_param(zval * tmpl, mustache::Mustache * mustache,
mustache::Node ** node);
PHP_METHOD(Mustache, __construct);
PHP_METHOD(Mustache, getEscapeByDefault);
PHP_METHOD(Mustache, getStartSequence);
PHP_METHOD(Mustache, getStopSequence);
PHP_METHOD(Mustache, setEscapeByDefault);
PHP_METHOD(Mustache, setStartSequence);
PHP_METHOD(Mustache, setStopSequence);
PHP_METHOD(Mustache, parse);
PHP_METHOD(Mustache, render);
PHP_METHOD(Mustache, tokenize);
PHP_METHOD(Mustache, debugDataStructure);
#ifdef __cplusplus
} // extern "C"
#endif
#endif /* PHP_MUSTACHE_MUSTACHE_HPP */