Lines Matching refs:charset

421 static int _php_check_ignore(const char *charset)  in _php_check_ignore()  argument
423 size_t clen = strlen(charset); in _php_check_ignore()
424 if (clen >= 9 && strcmp("//IGNORE", charset+clen-8) == 0) { in _php_check_ignore()
427 if (clen >= 19 && strcmp("//IGNORE//TRANSLIT", charset+clen-18) == 0) { in _php_check_ignore()
1792 const char *charset = NULL; in PHP_FUNCTION() local
1801 &str, &charset, &charset_len) == FAILURE) { in PHP_FUNCTION()
1805 if (charset == NULL) { in PHP_FUNCTION()
1806 charset = get_internal_encoding(); in PHP_FUNCTION()
1812 err = _php_iconv_strlen(&retval, ZSTR_VAL(str), ZSTR_LEN(str), charset); in PHP_FUNCTION()
1813 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset); in PHP_FUNCTION()
1825 const char *charset = NULL; in PHP_FUNCTION() local
1837 &charset, &charset_len) == FAILURE) { in PHP_FUNCTION()
1841 if (charset == NULL) { in PHP_FUNCTION()
1842 charset = get_internal_encoding(); in PHP_FUNCTION()
1852 err = _php_iconv_substr(&retval, ZSTR_VAL(str), ZSTR_LEN(str), offset, length, charset); in PHP_FUNCTION()
1853 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset); in PHP_FUNCTION()
1866 const char *charset = NULL; in PHP_FUNCTION() local
1878 &offset, &charset, &charset_len) == FAILURE) { in PHP_FUNCTION()
1882 if (charset == NULL) { in PHP_FUNCTION()
1883 charset = get_internal_encoding(); in PHP_FUNCTION()
1891 err = _php_iconv_strlen(&haystk_len, ZSTR_VAL(haystk), ZSTR_LEN(haystk), charset); in PHP_FUNCTION()
1893 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset); in PHP_FUNCTION()
1910 offset, charset, /* reverse */ false); in PHP_FUNCTION()
1911 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset); in PHP_FUNCTION()
1924 const char *charset = NULL; in PHP_FUNCTION() local
1935 &charset, &charset_len) == FAILURE) { in PHP_FUNCTION()
1943 if (charset == NULL) { in PHP_FUNCTION()
1944 charset = get_internal_encoding(); in PHP_FUNCTION()
1952 /* offset */ 0, charset, /* reserve */ true); in PHP_FUNCTION()
1953 _php_iconv_show_error(err, GENERIC_SUPERSET_NAME, charset); in PHP_FUNCTION()
2069 const char *charset = NULL; in PHP_FUNCTION() local
2078 &encoded_str, &mode, &charset, &charset_len) == FAILURE) { in PHP_FUNCTION()
2083 if (charset == NULL) { in PHP_FUNCTION()
2084 charset = get_internal_encoding(); in PHP_FUNCTION()
2090 …err = _php_iconv_mime_decode(&retval, ZSTR_VAL(encoded_str), ZSTR_LEN(encoded_str), charset, NULL,… in PHP_FUNCTION()
2091 _php_iconv_show_error(err, charset, "???"); in PHP_FUNCTION()
2110 const char *charset = NULL; in PHP_FUNCTION() local
2119 &encoded_str, &mode, &charset, &charset_len) == FAILURE) { in PHP_FUNCTION()
2124 if (charset == NULL) { in PHP_FUNCTION()
2125 charset = get_internal_encoding(); in PHP_FUNCTION()
2144 … = _php_iconv_mime_decode(&decoded_header, enc_str_tmp, enc_str_len_tmp, charset, &next_pos, (int)… in PHP_FUNCTION()
2198 _php_iconv_show_error(err, charset, "???"); in PHP_FUNCTION()
2241 zend_string *charset; in PHP_FUNCTION() local
2245 if (zend_parse_parameters(ZEND_NUM_ARGS(), "SS", &type, &charset) == FAILURE) { in PHP_FUNCTION()
2249 if (ZSTR_LEN(charset) >= ICONV_CSNMAXLEN) { in PHP_FUNCTION()
2264 retval = zend_alter_ini_entry(name, charset, PHP_INI_USER, PHP_INI_STAGE_RUNTIME); in PHP_FUNCTION()