Lines Matching refs:charset
62 #define LIMIT_ALL(all, doctype, charset) do { \ argument
63 (all) = (all) && !CHARSET_PARTIAL_SUPPORT((charset)) && ((doctype) != ENT_HTML_DOC_XML1); \
102 enum entity_charset charset, in get_next_char() argument
117 switch (charset) { in get_next_char()
379 enum entity_charset charset = cs_utf_8; in determine_charset() local
457 charset = charset_map[i].charset; in determine_charset()
467 return charset; in determine_charset()
576 static inline int map_from_unicode(unsigned code, enum entity_charset charset, unsigned *res) in map_from_unicode() argument
582 switch (charset) { in map_from_unicode()
877 static inline size_t write_octet_sequence(unsigned char *buf, enum entity_charset charset, unsigned… in write_octet_sequence() argument
879 switch (charset) { in write_octet_sequence()
944 enum entity_charset charset) in traverse_for_entities() argument
1021 if (charset != cs_utf_8) { in traverse_for_entities()
1023 if (map_from_unicode(code, charset, &code) == FAILURE || code2 != 0) in traverse_for_entities()
1027 q += write_octet_sequence((unsigned char*)q, charset, code); in traverse_for_entities()
1029 q += write_octet_sequence((unsigned char*)q, charset, code2); in traverse_for_entities()
1102 enum entity_charset charset; in php_unescape_html_entities() local
1107 charset = determine_charset(hint_charset); in php_unescape_html_entities()
1109 charset = cs_8859_1; /* charset shouldn't matter, use ISO-8859-1 for performance */ in php_unescape_html_entities()
1131 traverse_for_entities((char*)old, oldlen, ret, all, flags, inverse_map, charset); in php_unescape_html_entities()
1146 enum entity_charset charset, in find_entity_for_char() argument
1177 next_char = get_next_char(charset, old, oldlen, cursor, &status); in find_entity_for_char()
1230 enum entity_charset charset = determine_charset(hint_charset); in php_escape_html_entities_ex() local
1240 if (CHARSET_PARTIAL_SUPPORT(charset)) { in php_escape_html_entities_ex()
1245 LIMIT_ALL(all, doctype, charset); in php_escape_html_entities_ex()
1248 if (all && !CHARSET_UNICODE_COMPAT(charset)) { in php_escape_html_entities_ex()
1249 to_uni_table = enc_to_uni_index[charset]; in php_escape_html_entities_ex()
1259 if (charset == cs_utf_8) { in php_escape_html_entities_ex()
1283 unsigned int this_char = get_next_char(charset, old, oldlen, &cursor, &status); in php_escape_html_entities_ex()
1327 find_entity_for_char(this_char, charset, entity_table.ms_table, &rep, in php_escape_html_entities_ex()
1342 if (CHARSET_UNICODE_COMPAT(charset)) { in php_escape_html_entities_ex()
1556 enum entity_charset charset, in write_s3row_data() argument
1563 written_k1 = write_octet_sequence((unsigned char*)key, charset, orig_cp); in write_s3row_data()
1591 if (!CHARSET_UNICODE_COMPAT(charset)) { in write_s3row_data()
1592 if (map_from_unicode(uni_cp, charset, &spe_cp) == FAILURE) in write_s3row_data()
1598 written_k2 = write_octet_sequence((unsigned char*)&key[written_k1], charset, spe_cp); in write_s3row_data()
1619 enum entity_charset charset; in PHP_FUNCTION() local
1630 charset = determine_charset(charset_hint); in PHP_FUNCTION()
1632 LIMIT_ALL(all, doctype, charset); in PHP_FUNCTION()
1637 if (all && !CHARSET_UNICODE_COMPAT(charset)) { in PHP_FUNCTION()
1638 to_uni_table = enc_to_uni_index[charset]; in PHP_FUNCTION()
1644 if (CHARSET_UNICODE_COMPAT(charset)) { in PHP_FUNCTION()
1648 if (CHARSET_SINGLE_BYTE(charset)) { /* ISO-8859-1 */ in PHP_FUNCTION()
1671 write_s3row_data(r, code, charset, return_value); in PHP_FUNCTION()
1693 write_s3row_data(r, i, charset, return_value); in PHP_FUNCTION()