- Notifications
You must be signed in to change notification settings - Fork 7.8k
/
Copy pathmbstring.h
124 lines (108 loc) · 4.76 KB
/
mbstring.h
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
/*
+----------------------------------------------------------------------+
| Copyright (c) The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| https://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Tsukada Takuya <tsukada@fminn.nagano.nagano.jp> |
| Hironori Sato <satoh@jpnnet.com> |
| Shigeru Kanemoto <sgk@happysize.co.jp> |
+----------------------------------------------------------------------+
*/
#ifndef_MBSTRING_H
#define_MBSTRING_H
#include"php_version.h"
#definePHP_MBSTRING_VERSION PHP_VERSION
#ifdefPHP_WIN32
# undef MBSTRING_API
# ifdefMBSTRING_EXPORTS
# defineMBSTRING_API __declspec(dllexport)
# elif defined(COMPILE_DL_MBSTRING)
# defineMBSTRING_API __declspec(dllimport)
# else
# defineMBSTRING_API/* nothing special */
# endif
#elif defined(__GNUC__) &&__GNUC__ >= 4
# undef MBSTRING_API
# defineMBSTRING_API __attribute__ ((visibility("default")))
#else
# undef MBSTRING_API
# defineMBSTRING_API/* nothing special */
#endif
#include"libmbfl/mbfl/mbfilter.h"
#include"SAPI.h"
#definePHP_MBSTRING_API 20021024
externzend_module_entrymbstring_module_entry;
#definephpext_mbstring_ptr &mbstring_module_entry
PHP_MINIT_FUNCTION(mbstring);
PHP_MSHUTDOWN_FUNCTION(mbstring);
PHP_RINIT_FUNCTION(mbstring);
PHP_RSHUTDOWN_FUNCTION(mbstring);
PHP_MINFO_FUNCTION(mbstring);
MBSTRING_APIchar*php_mb_safe_strrchr(constchar*s, unsigned intc, size_tnbytes, constmbfl_encoding*enc);
MBSTRING_APIzend_string*php_mb_convert_encoding_ex(
constchar*input, size_tlength,
constmbfl_encoding*to_encoding, constmbfl_encoding*from_encoding);
MBSTRING_APIzend_string*php_mb_convert_encoding(
constchar*input, size_tlength, constmbfl_encoding*to_encoding,
constmbfl_encoding**from_encodings, size_tnum_from_encodings);
MBSTRING_APIsize_tphp_mb_mbchar_bytes(constchar*s, constmbfl_encoding*enc);
MBSTRING_APIsize_tphp_mb_stripos(boolmode, zend_string*haystack, zend_string*needle, zend_longoffset, constmbfl_encoding*enc);
MBSTRING_APIboolphp_mb_check_encoding(constchar*input, size_tlength, constmbfl_encoding*encoding);
MBSTRING_APIconstmbfl_encoding*mb_guess_encoding_for_strings(constunsigned char**strings, size_t*str_lengths, size_tn, constmbfl_encoding**elist, unsigned intelist_size, boolstrict, boolorder_significant);
ZEND_BEGIN_MODULE_GLOBALS(mbstring)
char*internal_encoding_name;
constmbfl_encoding*internal_encoding;
constmbfl_encoding*current_internal_encoding;
constmbfl_encoding*http_output_encoding;
constmbfl_encoding*current_http_output_encoding;
constmbfl_encoding*http_input_identify;
constmbfl_encoding*http_input_identify_get;
constmbfl_encoding*http_input_identify_post;
constmbfl_encoding*http_input_identify_cookie;
constmbfl_encoding*http_input_identify_string;
constmbfl_encoding**http_input_list;
size_thttp_input_list_size;
constmbfl_encoding**detect_order_list;
size_tdetect_order_list_size;
constmbfl_encoding**current_detect_order_list;
size_tcurrent_detect_order_list_size;
enummbfl_no_encoding*default_detect_order_list;
size_tdefault_detect_order_list_size;
HashTable*all_encodings_list;
intfilter_illegal_mode;
uint32_tfilter_illegal_substchar;
intcurrent_filter_illegal_mode;
uint32_tcurrent_filter_illegal_substchar;
enummbfl_no_languagelanguage;
boolencoding_translation;
boolstrict_detection;
size_tillegalchars;
booloutconv_enabled;
unsigned intoutconv_state;
void*http_output_conv_mimetypes;
#ifdefHAVE_MBREGEX
struct_zend_mb_regex_globals*mb_regex_globals;
zend_longregex_stack_limit;
#endif
zend_string*last_used_encoding_name;
constmbfl_encoding*last_used_encoding;
/* Whether an explicit internal_encoding / http_output / http_input encoding was set. */
boolinternal_encoding_set;
boolhttp_output_set;
boolhttp_input_set;
#ifdefHAVE_MBREGEX
zend_longregex_retry_limit;
#endif
ZEND_END_MODULE_GLOBALS(mbstring)
#defineMBSTRG(v) ZEND_MODULE_GLOBALS_ACCESSOR(mbstring, v)
#if defined(ZTS) && defined(COMPILE_DL_MBSTRING)
ZEND_TSRMLS_CACHE_EXTERN()
#endif
#endif/* _MBSTRING_H */