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()
1148 size_t *cursor) in find_entity_for_char() argument
1166 size_t cursor_before = *cursor; in find_entity_for_char()
1170 if (!(*cursor < oldlen)) in find_entity_for_char()
1173 next_char = get_next_char(charset, old, oldlen, cursor, &status); in find_entity_for_char()
1194 *cursor = cursor_before; in find_entity_for_char()
1224 size_t cursor, maxlen, len; in php_escape_html_entities_ex() local
1273 cursor = 0; in php_escape_html_entities_ex()
1274 while (cursor < oldlen) { in php_escape_html_entities_ex()
1277 cursor_before = cursor; in php_escape_html_entities_ex()
1279 unsigned int this_char = get_next_char(charset, old, oldlen, &cursor, &status); in php_escape_html_entities_ex()
1302 mbseqlen = cursor - cursor_before; in php_escape_html_entities_ex()
1324 &rep_len, old, oldlen, &cursor); in php_escape_html_entities_ex()
1382 if (old[cursor] == '#') { /* numeric entity */ in php_escape_html_entities_ex()
1385 char *pos = (char*)&old[cursor+1]; in php_escape_html_entities_ex()
1393 ent_len = pos - (char*)&old[cursor]; in php_escape_html_entities_ex()
1396 const char *start = (const char *) &old[cursor], in php_escape_html_entities_ex()
1420 memcpy(&ZSTR_VAL(replaced)[len], &old[cursor], ent_len); in php_escape_html_entities_ex()
1423 cursor += ent_len + 1; in php_escape_html_entities_ex()