Lines Matching refs:enc

283 	char *enc = NULL;  in php_win32_cp_get_enc()  local
287 enc = PG(internal_encoding); in php_win32_cp_get_enc()
289 enc = SG(default_charset); in php_win32_cp_get_enc()
293 enc = (char *)zend_multibyte_get_encoding_name(zenc); in php_win32_cp_get_enc()
297 return enc; in php_win32_cp_get_enc()
336 PW32CP const struct php_win32_cp *php_win32_cp_get_by_enc(const char *enc) in php_win32_cp_get_by_enc() argument
340 if (!enc || !enc[0]) { in php_win32_cp_get_by_enc()
344 enc_len = strlen(enc); in php_win32_cp_get_by_enc()
353 if (0 == zend_binary_strcasecmp(enc, enc_len, cp->name, strlen(cp->name))) { in php_win32_cp_get_by_enc()
357 if (cp->enc) { in php_win32_cp_get_by_enc()
358 char *start = cp->enc, *idx; in php_win32_cp_get_by_enc()
363 if (0 == zend_binary_strcasecmp(enc, enc_len, start, idx - start)) { in php_win32_cp_get_by_enc()
370 if (0 == zend_binary_strcasecmp(enc, enc_len, start, strlen(start))) { in php_win32_cp_get_by_enc()
469 PW32CP const struct php_win32_cp *php_win32_cp_do_setup(const char *enc) in php_win32_cp_do_setup() argument
471 if (!enc) { in php_win32_cp_do_setup()
472 enc = php_win32_cp_get_enc(); in php_win32_cp_do_setup()
475 cur_cp = php_win32_cp_get_by_enc(enc); in php_win32_cp_do_setup()
498 PW32CP const struct php_win32_cp *php_win32_cp_do_update(const char *enc) in php_win32_cp_do_update() argument
500 if (!enc) { in php_win32_cp_do_update()
501 enc = php_win32_cp_get_enc(); in php_win32_cp_do_update()
503 cur_cp = php_win32_cp_get_by_enc(enc); in php_win32_cp_do_update()