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 int map_from_unicode(unsigned code, enum entity_charset charset, unsigned *res) 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()
822 enum entity_charset charset) in traverse_for_entities() argument
899 if (charset != cs_utf_8) { in traverse_for_entities()
901 if (map_from_unicode(code, charset, &code) == FAILURE || code2 != 0) in traverse_for_entities()
905 q += write_octet_sequence((unsigned char*)q, charset, code); in traverse_for_entities()
907 q += write_octet_sequence((unsigned char*)q, charset, code2); in traverse_for_entities()
979 enum entity_charset charset; in php_unescape_html_entities() local
988 charset = determine_charset(hint_charset, /* quiet */ 0); in php_unescape_html_entities()
990 charset = cs_8859_1; /* charset shouldn't matter, use ISO-8859-1 for performance */ in php_unescape_html_entities()
1006 traverse_for_entities(ZSTR_VAL(str), ZSTR_LEN(str), ret, all, flags, inverse_map, charset); in php_unescape_html_entities()
1020 enum entity_charset charset, in find_entity_for_char() argument
1051 next_char = get_next_char(charset, old, oldlen, cursor, &status); in find_entity_for_char()
1103 enum entity_charset charset = determine_charset(hint_charset, quiet); in php_escape_html_entities_ex() local
1113 if (!quiet && CHARSET_PARTIAL_SUPPORT(charset)) { in php_escape_html_entities_ex()
1118 LIMIT_ALL(all, doctype, charset); in php_escape_html_entities_ex()
1121 if (all && !CHARSET_UNICODE_COMPAT(charset)) { in php_escape_html_entities_ex()
1122 to_uni_table = enc_to_uni_index[charset]; in php_escape_html_entities_ex()
1132 if (charset == cs_utf_8) { in php_escape_html_entities_ex()
1156 unsigned int this_char = get_next_char(charset, old, oldlen, &cursor, &status); in php_escape_html_entities_ex()
1200 find_entity_for_char(this_char, charset, entity_table.ms_table, &rep, in php_escape_html_entities_ex()
1215 if (CHARSET_UNICODE_COMPAT(charset)) { in php_escape_html_entities_ex()
1391 enum entity_charset charset, in write_s3row_data() argument
1398 written_k1 = write_octet_sequence((unsigned char*)key, charset, orig_cp); in write_s3row_data()
1426 if (!CHARSET_UNICODE_COMPAT(charset)) { in write_s3row_data()
1427 if (map_from_unicode(uni_cp, charset, &spe_cp) == FAILURE) in write_s3row_data()
1433 written_k2 = write_octet_sequence((unsigned char*)&key[written_k1], charset, spe_cp); in write_s3row_data()
1452 enum entity_charset charset; in PHP_FUNCTION() local
1465 charset = determine_charset(charset_hint, /* quiet */ 0); in PHP_FUNCTION()
1467 LIMIT_ALL(all, doctype, charset); in PHP_FUNCTION()
1472 if (all && !CHARSET_UNICODE_COMPAT(charset)) { in PHP_FUNCTION()
1473 to_uni_table = enc_to_uni_index[charset]; in PHP_FUNCTION()
1479 if (CHARSET_UNICODE_COMPAT(charset)) { in PHP_FUNCTION()
1483 if (CHARSET_SINGLE_BYTE(charset)) { /* ISO-8859-1 */ in PHP_FUNCTION()
1506 write_s3row_data(r, code, charset, return_value); in PHP_FUNCTION()
1528 write_s3row_data(r, i, charset, return_value); in PHP_FUNCTION()