comparison util.h @ 1527:4f6e8acd7b6a nuklear_ui

Added support for TTC and dfont format true type fonts. More robust font selection on Windows
author Michael Pavone <pavone@retrodev.com>
date Tue, 06 Mar 2018 21:27:12 -0800
parents c416ace65ff1
children e94cff9cb625
comparison
equal deleted inserted replaced
1526:9bea1a199f15 1527:4f6e8acd7b6a
32 char * strip_ws(char * text); 32 char * strip_ws(char * text);
33 //Inserts a null after the first word, returns a pointer to the second word 33 //Inserts a null after the first word, returns a pointer to the second word
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
38 char *utf16be_to_utf8(uint8_t *buf, uint32_t max_size);
37 //Determines whether a character is a valid path separator for the current platform 39 //Determines whether a character is a valid path separator for the current platform
38 char is_path_sep(char c); 40 char is_path_sep(char c);
39 //Determines whether a path is considered an absolute path on the current platform 41 //Determines whether a path is considered an absolute path on the current platform
40 char is_absolute_path(char *path); 42 char is_absolute_path(char *path);
41 //Returns the basename of a path with th extension (if any) stripped 43 //Returns the basename of a path with th extension (if any) stripped