Mercurial > repos > blastem
comparison util.h @ 1572:5efeca06d942
Scale UI font size based on window size and start basing widget sizes based on font size
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 24 Apr 2018 20:31:18 -0700 |
parents | e94cff9cb625 |
children | 7121daaa48c2 |
comparison
equal
deleted
inserted
replaced
1571:3def7b216a5b | 1572:5efeca06d942 |
---|---|
34 char * split_keyval(char * text); | 34 char * split_keyval(char * text); |
35 //Takes a binary byte buffer and produces a lowercase hex string | 35 //Takes a binary byte buffer and produces a lowercase hex string |
36 void bin_to_hex(uint8_t *output, uint8_t *input, uint64_t size); | 36 void bin_to_hex(uint8_t *output, uint8_t *input, uint64_t size); |
37 //Takes an (optionally) null-terminated UTF16-BE string and converts a maximum of max_size code-units to UTF-8 | 37 //Takes an (optionally) null-terminated UTF16-BE string and converts a maximum of max_size code-units to UTF-8 |
38 char *utf16be_to_utf8(uint8_t *buf, uint32_t max_size); | 38 char *utf16be_to_utf8(uint8_t *buf, uint32_t max_size); |
39 //Returns the next Unicode codepoint from a utf-8 string | |
40 int utf8_codepoint(const char **text); | |
39 //Determines whether a character is a valid path separator for the current platform | 41 //Determines whether a character is a valid path separator for the current platform |
40 char is_path_sep(char c); | 42 char is_path_sep(char c); |
41 //Determines whether a path is considered an absolute path on the current platform | 43 //Determines whether a path is considered an absolute path on the current platform |
42 char is_absolute_path(char *path); | 44 char is_absolute_path(char *path); |
43 //Returns the basename of a path with th extension (if any) stripped | 45 //Returns the basename of a path with th extension (if any) stripped |