Lines Matching refs:cursor
67 *cursor = pos + (advance); \
105 size_t *cursor, in get_next_char() argument
108 size_t pos = *cursor; in get_next_char()
356 *cursor = pos; in get_next_char()
366 size_t *cursor, in php_next_utf8_char() argument
369 return get_next_char(cs_utf_8, str, str_len, cursor, status); in php_next_utf8_char()
1152 size_t *cursor) in find_entity_for_char() argument
1170 size_t cursor_before = *cursor; in find_entity_for_char()
1174 if (!(*cursor < oldlen)) in find_entity_for_char()
1177 next_char = get_next_char(charset, old, oldlen, cursor, &status); in find_entity_for_char()
1198 *cursor = cursor_before; in find_entity_for_char()
1228 size_t cursor, maxlen, len; in php_escape_html_entities_ex() local
1281 cursor = 0; in php_escape_html_entities_ex()
1282 while (cursor < oldlen) { in php_escape_html_entities_ex()
1285 cursor_before = cursor; in php_escape_html_entities_ex()
1287 unsigned int this_char = get_next_char(charset, old, oldlen, &cursor, &status); in php_escape_html_entities_ex()
1311 mbseqlen = cursor - cursor_before; in php_escape_html_entities_ex()
1333 &rep_len, old, oldlen, &cursor); in php_escape_html_entities_ex()
1391 if (old[cursor] == '#') { /* numeric entity */ in php_escape_html_entities_ex()
1394 char *pos = (char*)&old[cursor+1]; in php_escape_html_entities_ex()
1402 ent_len = pos - (char*)&old[cursor]; in php_escape_html_entities_ex()
1405 const char *start = &old[cursor], in php_escape_html_entities_ex()
1429 memcpy(&replaced[len], &old[cursor], ent_len); in php_escape_html_entities_ex()
1432 cursor += ent_len + 1; in php_escape_html_entities_ex()