ref:main
/**
* @file src/platform/windows/utf_utils.h
* @brief Minimal UTF conversion utilities for Windows tools
*/
#pragma once
#include <string>
namespace utf_utils {
/**
* @brief Convert a UTF-8 string into a UTF-16 wide string.
* @param string The UTF-8 string.
* @return The converted UTF-16 wide string.
*/
std::wstring from_utf8(const std::string &string);
/**
* @brief Convert a UTF-16 wide string into a UTF-8 string.
* @param string The UTF-16 wide string.
* @return The converted UTF-8 string.
*/
std::string to_utf8(const std::wstring &string);
} // namespace utf_utils