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:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user