🩹 Fix FSTR / PSTR usage
This commit is contained in:
@@ -63,6 +63,7 @@ uint8_t* get_utf8_value_cb(uint8_t *pstart, read_byte_cb_t cb_read_byte, wchar_t
|
||||
/* Returns length of string in CHARACTERS, NOT BYTES */
|
||||
uint8_t utf8_strlen(const char *pstart);
|
||||
uint8_t utf8_strlen_P(PGM_P pstart);
|
||||
inline uint8_t utf8_strlen(FSTR_P fstart) { return utf8_strlen_P(FTOP(fstart)); }
|
||||
|
||||
/* Returns start byte position of desired char number */
|
||||
uint8_t utf8_byte_pos_by_char_num(const char *pstart, const uint8_t charnum);
|
||||
|
||||
Reference in New Issue
Block a user