byte_index 233 src/editor/edit-impl.h MC_MOCKABLE int edit_get_syntax_color (WEdit * edit, off_t byte_index); byte_index 117 src/editor/editbuffer.c edit_buffer_get_byte_ptr (const edit_buffer_t *buf, off_t byte_index) byte_index 121 src/editor/editbuffer.c if (byte_index >= (buf->curs1 + buf->curs2) || byte_index < 0) byte_index 124 src/editor/editbuffer.c if (byte_index >= buf->curs1) byte_index 128 src/editor/editbuffer.c p = buf->curs1 + buf->curs2 - byte_index - 1; byte_index 133 src/editor/editbuffer.c b = g_ptr_array_index (buf->b1, byte_index >> S_EDIT_BUF_SIZE); byte_index 134 src/editor/editbuffer.c return (char *) b + (byte_index & M_EDIT_BUF_SIZE); byte_index 187 src/editor/editbuffer.c edit_buffer_get_byte (const edit_buffer_t *buf, off_t byte_index) byte_index 191 src/editor/editbuffer.c p = edit_buffer_get_byte_ptr (buf, byte_index); byte_index 212 src/editor/editbuffer.c edit_buffer_get_utf (const edit_buffer_t *buf, off_t byte_index, int *char_length) byte_index 219 src/editor/editbuffer.c if (byte_index >= (buf->curs1 + buf->curs2) || byte_index < 0) byte_index 225 src/editor/editbuffer.c str = edit_buffer_get_byte_ptr (buf, byte_index); byte_index 240 src/editor/editbuffer.c utf8_buf[i] = edit_buffer_get_byte (buf, byte_index + i); byte_index 275 src/editor/editbuffer.c edit_buffer_get_prev_utf (const edit_buffer_t *buf, off_t byte_index, int *char_length) byte_index 283 src/editor/editbuffer.c if (byte_index > (buf->curs1 + buf->curs2) || byte_index <= 0) byte_index 290 src/editor/editbuffer.c utf8_buf[i] = edit_buffer_get_byte (buf, byte_index + i - (2 * UTF8_CHAR_LEN)); byte_index 41 src/editor/editbuffer.h int edit_buffer_get_byte (const edit_buffer_t * buf, off_t byte_index); byte_index 43 src/editor/editbuffer.h int edit_buffer_get_utf (const edit_buffer_t * buf, off_t byte_index, int *char_length); byte_index 44 src/editor/editbuffer.h int edit_buffer_get_prev_utf (const edit_buffer_t * buf, off_t byte_index, int *char_length); byte_index 589 src/editor/syntax.c edit_get_rule (WEdit *edit, off_t byte_index) byte_index 593 src/editor/syntax.c if (byte_index > edit->last_get_rule) byte_index 595 src/editor/syntax.c for (i = edit->last_get_rule + 1; i <= byte_index; i++) byte_index 615 src/editor/syntax.c else if (byte_index < edit->last_get_rule) byte_index 624 src/editor/syntax.c for (i = -1; i <= byte_index; i++) byte_index 631 src/editor/syntax.c if (byte_index >= s->offset) byte_index 634 src/editor/syntax.c for (i = s->offset + 1; i <= byte_index; i++) byte_index 643 src/editor/syntax.c edit->last_get_rule = byte_index; byte_index 1462 src/editor/syntax.c edit_get_syntax_color (WEdit *edit, off_t byte_index) byte_index 1467 src/editor/syntax.c if (edit_options.syntax_highlighting && edit->rules != NULL && byte_index < edit->buffer.size) byte_index 1469 src/editor/syntax.c edit_get_rule (edit, byte_index); byte_index 137 src/viewer/datasource.c mcview_get_ptr_file (WView *view, off_t byte_index) byte_index 141 src/viewer/datasource.c mcview_file_load_data (view, byte_index); byte_index 142 src/viewer/datasource.c if (mcview_already_loaded (view->ds_file_offset, byte_index, view->ds_file_datalen)) byte_index 143 src/viewer/datasource.c return (char *) (view->ds_file_data + (byte_index - view->ds_file_offset)); byte_index 152 src/viewer/datasource.c mcview_get_utf (WView *view, off_t byte_index, int *ch, int *ch_len) byte_index 162 src/viewer/datasource.c str = mcview_get_ptr_growing_buffer (view, byte_index); byte_index 165 src/viewer/datasource.c str = mcview_get_ptr_file (view, byte_index); byte_index 168 src/viewer/datasource.c str = mcview_get_ptr_string (view, byte_index); byte_index 189 src/viewer/datasource.c if (mcview_get_byte (view, byte_index + i, &res)) byte_index 224 src/viewer/datasource.c mcview_get_ptr_string (WView *view, off_t byte_index) byte_index 228 src/viewer/datasource.c if (byte_index >= 0 && byte_index < (off_t) view->ds_string_len) byte_index 229 src/viewer/datasource.c return (char *) (view->ds_string_data + byte_index); byte_index 236 src/viewer/datasource.c mcview_get_byte_string (WView *view, off_t byte_index, int *retval) byte_index 243 src/viewer/datasource.c p = mcview_get_ptr_string (view, byte_index); byte_index 255 src/viewer/datasource.c mcview_get_byte_none (WView *view, off_t byte_index, int *retval) byte_index 258 src/viewer/datasource.c (void) byte_index; byte_index 285 src/viewer/datasource.c mcview_file_load_data (WView *view, off_t byte_index) byte_index 293 src/viewer/datasource.c if (mcview_already_loaded (view->ds_file_offset, byte_index, view->ds_file_datalen)) byte_index 296 src/viewer/datasource.c if (byte_index >= view->ds_file_filesize) byte_index 299 src/viewer/datasource.c blockoffset = mcview_offset_rounddown (byte_index, view->ds_file_datasize); byte_index 249 src/viewer/growbuf.c mcview_get_byte_growing_buffer (WView *view, off_t byte_index, int *retval) byte_index 258 src/viewer/growbuf.c if (byte_index < 0) byte_index 261 src/viewer/growbuf.c p = mcview_get_ptr_growing_buffer (view, byte_index); byte_index 274 src/viewer/growbuf.c mcview_get_ptr_growing_buffer (WView *view, off_t byte_index) byte_index 280 src/viewer/growbuf.c if (byte_index < 0) byte_index 283 src/viewer/growbuf.c pageno = byte_index / VIEW_PAGE_SIZE; byte_index 284 src/viewer/growbuf.c pageindex = byte_index % VIEW_PAGE_SIZE; byte_index 286 src/viewer/growbuf.c mcview_growbuf_read_until (view, byte_index + 1); byte_index 243 src/viewer/internal.h char *mcview_get_ptr_file (WView * view, off_t byte_index); byte_index 244 src/viewer/internal.h char *mcview_get_ptr_string (WView * view, off_t byte_index); byte_index 245 src/viewer/internal.h gboolean mcview_get_utf (WView * view, off_t byte_index, int *ch, int *ch_len); byte_index 246 src/viewer/internal.h gboolean mcview_get_byte_string (WView * view, off_t byte_index, int *retval); byte_index 247 src/viewer/internal.h gboolean mcview_get_byte_none (WView * view, off_t byte_index, int *retval); byte_index 249 src/viewer/internal.h void mcview_file_load_data (WView * view, off_t byte_index); byte_index 275 src/viewer/internal.h gboolean mcview_get_byte_growing_buffer (WView * view, off_t byte_index, int *retval); byte_index 276 src/viewer/internal.h char *mcview_get_ptr_growing_buffer (WView * view, off_t byte_index); byte_index 377 src/viewer/internal.h mcview_get_byte_file (WView *view, off_t byte_index, int *retval) byte_index 381 src/viewer/internal.h mcview_file_load_data (view, byte_index); byte_index 382 src/viewer/internal.h if (mcview_already_loaded (view->ds_file_offset, byte_index, view->ds_file_datalen)) byte_index 385 src/viewer/internal.h *retval = view->ds_file_data[byte_index - view->ds_file_offset];