12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #ifndef PHP_JSON_SCANNER_H
- #define PHP_JSON_SCANNER_H
- #include "php.h"
- #include "php_json.h"
- typedef unsigned char php_json_ctype;
- typedef struct _php_json_scanner {
- php_json_ctype *cursor;
- php_json_ctype *token;
- php_json_ctype *limit;
- php_json_ctype *marker;
- php_json_ctype *ctxmarker;
- php_json_ctype *str_start;
- php_json_ctype *pstr;
- zval value;
- int str_esc;
- int state;
- int options;
- php_json_error_code errcode;
- int utf8_invalid;
- int utf8_invalid_count;
- } php_json_scanner;
- void php_json_scanner_init(php_json_scanner *scanner, const char *str, size_t str_len, int options);
- int php_json_scan(php_json_scanner *s);
- #endif
|