mirror of
https://github.com/jtheoof/swappy.git
synced 2024-09-11 14:55:49 +03:00
UTF-8 characters are now handled porperly. Also re-worked some helper functions with UTF-8 in mind. I secretly no real C developers will look at this. I might have to ask for witness protection. Closes #43
10 lines
245 B
C
10 lines
245 B
C
|
|
#pragma once
|
|
|
|
#include <glib.h>
|
|
|
|
glong string_get_nb_bytes_until(gchar *str, glong until);
|
|
gchar *string_remove_at(char *str, glong pos);
|
|
gchar *string_insert_chars_at(gchar *str, gchar *chars, glong pos);
|
|
void pixel_data_print(guint32 pixel);
|