Home
last modified time | relevance | path

Searched refs:enc (Results 1 – 25 of 114) sorted by relevance

12345

/PHP-7.2/ext/mbstring/oniguruma/src/
H A Doniguruma.h264 #define onig_enc_len(enc,p,end) ONIGENC_MBC_ENC_LEN(enc,p) argument
266 #define ONIGENC_IS_UNDEF(enc) ((enc) == ONIG_ENCODING_UNDEF) argument
267 #define ONIGENC_IS_SINGLEBYTE(enc) (ONIGENC_MBC_MAXLEN(enc) == 1) argument
272 ONIGENC_IS_CODE_WORD(enc,ONIGENC_MBC_TO_CODE(enc,s,end))
275 #define ONIGENC_NAME(enc) ((enc)->name) argument
292 #define ONIGENC_MBC_ENC_LEN(enc,p) (enc)->mbc_enc_len(p) argument
293 #define ONIGENC_MBC_MAXLEN(enc) ((enc)->max_enc_len) argument
294 #define ONIGENC_MBC_MAXLEN_DIST(enc) ONIGENC_MBC_MAXLEN(enc) argument
295 #define ONIGENC_MBC_MINLEN(enc) ((enc)->min_enc_len) argument
301 (enc)->property_name_to_ctype(enc,p,end)
[all …]
H A Dregenc.c43 if (enc->init != 0 && (enc->is_initialized() == 0)) { in onig_initialize_encoding()
44 int r = (enc->init)(); in onig_initialize_encoding()
60 OnigEncDefaultCharEncoding = enc; in onigenc_set_default_encoding()
69 p += enclen(enc, p); in onigenc_get_right_adjust_char_head()
82 p += enclen(enc, p); in onigenc_get_right_adjust_char_head_with_prev()
118 len = ONIGENC_MBC_ENC_LEN(enc, p);
678 p += enclen(enc, p); in onigenc_length_check_is_valid_mbc_string()
699 len = enclen(enc, p); in onigenc_mbn_mbc_to_code()
727 len = enclen(enc, p); in onigenc_mbn_mbc_case_fold()
748 (*pp) += enclen(enc, p);
[all …]
H A Dmktable.c92 if (enc == ASCII) in IsAlpha()
98 switch (enc) { in IsAlpha()
274 switch (enc) { in IsBlank()
313 switch (enc) { in IsCntrl()
361 switch (enc) { in IsGraph()
433 switch (enc) { in IsLower()
565 switch (enc) { in IsPrint()
652 switch (enc) { in IsPunct()
743 switch (enc) { in IsSpace()
784 switch (enc) { in IsUpper()
[all …]
H A Dreggnu.c47 if (startpos > 0 && ONIGENC_MBC_MAXLEN(reg->enc) != 1 && startpos < size) { in re_adjust_startpos()
52 p = onigenc_get_right_adjust_char_head(reg->enc, (UChar* )string, s); in re_adjust_startpos()
55 p = ONIGENC_LEFT_ADJUST_CHAR_HEAD(reg->enc, (UChar* )string, s); in re_adjust_startpos()
123 OnigEncoding enc; in re_mbcinit() local
127 enc = ONIG_ENCODING_ASCII; in re_mbcinit()
130 enc = ONIG_ENCODING_EUC_JP; in re_mbcinit()
133 enc = ONIG_ENCODING_SJIS; in re_mbcinit()
136 enc = ONIG_ENCODING_UTF8; in re_mbcinit()
144 onig_initialize_encoding(enc); in re_mbcinit()
146 onigenc_set_default_encoding(enc); in re_mbcinit()
H A Dregerror.c208 if (ONIGENC_MBC_MINLEN(enc) > 1) { in to_ascii()
212 code = ONIGENC_MBC_TO_CODE(enc, p, end); in to_ascii()
234 p += enclen(enc, p); in to_ascii()
280 len = to_ascii(einfo->enc, einfo->par, einfo->par_end,
329 OnigEncoding enc;
353 if (ONIGENC_IS_MBC_HEAD(enc, p)) {
354 len = enclen(enc, p);
355 if (ONIGENC_MBC_MINLEN(enc) == 1) {
371 len = enclen(enc, p);
378 else if (!ONIGENC_IS_CODE_PRINT(enc, *p) &&
[all …]
H A Dregposix.c39 #define ENC_STRING_LEN(enc,s,len) do { \ argument
40 if (ONIGENC_MBC_MINLEN(enc) == 1) { \
233 OnigEncoding enc; in reg_set_encoding() local
237 enc = ONIG_ENCODING_ASCII; in reg_set_encoding()
240 enc = ONIG_ENCODING_EUC_JP; in reg_set_encoding()
243 enc = ONIG_ENCODING_SJIS; in reg_set_encoding()
246 enc = ONIG_ENCODING_UTF8; in reg_set_encoding()
249 enc = ONIG_ENCODING_UTF16_BE; in reg_set_encoding()
252 enc = ONIG_ENCODING_UTF16_LE; in reg_set_encoding()
261 onig_initialize_encoding(enc); in reg_set_encoding()
[all …]
H A Dregenc.h74 #define enclen(enc,p) ONIGENC_MBC_ENC_LEN(enc,p) argument
137 ONIG_EXTERN int onigenc_length_check_is_valid_mbc_string P_((OnigEncoding enc, const UChar* s, cons…
140 ONIG_EXTERN OnigCodePoint onigenc_mbn_mbc_to_code P_((OnigEncoding enc, const UChar* p, const UChar…
143 ONIG_EXTERN int onigenc_mb2_code_to_mbc P_((OnigEncoding enc, OnigCodePoint code, UChar *buf));
144 ONIG_EXTERN int onigenc_minimum_property_name_to_ctype P_((OnigEncoding enc, UChar* p, UChar* end));
145 ONIG_EXTERN int onigenc_unicode_property_name_to_ctype P_((OnigEncoding enc, UChar* p, UChar* end));
146 ONIG_EXTERN int onigenc_mb2_is_code_ctype P_((OnigEncoding enc, OnigCodePoint code, unsigned int ct…
148 ONIG_EXTERN int onigenc_mb4_code_to_mbc P_((OnigEncoding enc, OnigCodePoint code, UChar *buf));
149 ONIG_EXTERN int onigenc_mb4_is_code_ctype P_((OnigEncoding enc, OnigCodePoint code, unsigned int ct…
220 onigenc_with_ascii_strncmp P_((OnigEncoding enc, const UChar* p, const UChar* end, const UChar* sas…
[all …]
H A Dregparse.c2274 OnigEncoding enc = env->enc; in fetch_range_quantifier() local
2366 OnigEncoding enc = env->enc; in fetch_escaped_value() local
2462 OnigEncoding enc = env->enc; in fetch_name_with_level() local
2581 OnigEncoding enc = env->enc; in fetch_name() local
2699 OnigEncoding enc = env->enc; in fetch_name() local
2871 OnigEncoding enc = env->enc; in fetch_token_in_cc() local
3117 OnigEncoding enc = env->enc; in fetch_token() local
3852 OnigEncoding enc = env->enc; in add_ctype_to_cc() local
3958 OnigEncoding enc = env->enc; in parse_posix_bracket() local
4010 OnigEncoding enc = env->enc; in fetch_char_property_to_ctype() local
[all …]
H A Dregsyntax.c289 extern int onig_set_meta_char(OnigSyntaxType* enc, in onig_set_meta_char() argument
294 enc->meta_char_table.esc = code; in onig_set_meta_char()
297 enc->meta_char_table.anychar = code; in onig_set_meta_char()
300 enc->meta_char_table.anytime = code; in onig_set_meta_char()
303 enc->meta_char_table.zero_or_one_time = code; in onig_set_meta_char()
306 enc->meta_char_table.one_or_more_time = code; in onig_set_meta_char()
309 enc->meta_char_table.anychar_anytime = code; in onig_set_meta_char()
/PHP-7.2/ext/mbstring/tests/
H A Dmb_http_output.phpt15 $enc = mb_http_output();
16 print "$enc\n";
21 $enc = mb_http_output();
22 print "$enc\n";
27 $enc = mb_http_output();
28 print "$enc\n";
34 print "$enc\n";
40 print "$enc\n";
49 print "$enc\n";
54 print "$enc\n";
[all …]
H A Dmb_internal_encoding.phpt15 $enc = mb_internal_encoding();
16 print "$enc\n";
21 $enc = mb_internal_encoding();
22 print "$enc\n";
27 $enc = mb_internal_encoding();
28 print "$enc\n";
36 $enc = mb_internal_encoding();
37 print "$enc\n";
41 $enc = mb_internal_encoding();
42 print "$enc\n";
[all …]
H A Dmb_ereg.phpt22 function do_tests( $enc ) {
23 test_ereg( $enc, 'abc ([a-z]+) ([a-z]+) ([a-z]+)$', "abc def ghi jkl" );
25 test_ereg( $enc, $pat, '���� ������ ������ ����' );
26 test_ereg( $enc, $pat, '�������� ������ ���� ���' );
29 foreach( $encs as $enc ) {
30 do_tests( $enc );
H A Dmb_ereg_search_xxx.phpt27 function do_tests( $enc, $opt ) {
28 test_search( $enc, "�ϡ� ����\n", ' (��?�ϡ�?)[[:space:]]', $opt );
29 test_search( $enc, 'abcde abdeabcf anvfabc odu abcd ', '(ab[a-z]+)', $opt );
32 foreach( $encs as $enc ) {
33 do_tests( $enc, '' );
34 do_tests( $enc, 'x' );
/PHP-7.2/ext/filter/
H A Dsanitizing_filters.c187 unsigned char enc[256] = {0}; in php_filter_string() local
197 enc['\''] = enc['"'] = 1; in php_filter_string()
200 enc['&'] = 1; in php_filter_string()
203 memset(enc, 1, 32); in php_filter_string()
206 memset(enc + 127, 1, sizeof(enc) - 127); in php_filter_string()
245 enc['\''] = enc['"'] = enc['<'] = enc['>'] = enc['&'] = enc[0] = 1; in php_filter_special_chars()
248 memset(enc, 1, 32); in php_filter_special_chars()
251 memset(enc + 127, 1, sizeof(enc) - 127); in php_filter_special_chars()
285 enc['&'] = 1; in php_filter_unsafe_raw()
288 memset(enc, 1, 32); in php_filter_unsafe_raw()
[all …]
/PHP-7.2/ext/zip/lib/
H A Dzip_utf-8.c119 zip_encoding_type_t enc; in _zip_guess_encoding() local
129 enc = str->encoding; in _zip_guess_encoding()
131 enc = ZIP_ENCODING_ASCII; in _zip_guess_encoding()
136 enc = ZIP_ENCODING_UTF8_GUESSED; in _zip_guess_encoding()
144 enc = ZIP_ENCODING_CP437; in _zip_guess_encoding()
149 enc = ZIP_ENCODING_CP437; in _zip_guess_encoding()
155 enc = ZIP_ENCODING_CP437; in _zip_guess_encoding()
164 str->encoding = enc; in _zip_guess_encoding()
168 str->encoding = enc = ZIP_ENCODING_UTF8_KNOWN; in _zip_guess_encoding()
170 if (expected_encoding != enc && enc != ZIP_ENCODING_ASCII) in _zip_guess_encoding()
[all …]
/PHP-7.2/ext/standard/tests/strings/
H A Duuencode.phpt11 var_dump($enc = convert_uuencode("~!@#$%^&*()_}{POIUYTREWQQSDFGHJKL:<MNBVCXZ"));
13 var_dump(convert_uudecode($enc));
14 var_dump($enc = convert_uuencode("not very sophisticated"));
15 var_dump(convert_uudecode($enc));
16 var_dump(convert_uudecode(substr($enc, 0, -10)));
/PHP-7.2/ext/soap/tests/bugs/
H A Dbug41566.phpt50 xmlns:enc="http://www.w3.org/2003/05/soap-encoding">
64enc="http://www.w3.org/2003/05/soap-encoding" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/enco…
/PHP-7.2/win32/
H A Dcodepage.c241 char *enc = NULL; in php_win32_cp_get_enc() local
245 enc = PG(internal_encoding); in php_win32_cp_get_enc()
247 enc = SG(default_charset); in php_win32_cp_get_enc()
255 return enc; in php_win32_cp_get_enc()
303 if (!enc || !enc[0]) { in php_win32_cp_get_by_enc()
307 enc_len = strlen(enc); in php_win32_cp_get_by_enc()
320 if (cp->enc) { in php_win32_cp_get_by_enc()
321 char *start = cp->enc, *idx; in php_win32_cp_get_by_enc()
435 if (!enc) { in php_win32_cp_do_setup()
436 enc = php_win32_cp_get_enc(); in php_win32_cp_do_setup()
[all …]
H A Dcp_enc_map_gen.c8 char *enc; member
229 if (!cur->enc[0]) { in main()
239 …,\n", info.CodePage, to_w_fl, from_w_fl, info.MaxCharSize, cur->name, cur->enc, info.CodePageName); in main()
/PHP-7.2/ext/soap/
H A Dphp_encoding.c279 return enc; in find_encoder_by_type_name()
580 if (enc != NULL && enc != encode) { in master_to_zval()
1434 while (enc && enc->details.sdl_type && in to_zval_object_ex()
1438 enc = enc->details.sdl_type->encode; in to_zval_object_ex()
1440 if (enc) { in to_zval_object_ex()
1833 while (enc && enc->details.sdl_type && in to_xml_object()
1837 enc = enc->details.sdl_type->encode; in to_xml_object()
1839 if (enc) { in to_xml_object()
2005 if (!enc) { in guess_array_map()
2805 if (enc && type == &enc->details) { in guess_zval_convert()
[all …]
/PHP-7.2/ext/soap/tests/soap12/
H A DT47.phpt17 <inputFloatArray enc:itemType="xsd:float" enc:arraySize="2"
18 xmlns:enc="http://www.w3.org/2003/05/soap-encoding">
30enc="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance…
H A DT48.phpt15 <inputStringArray enc:itemType="xsd:string" enc:arraySize="2"
16 xmlns:enc="http://www.w3.org/2003/05/soap-encoding">
28enc="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance…
H A DT50.phpt15 <inputIntegerArray enc:itemType="xsd:int" enc:arraySize="2"
16 xmlns:enc="http://www.w3.org/2003/05/soap-encoding">
28enc="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance…
H A DT49.phpt15 <inputStringArray enc:arraySize="2"
16 xmlns:enc="http://www.w3.org/2003/05/soap-encoding">
28enc="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance…
H A DT59.phpt15 <inputStringArray enc:itemType="xsd:string"
16 xmlns:enc="http://www.w3.org/2003/05/soap-encoding">
17 <item enc:id="data" xsi:type="xsd:string" enc:ref="#data">hello</item>

Completed in 69 milliseconds

12345