swappy/include/util.h
Jeremy Attali 717ab0c2d1 fix(text): properly handle utf-8 chars
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
2020-07-08 21:48:31 -04:00

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);