Lines Matching refs:enc

277 	char *enc = NULL;  in php_win32_cp_get_enc()  local
281 enc = PG(internal_encoding); in php_win32_cp_get_enc()
283 enc = SG(default_charset); in php_win32_cp_get_enc()
287 enc = (char *)zend_multibyte_get_encoding_name(zenc); in php_win32_cp_get_enc()
291 return enc; in php_win32_cp_get_enc()
330 PW32CP const struct php_win32_cp *php_win32_cp_get_by_enc(const char *enc) in php_win32_cp_get_by_enc() argument
334 if (!enc || !enc[0]) { in php_win32_cp_get_by_enc()
338 enc_len = strlen(enc); in php_win32_cp_get_by_enc()
347 if (0 == zend_binary_strcasecmp(enc, enc_len, cp->name, strlen(cp->name))) { in php_win32_cp_get_by_enc()
351 if (cp->enc) { in php_win32_cp_get_by_enc()
352 char *start = cp->enc, *idx; in php_win32_cp_get_by_enc()
357 if (0 == zend_binary_strcasecmp(enc, enc_len, start, idx - start)) { in php_win32_cp_get_by_enc()
364 if (0 == zend_binary_strcasecmp(enc, enc_len, start, strlen(start))) { in php_win32_cp_get_by_enc()
463 PW32CP const struct php_win32_cp *php_win32_cp_do_setup(const char *enc) in php_win32_cp_do_setup() argument
465 if (!enc) { in php_win32_cp_do_setup()
466 enc = php_win32_cp_get_enc(); in php_win32_cp_do_setup()
469 cur_cp = php_win32_cp_get_by_enc(enc); in php_win32_cp_do_setup()
492 PW32CP const struct php_win32_cp *php_win32_cp_do_update(const char *enc) in php_win32_cp_do_update() argument
494 if (!enc) { in php_win32_cp_do_update()
495 enc = php_win32_cp_get_enc(); in php_win32_cp_do_update()
497 cur_cp = php_win32_cp_get_by_enc(enc); in php_win32_cp_do_update()