Lines Matching refs:charset
52 #define LIMIT_ALL(all, doctype, charset) do { \ argument
53 (all) = (all) && !CHARSET_PARTIAL_SUPPORT((charset)) && ((doctype) != ENT_HTML_DOC_XML1); \
90 enum entity_charset charset, in get_next_char() argument
105 switch (charset) { in get_next_char()
376 return charset_map[i].charset; in determine_charset()
454 static inline zend_result map_from_unicode(unsigned code, enum entity_charset charset, unsigned *re… in map_from_unicode() argument
460 switch (charset) { in map_from_unicode()
755 static inline size_t write_octet_sequence(unsigned char *buf, enum entity_charset charset, unsigned… in write_octet_sequence() argument
757 switch (charset) { in write_octet_sequence()
818 enum entity_charset charset) in traverse_for_entities() argument
895 if (charset != cs_utf_8) { in traverse_for_entities()
897 if (map_from_unicode(code, charset, &code) == FAILURE || code2 != 0) in traverse_for_entities()
901 q += write_octet_sequence((unsigned char*)q, charset, code); in traverse_for_entities()
903 q += write_octet_sequence((unsigned char*)q, charset, code2); in traverse_for_entities()
975 enum entity_charset charset; in php_unescape_html_entities() local
984 charset = determine_charset(hint_charset, /* quiet */ 0); in php_unescape_html_entities()
986 charset = cs_8859_1; /* charset shouldn't matter, use ISO-8859-1 for performance */ in php_unescape_html_entities()
1002 traverse_for_entities(ZSTR_VAL(str), ZSTR_LEN(str), ret, all, flags, inverse_map, charset); in php_unescape_html_entities()
1016 enum entity_charset charset, in find_entity_for_char() argument
1047 next_char = get_next_char(charset, old, oldlen, cursor, &status); in find_entity_for_char()
1099 enum entity_charset charset = determine_charset(hint_charset, quiet); in php_escape_html_entities_ex() local
1109 if (!quiet && CHARSET_PARTIAL_SUPPORT(charset)) { in php_escape_html_entities_ex()
1114 LIMIT_ALL(all, doctype, charset); in php_escape_html_entities_ex()
1117 if (all && !CHARSET_UNICODE_COMPAT(charset)) { in php_escape_html_entities_ex()
1118 to_uni_table = enc_to_uni_index[charset]; in php_escape_html_entities_ex()
1128 if (charset == cs_utf_8) { in php_escape_html_entities_ex()
1152 unsigned int this_char = get_next_char(charset, old, oldlen, &cursor, &status); in php_escape_html_entities_ex()
1196 find_entity_for_char(this_char, charset, entity_table.ms_table, &rep, in php_escape_html_entities_ex()
1211 if (CHARSET_UNICODE_COMPAT(charset)) { in php_escape_html_entities_ex()
1387 enum entity_charset charset, in write_s3row_data() argument
1394 written_k1 = write_octet_sequence((unsigned char*)key, charset, orig_cp); in write_s3row_data()
1422 if (!CHARSET_UNICODE_COMPAT(charset)) { in write_s3row_data()
1423 if (map_from_unicode(uni_cp, charset, &spe_cp) == FAILURE) in write_s3row_data()
1429 written_k2 = write_octet_sequence((unsigned char*)&key[written_k1], charset, spe_cp); in write_s3row_data()
1448 enum entity_charset charset; in PHP_FUNCTION() local
1461 charset = determine_charset(charset_hint, /* quiet */ 0); in PHP_FUNCTION()
1463 LIMIT_ALL(all, doctype, charset); in PHP_FUNCTION()
1468 if (all && !CHARSET_UNICODE_COMPAT(charset)) { in PHP_FUNCTION()
1469 to_uni_table = enc_to_uni_index[charset]; in PHP_FUNCTION()
1475 if (CHARSET_UNICODE_COMPAT(charset)) { in PHP_FUNCTION()
1479 if (CHARSET_SINGLE_BYTE(charset)) { /* ISO-8859-1 */ in PHP_FUNCTION()
1502 write_s3row_data(r, code, charset, return_value); in PHP_FUNCTION()
1524 write_s3row_data(r, i, charset, return_value); in PHP_FUNCTION()