Lines Matching refs:cursor

61 	*cursor = pos + (advance); \
97 size_t *cursor, in get_next_char() argument
100 size_t pos = *cursor; in get_next_char()
348 *cursor = pos; in get_next_char()
358 size_t *cursor, in php_next_utf8_char() argument
361 return get_next_char(cs_utf_8, str, str_len, cursor, status); in php_next_utf8_char()
1030 size_t *cursor) in find_entity_for_char() argument
1048 size_t cursor_before = *cursor; in find_entity_for_char()
1052 if (!(*cursor < oldlen)) in find_entity_for_char()
1055 next_char = get_next_char(charset, old, oldlen, cursor, &status); in find_entity_for_char()
1076 *cursor = cursor_before; in find_entity_for_char()
1105 size_t cursor, maxlen, len; in php_escape_html_entities_ex() local
1154 cursor = 0; in php_escape_html_entities_ex()
1155 while (cursor < oldlen) { in php_escape_html_entities_ex()
1158 cursor_before = cursor; in php_escape_html_entities_ex()
1160 unsigned int this_char = get_next_char(charset, old, oldlen, &cursor, &status); in php_escape_html_entities_ex()
1183 mbseqlen = cursor - cursor_before; in php_escape_html_entities_ex()
1205 &rep_len, old, oldlen, &cursor); in php_escape_html_entities_ex()
1263 if (old[cursor] == '#') { /* numeric entity */ in php_escape_html_entities_ex()
1266 char *pos = (char*)&old[cursor+1]; in php_escape_html_entities_ex()
1274 ent_len = pos - (char*)&old[cursor]; in php_escape_html_entities_ex()
1277 const char *start = (const char *) &old[cursor], in php_escape_html_entities_ex()
1301 memcpy(&ZSTR_VAL(replaced)[len], &old[cursor], ent_len); in php_escape_html_entities_ex()
1304 cursor += ent_len + 1; in php_escape_html_entities_ex()