Lines Matching refs:cursor

67 	*cursor = pos + (advance); \
93 size_t *cursor, in get_next_char() argument
96 size_t pos = *cursor; in get_next_char()
344 *cursor = pos; in get_next_char()
354 size_t *cursor, in php_next_utf8_char() argument
357 return get_next_char(cs_utf_8, str, str_len, cursor, status); in php_next_utf8_char()
1140 size_t *cursor) in find_entity_for_char() argument
1158 size_t cursor_before = *cursor; in find_entity_for_char()
1162 if (!(*cursor < oldlen)) in find_entity_for_char()
1165 next_char = get_next_char(charset, old, oldlen, cursor, &status); in find_entity_for_char()
1186 *cursor = cursor_before; in find_entity_for_char()
1216 size_t cursor, maxlen, len; in php_escape_html_entities_ex() local
1269 cursor = 0; in php_escape_html_entities_ex()
1270 while (cursor < oldlen) { in php_escape_html_entities_ex()
1273 cursor_before = cursor; in php_escape_html_entities_ex()
1275 unsigned int this_char = get_next_char(charset, old, oldlen, &cursor, &status); in php_escape_html_entities_ex()
1299 mbseqlen = cursor - cursor_before; in php_escape_html_entities_ex()
1321 &rep_len, old, oldlen, &cursor); in php_escape_html_entities_ex()
1379 if (old[cursor] == '#') { /* numeric entity */ in php_escape_html_entities_ex()
1382 char *pos = (char*)&old[cursor+1]; in php_escape_html_entities_ex()
1390 ent_len = pos - (char*)&old[cursor]; in php_escape_html_entities_ex()
1393 const char *start = &old[cursor], in php_escape_html_entities_ex()
1417 memcpy(&replaced[len], &old[cursor], ent_len); in php_escape_html_entities_ex()
1420 cursor += ent_len + 1; in php_escape_html_entities_ex()