summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2018-04-24 20:31:18 -0700
committerMichael Pavone <pavone@retrodev.com>2018-04-24 20:31:18 -0700
commit77f5ca7e3eac55689c332dab1e329f6e55a0232d (patch)
tree243a7528fd472faa54c14ae0eaf26f7387cefeec /util.h
parent25819803cde3a2960d938af9803f09f5d8a4941f (diff)
Scale UI font size based on window size and start basing widget sizes based on font size
Diffstat (limited to 'util.h')
-rw-r--r--util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/util.h b/util.h
index c846ac5..aa42c8c 100644
--- a/util.h
+++ b/util.h
@@ -36,6 +36,8 @@ char * split_keyval(char * text);
void bin_to_hex(uint8_t *output, uint8_t *input, uint64_t size);
//Takes an (optionally) null-terminated UTF16-BE string and converts a maximum of max_size code-units to UTF-8
char *utf16be_to_utf8(uint8_t *buf, uint32_t max_size);
+//Returns the next Unicode codepoint from a utf-8 string
+int utf8_codepoint(const char **text);
//Determines whether a character is a valid path separator for the current platform
char is_path_sep(char c);
//Determines whether a path is considered an absolute path on the current platform