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

@@ -1,8 +1,9 @@
#if defined(WLED_ENABLE_FULL_FONTS)
#include "codepages.h"
#include <string.h>
// translates unicode 2-byte (UTF-16) "code points" into corresponding characters in codepage 347 (IBM PC aka PC-8)
// translates unicode 2-byte (UTF-16) "code points" into corresponding characters in codepage 437 (IBM PC aka PC-8)
// based on a table from https://en.wikipedia.org/wiki/Code_page_437#Character_set
uint16_t wchar16ToCodepage437(uint16_t wideChar) {
@@ -205,7 +206,4 @@ uint16_t wchar16ToCodepage437(uint16_t wideChar) {
}
#endif
#endif