1 #ifndef EDIT_H 2 #define EDIT_H 3 4 #include <stdbool.h> 5 #include <stddef.h> 6 #include "util/unicode.h" 7 8 void select_block(void); 9 void unselect(void); 10 void cut(size_t len, bool is_lines); 11 void copy(size_t len, bool is_lines); 12 void insert_text(const char *text, size_t size); 13 void paste(bool at_cursor); 14 void delete_ch(void); 15 void erase(void); 16 void insert_ch(CodePoint ch); 17 void join_lines(void); 18 void shift_lines(int count); 19 void clear_lines(void); 20 void new_line(void); 21 void format_paragraph(size_t text_width); 22 void change_case(int mode); 23 24 #endif 25