ze
Loading...
Searching...
No Matches
Functions | Variables
row.c File Reference

Row manipulation and conversion implementations. More...

#include <stdlib.h>
#include <string.h>
#include "ze.h"
#include "syntax.h"
Include dependency graph for row.c:

Functions

int editorRowCxToRx (erow *row, int cx)
 Convert an index in characters (cx) to a render index (rx).
 
int editorRowRxToCx (erow *row, int rx)
 Convert a render index (rx) to a character index (cx).
 
void editorUpdateRow (erow *row)
 Recompute render, rsize, and syntax highlighting for a row.
 
void editorInsertRow (int at, char *s, size_t len)
 Insert a new row at position at initialized from a string.
 
void editorFreeRow (erow *row)
 Free dynamic memory associated with a row.
 
void editorDelRow (int at)
 Delete row at index at.
 
void editorRowInsertChar (erow *row, int at, int c)
 Insert a character into a row at index at.
 
void editorRowAppendString (erow *row, char *s, size_t len)
 Append a byte sequence to the end of a row.
 
void editorRowDelChar (erow *row, int at)
 Delete a character at index at in a row.
 
void editorDelRowAtChar (erow *row, int at)
 Delete from a row starting at a character index to the end of the line.
 

Variables

struct editorConfig E
 

Detailed Description

Row manipulation and conversion implementations.