Lines Matching refs:mbfl_encoding

92 static bool mb_check_str_encoding(zend_string *str, const mbfl_encoding *encoding);
94 static const mbfl_encoding* mb_guess_encoding(unsigned char *in, size_t in_len, const mbfl_encoding
96 …tring* mb_mime_header_encode(zend_string *input, const mbfl_encoding *incode, const mbfl_encoding
236 static const mbfl_encoding *php_mb_get_encoding(zend_string *encoding_name, uint32_t arg_num) { in php_mb_get_encoding()
238 const mbfl_encoding *encoding; in php_mb_get_encoding()
272 static const mbfl_encoding *php_mb_get_encoding_or_pass(const char *encoding_name) { in php_mb_get_encoding_or_pass()
294 const mbfl_encoding ***return_list, size_t *return_size, bool persistent, uint32_t arg_num) in php_mb_parse_encoding_list()
304 const mbfl_encoding **entry, **list; in php_mb_parse_encoding_list()
316 list = (const mbfl_encoding **)pecalloc(size, sizeof(mbfl_encoding*), persistent); in php_mb_parse_encoding_list()
347 const mbfl_encoding *encoding = mbfl_name2encoding(p1); in php_mb_parse_encoding_list()
381 static int php_mb_parse_encoding_array(HashTable *target_hash, const mbfl_encoding ***return_list, in php_mb_parse_encoding_array()
386 const mbfl_encoding **list = ecalloc(size, sizeof(mbfl_encoding*)); in php_mb_parse_encoding_array()
387 const mbfl_encoding **entry = list; in php_mb_parse_encoding_array()
411 const mbfl_encoding *encoding = mbfl_name2encoding(ZSTR_VAL(encoding_str)); in php_mb_parse_encoding_array()
438 return ((const mbfl_encoding *)encoding)->name; in php_mb_zend_encoding_name_getter()
443 const mbfl_encoding *encoding = (const mbfl_encoding*)_encoding; in php_mb_zend_encoding_lexer_compatibility_checker()
453 if (list_size == 1 && ((mbfl_encoding*)*list) == &mbfl_encoding_pass) { in php_mb_zend_encoding_detector()
458 …ing*)mb_guess_encoding((unsigned char*)arg_string, arg_length, (const mbfl_encoding**)list, list_s… in php_mb_zend_encoding_detector()
464 …_convert((unsigned char*)from, from_length, (const mbfl_encoding*)encoding_from, (const mbfl_encod… in php_mb_zend_encoding_converter()
478 (const mbfl_encoding ***)return_list, return_size, in php_mb_zend_encoding_list_parser()
489 MBSTRG(internal_encoding) = (const mbfl_encoding *)encoding; in php_mb_zend_internal_encoding_setter()
577 size_t j = php_mb_mbchar_bytes(start+i, (const mbfl_encoding *)encoding); in php_mb_rfc1867_substring_conf()
609 pos += php_mb_mbchar_bytes(pos, (const mbfl_encoding *)encoding); in php_mb_rfc1867_getword()
622 pos += php_mb_mbchar_bytes(pos, (const mbfl_encoding *)encoding); in php_mb_rfc1867_getword()
666 s = php_mb_safe_strrchr(filename, '\\', filename_len, (const mbfl_encoding *)encoding); in php_mb_rfc1867_basename()
667 s2 = php_mb_safe_strrchr(filename, '/', filename_len, (const mbfl_encoding *)encoding); in php_mb_rfc1867_basename()
705 const mbfl_encoding **list; in PHP_INI_MH()
731 const mbfl_encoding **list; in _php_mb_ini_mbstring_http_input_set()
734 list = (const mbfl_encoding**)pecalloc(1, sizeof(mbfl_encoding*), 1); in _php_mb_ini_mbstring_http_input_set()
768 const mbfl_encoding *encoding = php_mb_get_encoding_or_pass(new_value); in _php_mb_ini_mbstring_http_output_set()
799 const mbfl_encoding *encoding; in _php_mb_ini_mbstring_internal_encoding_set()
1238 const mbfl_encoding *encoding; in PHP_FUNCTION()
1268 const mbfl_encoding **entry; in PHP_FUNCTION()
1269 const mbfl_encoding *encoding; in PHP_FUNCTION()
1351 const mbfl_encoding *encoding = php_mb_get_encoding_or_pass(name); in PHP_FUNCTION()
1378 const mbfl_encoding **entry = MBSTRG(current_detect_order_list); in PHP_FUNCTION()
1385 const mbfl_encoding **list; in PHP_FUNCTION()
1496 const mbfl_encoding *enc = mbfl_name2encoding(name); in PHP_FUNCTION()
1519 const mbfl_encoding *detected; in PHP_FUNCTION()
1560 const mbfl_encoding *encoding = MBSTRG(current_http_output_encoding); in PHP_FUNCTION()
1648 const mbfl_encoding *enc = php_mb_get_encoding(encoding, 3); in PHP_FUNCTION()
1816 static size_t mb_get_strlen(zend_string *string, const mbfl_encoding *encoding) in mb_get_strlen()
1849 const mbfl_encoding *enc = php_mb_get_encoding(enc_name, 2); in PHP_FUNCTION()
1895 static size_t mb_find_strpos(zend_string *haystack, zend_string *needle, const mbfl_encoding *enc, … in mb_find_strpos()
1980 const mbfl_encoding *enc = php_mb_get_encoding(enc_name, 4); in PHP_FUNCTION()
2009 const mbfl_encoding *enc = php_mb_get_encoding(enc_name, 4); in PHP_FUNCTION()
2039 const mbfl_encoding *enc = php_mb_get_encoding(from_encoding, 4); in PHP_FUNCTION()
2070 const mbfl_encoding *enc = php_mb_get_encoding(from_encoding, 4); in PHP_FUNCTION()
2086 …et_substr_slow(unsigned char *in, size_t in_len, size_t from, size_t len, const mbfl_encoding *enc) in mb_get_substr_slow()
2111 static zend_string* mb_get_substr(zend_string *input, size_t from, size_t len, const mbfl_encoding in mb_get_substr()
2164 const mbfl_encoding *enc = php_mb_get_encoding(encoding_name, 4); in php_mb_strstr_variants()
2240 const mbfl_encoding *enc = php_mb_get_encoding(enc_name, 3); in PHP_FUNCTION()
2334 const mbfl_encoding *enc = php_mb_get_encoding(encoding, 4); in PHP_FUNCTION()
2454 static size_t mb_get_strwidth(zend_string *string, const mbfl_encoding *enc) in mb_get_strwidth()
2488 const mbfl_encoding *enc = php_mb_get_encoding(enc_name, 2); in PHP_FUNCTION()
2496 static zend_string* mb_trim_string(zend_string *input, zend_string *marker, const mbfl_encoding *en… in mb_trim_string()
2615 const mbfl_encoding *enc = php_mb_get_encoding(encoding, 5); in PHP_FUNCTION()
2661 …_encoding_ex(const char *input, size_t length, const mbfl_encoding *to_encoding, const mbfl_encodi… in php_mb_convert_encoding_ex()
2669 …ert_encoding(const char *input, size_t length, const mbfl_encoding *to_encoding, const mbfl_encodi… in php_mb_convert_encoding()
2671 const mbfl_encoding *from_encoding; in php_mb_convert_encoding()
2689 …b_convert_encoding_recursive(HashTable *input, const mbfl_encoding *to_encoding, const mbfl_encodi… in php_mb_convert_encoding_recursive()
2771 static void remove_non_encodings_from_elist(const mbfl_encoding **elist, size_t *size) in remove_non_encodings_from_elist()
2778 const mbfl_encoding *encoding = elist[i]; in remove_non_encodings_from_elist()
2794 const mbfl_encoding **from_encodings; in PHP_FUNCTION()
2805 const mbfl_encoding *to_encoding = php_mb_get_encoding(to_encoding_name, 2); in PHP_FUNCTION()
2857 …ng_convert_case(php_case_mode case_mode, const char *str, size_t str_len, const mbfl_encoding *enc) in mbstring_convert_case()
2874 const mbfl_encoding *enc = php_mb_get_encoding(from_encoding, 3); in PHP_FUNCTION()
2897 const mbfl_encoding *enc = php_mb_get_encoding(from_encoding, 2); in PHP_FUNCTION()
2915 const mbfl_encoding *enc = php_mb_get_encoding(from_encoding, 2); in PHP_FUNCTION()
2923 static const mbfl_encoding **duplicate_elist(const mbfl_encoding **elist, size_t size) in duplicate_elist()
2925 const mbfl_encoding **new_elist = safe_emalloc(size, sizeof(mbfl_encoding*), 0); in duplicate_elist()
2926 memcpy(ZEND_VOIDP(new_elist), elist, size * sizeof(mbfl_encoding*)); in duplicate_elist()
2975 const mbfl_encoding *enc;
2983 static size_t init_candidate_array(struct candidate *array, size_t length, const mbfl_encoding **en… in init_candidate_array()
2988 const mbfl_encoding *enc = encodings[i]; in init_candidate_array()
3022 const mbfl_encoding *enc = array[i].enc; in start_string()
3063 const mbfl_encoding *enc = array[i].enc; in count_demerits()
3101 …NG_API const mbfl_encoding* mb_guess_encoding_for_strings(const unsigned char **strings, size_t *s… in mb_guess_encoding_for_strings()
3146 static const mbfl_encoding* mb_guess_encoding(unsigned char *in, size_t in_len, const mbfl_encoding in mb_guess_encoding()
3157 const mbfl_encoding *ret, **elist; in PHP_FUNCTION()
3233 for (const mbfl_encoding **encodings = mbfl_get_supported_encodings(); *encodings; encodings++) { in PHP_FUNCTION()
3249 const mbfl_encoding *encoding; in PHP_FUNCTION()
3270 static zend_string* jp_kana_convert(zend_string *input, const mbfl_encoding *encoding, unsigned int… in jp_kana_convert()
3427 const mbfl_encoding *enc = php_mb_get_encoding(encname, 3); in PHP_FUNCTION()
3503 …bool mb_recursive_convert_variable(zval *var, const mbfl_encoding* from_encoding, const mbfl_encod… in mb_recursive_convert_variable()
3566 const mbfl_encoding *from_encoding, *to_encoding; in PHP_FUNCTION()
3569 const mbfl_encoding **elist; in PHP_FUNCTION()
3703 static zend_string* html_numeric_entity_encode(zend_string *input, const mbfl_encoding *encoding, u… in html_numeric_entity_encode()
3785 const mbfl_encoding *enc = php_mb_get_encoding(encoding, 3); in PHP_FUNCTION()
3823 static zend_string* html_numeric_entity_decode(zend_string *input, const mbfl_encoding *encoding, u… in html_numeric_entity_decode()
4015 const mbfl_encoding *enc = php_mb_get_encoding(encoding, 3); in PHP_FUNCTION()
4212 const mbfl_encoding *tran_cs, /* transfer text charset */ in PHP_FUNCTION()
4275 const mbfl_encoding *_tran_cs = tran_cs; in PHP_FUNCTION()
4295 const mbfl_encoding *_body_enc; in PHP_FUNCTION()
4344 const mbfl_encoding *enc = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
4354 const mbfl_encoding *msg_enc = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
4462 const mbfl_encoding **entry; in PHP_FUNCTION()
4602 MBSTRING_API bool php_mb_check_encoding(const char *input, size_t length, const mbfl_encoding *enco… in php_mb_check_encoding()
5288 static bool mb_check_str_encoding(zend_string *str, const mbfl_encoding *encoding) in mb_check_str_encoding()
5304 static int php_mb_check_encoding_recursive(HashTable *vars, const mbfl_encoding *encoding) in php_mb_check_encoding_recursive()
5360 const mbfl_encoding *encoding; in PHP_FUNCTION()
5390 const mbfl_encoding *enc; in php_mb_ord()
5453 const mbfl_encoding *enc; in php_mb_chr()
5557 const mbfl_encoding *encoding = php_mb_get_encoding(encoding_str, 5); in PHP_FUNCTION()
5679 const mbfl_encoding *enc = php_mb_get_encoding(enc_name, 2); in PHP_FUNCTION()
5696 const mbfl_encoding **entry = 0; in php_mb_populate_current_detect_order_list()
5701 entry = (const mbfl_encoding **)safe_emalloc(nentries, sizeof(mbfl_encoding*), 0); in php_mb_populate_current_detect_order_list()
5702 memcpy(ZEND_VOIDP(entry), MBSTRG(detect_order_list), sizeof(mbfl_encoding*) * nentries); in php_mb_populate_current_detect_order_list()
5707 entry = (const mbfl_encoding **)safe_emalloc(nentries, sizeof(mbfl_encoding*), 0); in php_mb_populate_current_detect_order_list()
5724 MBSTRING_API size_t php_mb_mbchar_bytes(const char *s, const mbfl_encoding *enc) in php_mb_mbchar_bytes()
5740 …I char *php_mb_safe_strrchr(const char *s, unsigned int c, size_t nbytes, const mbfl_encoding *enc) in php_mb_safe_strrchr()
5779 …(bool mode, zend_string *haystack, zend_string *needle, zend_long offset, const mbfl_encoding *enc) in php_mb_stripos()
5803 MBSTRG(http_input_identify) = (const mbfl_encoding*)encoding; in php_mb_gpc_set_input_encoding()
5883 …tring* mb_mime_header_encode(zend_string *input, const mbfl_encoding *incode, const mbfl_encoding in mb_mime_header_encode()
6181 const mbfl_encoding *charset = &mbfl_encoding_pass; in PHP_FUNCTION()
6209 const mbfl_encoding *transenc = mbfl_no2encoding(lang->mail_header_encoding); in PHP_FUNCTION()
6263 …_header_decode_encoded_word(unsigned char *p, unsigned char *e, const mbfl_encoding *outcode, mb_c… in mime_header_decode_encoded_word()
6286 const mbfl_encoding *incode = mbfl_name2encoding(charset_name); in mime_header_decode_encoded_word()
6374 static zend_string* mb_mime_header_decode(zend_string *input, const mbfl_encoding *outcode) in mb_mime_header_decode()