transcoding.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef CRUCIBLE_WINDOWS_TRANSCODING_HPP #define CRUCIBLE_WINDOWS_TRANSCODING_HPP #include "crucible/windows/errors.hpp" #include <string> namespace crucible::windows::transcoding { [[nodiscard]] auto transcode_utf8_to_utf16(std::string const &utf8) -> core::result::Result<windows::errors::Error, std::wstring>; [[nodiscard]] auto transcode_utf16_to_utf8(std::wstring const &utf16) -> core::result::Result<windows::errors::Error, std::string>; } #endif // CRUCIBLE_WINDOWS_TRANSCODING_HPP