Lines Matching refs:j
924 int j, k; in php_unescape_html_entities() local
938 for (j = 0; entity_map[j].charset != cs_terminator; j++) { in php_unescape_html_entities()
939 if (entity_map[j].charset != charset) in php_unescape_html_entities()
942 for (k = entity_map[j].basechar; k <= entity_map[j].endchar; k++) { in php_unescape_html_entities()
946 if (entity_map[j].table[k - entity_map[j].basechar] == NULL) in php_unescape_html_entities()
949 …entity_length = slprintf(entity, sizeof(entity), "&%s;", entity_map[j].table[k - entity_map[j].bas… in php_unescape_html_entities()
997 for (j = 0; basic_entities[j].charcode != 0; j++) { in php_unescape_html_entities()
999 if (basic_entities[j].flags && (quote_style & basic_entities[j].flags) == 0) in php_unescape_html_entities()
1002 replacement[0] = (unsigned char)basic_entities[j].charcode; in php_unescape_html_entities()
1005 if (php_memnstr(ret, basic_entities[j].entity, basic_entities[j].entitylen, ret+retlen)) { in php_unescape_html_entities()
1006 …replaced = php_str_to_str(ret, retlen, basic_entities[j].entity, basic_entities[j].entitylen, repl… in php_unescape_html_entities()
1127 int i, j, maxlen, len; in php_escape_html_entities_ex() local
1166 for (j = 0; entity_map[j].charset != cs_terminator; j++) { in php_escape_html_entities_ex()
1167 if (entity_map[j].charset == charset in php_escape_html_entities_ex()
1168 && this_char >= entity_map[j].basechar in php_escape_html_entities_ex()
1169 && this_char <= entity_map[j].endchar) { in php_escape_html_entities_ex()
1170 rep = (unsigned char*)entity_map[j].table[this_char - entity_map[j].basechar]; in php_escape_html_entities_ex()
1240 for (j = 0; basic_entities[j].charcode != 0; j++) { in php_escape_html_entities_ex()
1241 if ((basic_entities[j].charcode != this_char) || in php_escape_html_entities_ex()
1242 (basic_entities[j].flags && in php_escape_html_entities_ex()
1243 (quote_style & basic_entities[j].flags) == 0)) { in php_escape_html_entities_ex()
1247 memcpy(replaced + len, basic_entities[j].entity, basic_entities[j].entitylen); in php_escape_html_entities_ex()
1248 len += basic_entities[j].entitylen; in php_escape_html_entities_ex()
1324 int len, j, i, new_len; in PHP_FUNCTION() local
1340 for (j = 0, i = 0; basic_entities[i].charcode != 0; i++) { in PHP_FUNCTION()
1344 basic_entities_dec[j].charcode = basic_entities[i].charcode; in PHP_FUNCTION()
1345 memcpy(basic_entities_dec[j].entity, basic_entities[i].entity, basic_entities[i].entitylen + 1); in PHP_FUNCTION()
1346 basic_entities_dec[j].entitylen = basic_entities[i].entitylen; in PHP_FUNCTION()
1347 j++; in PHP_FUNCTION()
1349 basic_entities_dec[j].charcode = '&'; in PHP_FUNCTION()
1350 basic_entities_dec[j].entitylen = sizeof("&") - 1; in PHP_FUNCTION()
1351 memcpy(basic_entities_dec[j].entity, "&", sizeof("&")); in PHP_FUNCTION()
1352 i = j + 1; in PHP_FUNCTION()
1357 for (j = 0; j < i; j++) { in PHP_FUNCTION()
1358 if (basic_entities_dec[j].entitylen > l) { in PHP_FUNCTION()
1361 if (!memcmp(p, basic_entities_dec[j].entity, basic_entities_dec[j].entitylen)) { in PHP_FUNCTION()
1362 int e_len = basic_entities_dec[j].entitylen - 1; in PHP_FUNCTION()
1364 *p++ = basic_entities_dec[j].charcode; in PHP_FUNCTION()
1422 int j; in PHP_FUNCTION() local
1440 for (j = 0; entity_map[j].charset != cs_terminator; j++) { in PHP_FUNCTION()
1441 if (entity_map[j].charset != charset) in PHP_FUNCTION()
1443 for (i = 0; i <= entity_map[j].endchar - entity_map[j].basechar; i++) { in PHP_FUNCTION()
1448 if (entity_map[j].table[i] == NULL) in PHP_FUNCTION()
1451 k = i + entity_map[j].basechar; in PHP_FUNCTION()
1471 snprintf(buffer, sizeof(buffer), "&%s;", entity_map[j].table[i]); in PHP_FUNCTION()
1483 for (j = 0; basic_entities[j].charcode != 0; j++) { in PHP_FUNCTION()
1484 if (basic_entities[j].flags && (quote_style & basic_entities[j].flags) == 0) in PHP_FUNCTION()
1487 ind[0] = (unsigned char)basic_entities[j].charcode; in PHP_FUNCTION()
1490 add_assoc_stringl(return_value, ind, basic_entities[j].entity, in PHP_FUNCTION()
1491 basic_entities[j].entitylen, 1); in PHP_FUNCTION()