Lines Matching refs:convd

941 	mbfl_buffer_converter *convd;
955 convd = mbfl_buffer_converter_new((const mbfl_encoding *)encoding_from, (const mbfl_encoding *)encoding_to, string.len);
956 if (convd == NULL) {
960 mbfl_buffer_converter_illegal_mode(convd, MBSTRG(current_filter_illegal_mode));
961 mbfl_buffer_converter_illegal_substchar(convd, MBSTRG(current_filter_illegal_substchar));
964 status = mbfl_buffer_converter_feed2(convd, &string, &loc);
966 mbfl_buffer_converter_delete(convd);
970 mbfl_buffer_converter_flush(convd);
971 if (!mbfl_buffer_converter_result(convd, &result)) {
972 mbfl_buffer_converter_delete(convd);
979 mbfl_buffer_converter_delete(convd);
2284 /* these are not needed. convd has encoding info.
3041 mbfl_buffer_converter *convd;
3057 convd = mbfl_buffer_converter_new(from_encoding, to_encoding, string.len);
3058 if (convd == NULL) {
3063 mbfl_buffer_converter_illegal_mode(convd, MBSTRG(current_filter_illegal_mode));
3064 mbfl_buffer_converter_illegal_substchar(convd, MBSTRG(current_filter_illegal_substchar));
3067 ret = mbfl_buffer_converter_feed_result(convd, &string, &result);
3075 MBSTRG(illegalchars) += mbfl_buffer_illegalchars(convd);
3076 mbfl_buffer_converter_delete(convd);
3756 static int mb_recursive_convert_variable(mbfl_buffer_converter *convd, zval *var) /* {{{ */
3767 ret = mbfl_buffer_converter_feed_result(convd, &string, &result);
3788 if (mb_recursive_convert_variable(convd, entry)) {
3812 mbfl_buffer_converter *convd;
3887 convd = NULL;
3889 convd = mbfl_buffer_converter_new(from_encoding, to_encoding, 0);
3890 if (convd == NULL) {
3894 mbfl_buffer_converter_illegal_mode(convd, MBSTRG(current_filter_illegal_mode));
3895 mbfl_buffer_converter_illegal_substchar(convd, MBSTRG(current_filter_illegal_substchar));
3899 if (convd != NULL) {
3905 recursion_error = mb_recursive_convert_variable(convd, zv);
3912 MBSTRG(illegalchars) += mbfl_buffer_illegalchars(convd);
3913 mbfl_buffer_converter_delete(convd);
4668 mbfl_buffer_converter *convd;
4670 convd = mbfl_buffer_converter_new(encoding, encoding, 0);
4671 if (convd == NULL) {
4674 mbfl_buffer_converter_illegal_mode(convd, MBFL_OUTPUTFILTER_ILLEGAL_MODE_NONE);
4675 mbfl_buffer_converter_illegal_substchar(convd, 0);
4676 return convd;
4680 static inline int php_mb_check_encoding_impl(mbfl_buffer_converter *convd, const char *input, size_t length, const mbfl_encoding *encoding) {
4691 ret = mbfl_buffer_converter_feed_result(convd, &string, &result);
4692 illegalchars = mbfl_buffer_illegalchars(convd);
4708 mbfl_buffer_converter *convd;
4722 convd = php_mb_init_convd(encoding);
4723 if (convd == NULL) {
4728 if (php_mb_check_encoding_impl(convd, input, length, encoding)) {
4729 mbfl_buffer_converter_delete(convd);
4732 mbfl_buffer_converter_delete(convd);
4740 mbfl_buffer_converter *convd;
4756 convd = php_mb_init_convd(encoding);
4757 if (convd == NULL) {
4763 mbfl_buffer_converter_delete(convd);
4771 if (!php_mb_check_encoding_impl(convd, ZSTR_VAL(key), ZSTR_LEN(key), encoding)) {
4778 if (!php_mb_check_encoding_impl(convd, Z_STRVAL_P(entry), Z_STRLEN_P(entry), encoding)) {
4802 mbfl_buffer_converter_delete(convd);