refactor: update encoding namespace

- add all essential functions prototypes in iconv encoding.
- add lost UTF convertion for windows encoding.
This commit is contained in:
2025-07-21 20:36:26 +08:00
parent c2f6e29c36
commit 6d44c7605b
5 changed files with 182 additions and 9 deletions

View File

@ -241,9 +241,13 @@ namespace yycc::encoding::windows {
#pragma endregion
// YYC MARK:
// The convertion between UTF is implemented by c16rtomb, c32rtomb, mbrtoc16 and mbrtoc32.
// These function is locale related in C++ standard, but in Microsoft STL, it's only for UTF8.
// So we can use them safely in Win32 environment.
#undef CONVFN_TYPE1
#undef CONVFN_TYPE2
#undef CONVFCT_TYPE4
} // namespace yycc::encoding::windows