1
0

fix: fix all old usage of UTF8 in std::ostream.

- use patch stream instead of all old use of UTF8 in std::ostream (reinterpret way).
This commit is contained in:
2025-09-28 21:37:05 +08:00
parent bd5032cee7
commit 8d7eff2a15
4 changed files with 18 additions and 21 deletions

View File

@@ -6,11 +6,10 @@
* @brief This namespace add UTF8 support for \c std::ostream.
* @details
* The operator overloads written in this namespace will give \c std::ostream ability to write UTF8 string and its char.
* For using this feature, please directly use <TT>using namespace yycc::patch:stream;</TT> to import this namespace.
* For using this feature, please directly use <TT>using namespace yycc::patch::stream;</TT> to import this namespace.
*/
namespace yycc::patch::stream {
// TODO: fix all REINTERPRET::as_ordinary_view polyfill for std::ostream.
// TODO: replace all old way (C-style output) with this new way if possible.
std::ostream& operator<<(std::ostream& os, const std::u8string_view& u8str);