-
Notifications
You must be signed in to change notification settings - Fork 0
/
row_operations.h
35 lines (19 loc) · 745 Bytes
/
row_operations.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "syntax_highlight.h"
int row_cx_to_rx(erow *, int);
int row_rx_to_cx(erow *, int);
// updates a row with the new chars[] and properties.
void update_row(erow *);
// insert a row to our editor with the given length of string
void insert_row(int, char *, size_t);
// inserts a char to a row
void insert_char_row(erow *, int, int);
// deletes a char with given index from a row.
void del_char_row(erow *, int);
// deallocates the pointers in the row.
void free_row(erow*);
// deletes a row with given row index.
void delete_row(int);
// when given a string, appends to the end of the row
void row_append_string(erow*, char*, size_t);
// allocates a space for a string in a row with given length.
char* row_to_string(int*);