ze
Loading...
Searching...
No Matches
row.h
Go to the documentation of this file.
1
8#pragma once
9
10#include "ze.h"
11
12int editorRowCxToRx(erow *row, int cx);
13int editorRowRxToCx(erow *row, int rx);
14void editorUpdateRow(erow *row);
15void editorInsertRow(int at, char *s, size_t len);
16void editorFreeRow(erow *row);
17void editorDelRow(int at);
18void editorRowInsertChar(erow *row, int at, int c);
19void editorRowAppendString(erow *row, char *s, size_t len);
20void editorRowDelChar(erow *row, int at);
21void editorDelRowAtChar(erow *row, int at);
22
void editorDelRowAtChar(erow *row, int at)
Delete from a row starting at a character index to the end of the line.
Definition row.c:247
void editorRowAppendString(erow *row, char *s, size_t len)
Append a byte sequence to the end of a row.
Definition row.c:208
void editorDelRow(int at)
Delete row at index at.
Definition row.c:160
void editorInsertRow(int at, char *s, size_t len)
Insert a new row at position at initialized from a string.
Definition row.c:114
void editorFreeRow(erow *row)
Free dynamic memory associated with a row.
Definition row.c:145
void editorRowDelChar(erow *row, int at)
Delete a character at index at in a row.
Definition row.c:227
void editorUpdateRow(erow *row)
Recompute render, rsize, and syntax highlighting for a row.
Definition row.c:73
int editorRowCxToRx(erow *row, int cx)
Convert an index in characters (cx) to a render index (rx).
Definition row.c:25
int editorRowRxToCx(erow *row, int rx)
Convert a render index (rx) to a character index (cx).
Definition row.c:47
void editorRowInsertChar(erow *row, int at, int c)
Insert a character into a row at index at.
Definition row.c:184
Definition ze.h:76
Core editor types, macros, and global state.