(In reply to Chris Peterson [:cpeterson] from comment #2) > What is a safe approach for working with `char*` and `char8_t*` strings? Even `Utf8Unit`'s definition has comments saying it depends on implementation-defined behavior: https://searchfox.org/mozilla-central/search?q=defined&path=Utf8.h `std::start_lifetime_as_array` (but unavailable until C++23.) [`std::cast_as_utf_unchecked`](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2626r0.pdf) (still [work in progress](https://github.com/cplusplus/papers/issues/1289).)
Bug 1880204 Comment 3 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
(In reply to Chris Peterson [:cpeterson] from comment #2) > What is a safe approach for working with `char*` and `char8_t*` strings? Even `Utf8Unit`'s definition has comments saying it depends on implementation-defined behavior: https://searchfox.org/mozilla-central/search?q=defined&path=Utf8.h `std::start_lifetime_as` (but unavailable until C++23.) [`std::cast_as_utf_unchecked`](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2626r0.pdf) (still [work in progress](https://github.com/cplusplus/papers/issues/1289).)