Lines Matching refs:charset_hint
374 static enum entity_charset determine_charset(char *charset_hint) in determine_charset() argument
382 if (charset_hint == NULL) in determine_charset()
385 if ((len = strlen(charset_hint)) != 0) { in determine_charset()
391 charset_hint = (char *)zend_multibyte_get_encoding_name(zenc); in determine_charset()
392 if (charset_hint != NULL && (len=strlen(charset_hint)) != 0) { in determine_charset()
395 (!memcmp("pass", charset_hint, 4) || in determine_charset()
396 !memcmp("auto", charset_hint, 4))) { in determine_charset()
397 charset_hint = NULL; in determine_charset()
405 charset_hint = SG(default_charset); in determine_charset()
406 if (charset_hint != NULL && (len=strlen(charset_hint)) != 0) { in determine_charset()
412 charset_hint = nl_langinfo(CODESET); in determine_charset()
413 if (charset_hint != NULL && (len=strlen(charset_hint)) != 0) { in determine_charset()
436 charset_hint = dot; in determine_charset()
440 charset_hint = localename; in determine_charset()
441 len = strlen(charset_hint); in determine_charset()
448 if (charset_hint) { in determine_charset()
454 zend_binary_strcasecmp(charset_hint, len, charset_map[i].codeset, len) == 0) { in determine_charset()
462 charset_hint); in determine_charset()
1611 char *charset_hint = NULL; in PHP_FUNCTION() local
1623 Z_PARAM_STRING(charset_hint, charset_hint_len) in PHP_FUNCTION()
1626 charset = determine_charset(charset_hint); in PHP_FUNCTION()