Lines Matching refs:charset
56 #define LIMIT_ALL(all, doctype, charset) do { \ argument
57 (all) = (all) && !CHARSET_PARTIAL_SUPPORT((charset)) && ((doctype) != ENT_HTML_DOC_XML1); \
94 enum entity_charset charset, in get_next_char() argument
109 switch (charset) { in get_next_char()
380 return charset_map[i].charset; in determine_charset()
458 static inline int map_from_unicode(unsigned code, enum entity_charset charset, unsigned *res) in map_from_unicode() argument
464 switch (charset) { in map_from_unicode()
759 static inline size_t write_octet_sequence(unsigned char *buf, enum entity_charset charset, unsigned… in write_octet_sequence() argument
761 switch (charset) { in write_octet_sequence()
826 enum entity_charset charset) in traverse_for_entities() argument
903 if (charset != cs_utf_8) { in traverse_for_entities()
905 if (map_from_unicode(code, charset, &code) == FAILURE || code2 != 0) in traverse_for_entities()
909 q += write_octet_sequence((unsigned char*)q, charset, code); in traverse_for_entities()
911 q += write_octet_sequence((unsigned char*)q, charset, code2); in traverse_for_entities()
983 enum entity_charset charset; in php_unescape_html_entities() local
992 charset = determine_charset(hint_charset, /* quiet */ 0); in php_unescape_html_entities()
994 charset = cs_8859_1; /* charset shouldn't matter, use ISO-8859-1 for performance */ in php_unescape_html_entities()
1010 traverse_for_entities(ZSTR_VAL(str), ZSTR_LEN(str), ret, all, flags, inverse_map, charset); in php_unescape_html_entities()
1024 enum entity_charset charset, in find_entity_for_char() argument
1055 next_char = get_next_char(charset, old, oldlen, cursor, &status); in find_entity_for_char()
1107 enum entity_charset charset = determine_charset(hint_charset, quiet); in php_escape_html_entities_ex() local
1117 if (!quiet && CHARSET_PARTIAL_SUPPORT(charset)) { in php_escape_html_entities_ex()
1122 LIMIT_ALL(all, doctype, charset); in php_escape_html_entities_ex()
1125 if (all && !CHARSET_UNICODE_COMPAT(charset)) { in php_escape_html_entities_ex()
1126 to_uni_table = enc_to_uni_index[charset]; in php_escape_html_entities_ex()
1136 if (charset == cs_utf_8) { in php_escape_html_entities_ex()
1160 unsigned int this_char = get_next_char(charset, old, oldlen, &cursor, &status); in php_escape_html_entities_ex()
1204 find_entity_for_char(this_char, charset, entity_table.ms_table, &rep, in php_escape_html_entities_ex()
1219 if (CHARSET_UNICODE_COMPAT(charset)) { in php_escape_html_entities_ex()
1401 enum entity_charset charset, in write_s3row_data() argument
1408 written_k1 = write_octet_sequence((unsigned char*)key, charset, orig_cp); in write_s3row_data()
1436 if (!CHARSET_UNICODE_COMPAT(charset)) { in write_s3row_data()
1437 if (map_from_unicode(uni_cp, charset, &spe_cp) == FAILURE) in write_s3row_data()
1443 written_k2 = write_octet_sequence((unsigned char*)&key[written_k1], charset, spe_cp); in write_s3row_data()
1462 enum entity_charset charset; in PHP_FUNCTION() local
1475 charset = determine_charset(charset_hint, /* quiet */ 0); in PHP_FUNCTION()
1477 LIMIT_ALL(all, doctype, charset); in PHP_FUNCTION()
1482 if (all && !CHARSET_UNICODE_COMPAT(charset)) { in PHP_FUNCTION()
1483 to_uni_table = enc_to_uni_index[charset]; in PHP_FUNCTION()
1489 if (CHARSET_UNICODE_COMPAT(charset)) { in PHP_FUNCTION()
1493 if (CHARSET_SINGLE_BYTE(charset)) { /* ISO-8859-1 */ in PHP_FUNCTION()
1516 write_s3row_data(r, code, charset, return_value); in PHP_FUNCTION()
1538 write_s3row_data(r, i, charset, return_value); in PHP_FUNCTION()