Lines Matching refs:from_encoding
2034 zend_string *from_encoding = NULL;
2041 Z_PARAM_STR_OR_NULL(from_encoding)
2044 const mbfl_encoding *enc = php_mb_get_encoding(from_encoding, 4);
2065 zend_string *from_encoding = NULL;
2072 Z_PARAM_STR_OR_NULL(from_encoding)
2075 const mbfl_encoding *enc = php_mb_get_encoding(from_encoding, 4);
2708 MBSTRING_API zend_string* php_mb_convert_encoding_ex(const char *input, size_t length, const mbfl_encoding *to_encoding, const mbfl_encoding *from_encoding)
2711 zend_string *result = mb_fast_convert((unsigned char*)input, length, from_encoding, to_encoding, MBSTRG(current_filter_illegal_substchar), MBSTRG(current_filter_illegal_mode), &num_errors);
2718 const mbfl_encoding *from_encoding;
2723 from_encoding = *from_encodings;
2726 from_encoding = mb_guess_encoding((unsigned char*)input, length, from_encodings, num_from_encodings, MBSTRG(strict_detection), true);
2727 if (!from_encoding) {
2733 return php_mb_convert_encoding_ex(input, length, to_encoding, from_encoding);
2911 zend_string *str, *from_encoding = NULL;
2918 Z_PARAM_STR_OR_NULL(from_encoding)
2921 const mbfl_encoding *enc = php_mb_get_encoding(from_encoding, 3);
2936 zend_string *str, *from_encoding = NULL;
2941 Z_PARAM_STR_OR_NULL(from_encoding)
2944 const mbfl_encoding *enc = php_mb_get_encoding(from_encoding, 2);
2954 zend_string *str, *from_encoding = NULL;
2959 Z_PARAM_STR_OR_NULL(from_encoding)
2962 const mbfl_encoding *enc = php_mb_get_encoding(from_encoding, 2);
2972 zend_string *str, *from_encoding = NULL;
2977 Z_PARAM_STR_OR_NULL(from_encoding)
2980 const mbfl_encoding *enc = php_mb_get_encoding(from_encoding, 2);
3759 static bool mb_recursive_convert_variable(zval *var, const mbfl_encoding* from_encoding, const mbfl_encoding* to_encoding)
3767 zend_string *ret = php_mb_convert_encoding_ex(Z_STRVAL_P(var), Z_STRLEN_P(var), to_encoding, from_encoding);
3799 if (mb_recursive_convert_variable(entry, from_encoding, to_encoding)) {
3822 const mbfl_encoding *from_encoding, *to_encoding;
3839 from_encoding = MBSTRG(current_internal_encoding);
3866 from_encoding = *elist;
3887 from_encoding = mb_guess_encoding_for_strings(val_list, len_list, num, elist, elistsz, MBSTRG(strict_detection), order_significant);
3890 if (!from_encoding) {
3904 if (mb_recursive_convert_variable(zv, from_encoding, to_encoding)) {
3910 RETURN_STRING(from_encoding->name);