fix: use new method to do the convertion among UTF8, UTF16 and UTF32.

- use std::codevct as the convertion method among UTF8, UTF16 and UTF32.
- fix the issue that COM Guard was accidently dropped by compiler because no reference to it.
This commit is contained in:
2024-06-20 10:16:13 +08:00
parent 1fd132f0c9
commit 3fa05b43d9
5 changed files with 97 additions and 87 deletions

View File

@ -245,12 +245,12 @@ namespace YYCC::ConsoleHelper {
}
void Write(const char* u8_strl) {
va_list empty;
va_list empty{};
RawWrite<false, false, false>(u8_strl, empty);
}
void WriteLine(const char* u8_strl) {
va_list empty;
va_list empty{};
RawWrite<false, false, true>(u8_strl, empty);
}
@ -269,12 +269,12 @@ namespace YYCC::ConsoleHelper {
}
void ErrWrite(const char* u8_strl) {
va_list empty;
va_list empty{};
RawWrite<false, true, false>(u8_strl, empty);
}
void ErrWriteLine(const char* u8_strl) {
va_list empty;
va_list empty{};
RawWrite<false, true, true>(u8_strl, empty);
}