Sunshine v2026.319.132152
Self-hosted game stream host for Moonlight.
utf_utils.h
Go to the documentation of this file.
1
5#pragma once
6
7#include <string>
8
9namespace utf_utils {
15 std::wstring from_utf8(const std::string &string);
16
22 std::string to_utf8(const std::wstring &string);
23} // namespace utf_utils
std::string to_utf8(const std::wstring &string)
Convert a UTF-16 wide string into a UTF-8 string.
Definition utf_utils.cpp:41
std::wstring from_utf8(const std::string &string)
Convert a UTF-8 string into a UTF-16 wide string.
Definition utf_utils.cpp:15