misc
This commit is contained in:
15
tools/utils.h
Normal file
15
tools/utils.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <string>
|
||||
|
||||
/**
|
||||
* @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_view &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_view &string);
|
||||
Reference in New Issue
Block a user