php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_json_parser.h
Go to the documentation of this file.
1/*
2 +----------------------------------------------------------------------+
3 | Copyright (c) The PHP Group |
4 +----------------------------------------------------------------------+
5 | This source file is subject to version 3.01 of the PHP license, |
6 | that is bundled with this package in the file LICENSE, and is |
7 | available through the world-wide-web at the following url: |
8 | https://www.php.net/license/3_01.txt |
9 | If you did not receive a copy of the PHP license and are unable to |
10 | obtain it through the world-wide-web, please send a note to |
11 | license@php.net so we can mail you a copy immediately. |
12 +----------------------------------------------------------------------+
13 | Author: Jakub Zelenka <bukka@php.net> |
14 +----------------------------------------------------------------------+
15*/
16
17#ifndef PHP_JSON_PARSER_H
18#define PHP_JSON_PARSER_H
19
20#include "php.h"
21#include "php_json_scanner.h"
22
24
26 php_json_parser *parser, zval *array);
28 php_json_parser *parser, zval *array, zval *zvalue);
30 php_json_parser *parser);
32 php_json_parser *parser, zval *object);
34 php_json_parser *parser, zval *object);
36 php_json_parser *parser, zval *object, zend_string *key, zval *zvalue);
38 php_json_parser *parser);
40 php_json_parser *parser, zval *object);
41
52
60
62 php_json_parser *parser,
64 const char *str,
65 size_t str_len,
66 int options,
67 int max_depth,
68 const php_json_parser_methods *methods);
69
71 php_json_parser *parser,
73 const char *str,
74 size_t str_len,
75 int options,
76 int max_depth);
77
79
81
83
85
86#endif /* PHP_JSON_PARSER_H */
php_json_error_code
Definition php_json.h:42
#define PHP_JSON_API
Definition php_json.h:32
PHP_JSON_API size_t int options
Definition php_json.h:102
struct _php_json_parser php_json_parser
int(* php_json_parser_func_object_start_t)(php_json_parser *parser)
PHP_JSON_API void php_json_parser_init_ex(php_json_parser *parser, zval *return_value, const char *str, size_t str_len, int options, int max_depth, const php_json_parser_methods *methods)
PHP_JSON_API int php_json_parse(php_json_parser *parser)
int(* php_json_parser_func_object_create_t)(php_json_parser *parser, zval *object)
int(* php_json_parser_func_array_start_t)(php_json_parser *parser)
PHP_JSON_API void php_json_parser_init(php_json_parser *parser, zval *return_value, const char *str, size_t str_len, int options, int max_depth)
int(* php_json_parser_func_array_append_t)(php_json_parser *parser, zval *array, zval *zvalue)
int(* php_json_parser_func_object_end_t)(php_json_parser *parser, zval *object)
const php_json_parser_methods * php_json_get_validate_methods(void)
int php_json_yyparse(php_json_parser *parser)
int(* php_json_parser_func_array_end_t)(php_json_parser *parser, zval *object)
int(* php_json_parser_func_object_update_t)(php_json_parser *parser, zval *object, zend_string *key, zval *zvalue)
int(* php_json_parser_func_array_create_t)(php_json_parser *parser, zval *array)
PHP_JSON_API php_json_error_code php_json_parser_error_code(const php_json_parser *parser)
struct _php_json_parser_methods php_json_parser_methods
struct _php_json_scanner php_json_scanner
unsigned char key[REFLECTION_KEY_LEN]
php_json_parser_func_array_end_t array_end
php_json_parser_func_array_create_t array_create
php_json_parser_func_array_append_t array_append
php_json_parser_func_object_end_t object_end
php_json_parser_func_object_update_t object_update
php_json_parser_func_array_start_t array_start
php_json_parser_func_object_start_t object_start
php_json_parser_func_object_create_t object_create
php_json_scanner scanner
php_json_parser_methods methods
struct _zval_struct zval
struct _zend_string zend_string
zval * return_value
object