* Return a UTF-8 representation of the path as a std::string, for * compatibility with code using std::string. For code using the newer * std::u8string type, it is more efficient to call the inherited * std::filesystem::path::u8string method instead. */
| 73 | * std::filesystem::path::u8string method instead. |
| 74 | */ |
| 75 | std::string utf8string() const |
| 76 | { |
| 77 | const std::u8string& utf8_str{std::filesystem::path::u8string()}; |
| 78 | return std::string{utf8_str.begin(), utf8_str.end()}; |
| 79 | } |
| 80 | }; |
| 81 | |
| 82 | static inline path u8path(std::string_view utf8_str) |