Lines Matching refs:enc

311 	char *enc = NULL;  in php_win32_cp_get_enc()  local
315 enc = PG(internal_encoding); in php_win32_cp_get_enc()
317 enc = SG(default_charset); in php_win32_cp_get_enc()
321 enc = (char *)zend_multibyte_get_encoding_name(zenc); in php_win32_cp_get_enc()
325 return enc; in php_win32_cp_get_enc()
364 PW32CP const struct php_win32_cp *php_win32_cp_get_by_enc(const char *enc) in php_win32_cp_get_by_enc() argument
368 if (!enc || !enc[0]) { in php_win32_cp_get_by_enc()
372 enc_len = strlen(enc); in php_win32_cp_get_by_enc()
381 if (0 == zend_binary_strcasecmp(enc, enc_len, cp->name, strlen(cp->name))) { in php_win32_cp_get_by_enc()
385 if (cp->enc) { in php_win32_cp_get_by_enc()
386 char *start = cp->enc, *idx; in php_win32_cp_get_by_enc()
391 if (0 == zend_binary_strcasecmp(enc, enc_len, start, idx - start)) { in php_win32_cp_get_by_enc()
398 if (0 == zend_binary_strcasecmp(enc, enc_len, start, strlen(start))) { in php_win32_cp_get_by_enc()
497 PW32CP const struct php_win32_cp *php_win32_cp_do_setup(const char *enc) in php_win32_cp_do_setup() argument
499 if (!enc) { in php_win32_cp_do_setup()
500 enc = php_win32_cp_get_enc(); in php_win32_cp_do_setup()
503 cur_cp = php_win32_cp_get_by_enc(enc); in php_win32_cp_do_setup()
526 PW32CP const struct php_win32_cp *php_win32_cp_do_update(const char *enc) in php_win32_cp_do_update() argument
528 if (!enc) { in php_win32_cp_do_update()
529 enc = php_win32_cp_get_enc(); in php_win32_cp_do_update()
531 cur_cp = php_win32_cp_get_by_enc(enc); in php_win32_cp_do_update()