new functions prototypes, minor fixes

* prototypes for UTF-8 ==> wchar16 conversion
* minor fixes
This commit is contained in:
Frank
2025-11-19 17:40:11 +01:00
parent 43ab0dd468
commit 55c9741f01
3 changed files with 34 additions and 9 deletions

View File

@@ -0,0 +1,17 @@
#if defined(WLED_ENABLE_FULL_FONTS)
#include "codepages.h"
#include <string.h>
// translates the next unicode UTF-8 item to 2-byte "code points" (reduced UTF-16)
uint16_t unicodeToWchar16(const char* utf8, size_t maxLen) {
// to be implemented
}
// returns a pointer to the next unicode item - can be used to "advance" conversion after unicodeToWchar16()
// return nullptr at end of input
const char* nextUnicode(const char* utf8, size_t maxLen) {
// to be implemented
}
#endif