I originally wanted to add these utils into
unicode.h, but it cannot be used with msvcrt headers.
This prompted the creation of a new header called
The name is generic and broad, but the file may grow to contain more general stuff in the future.
The rationale behind writing the UTF helpers is mainly to solve, at least in part, the complexity.
MultiByteToWideChar() in particular are quite dangerous as they treat the buffer size as bytes for
char (8 bits) and as number of characters for
WCHAR (16 bits).
There are already several wrappers around the codebase, mine should be able to replace them.