Add source code for ctrtool

This commit is contained in:
jakcron
2022-03-12 16:00:33 +08:00
parent 6ad2f13c50
commit 800f5776bc
681 changed files with 219734 additions and 0 deletions
@@ -0,0 +1,12 @@
#include <tc/io/PathUtil.h>
#include <tc/string.h>
void tc::io::PathUtil::pathToWindowsUTF16(const tc::io::Path& path, std::u16string& out)
{
out = path.to_u16string(tc::io::Path::Format::Win32);
}
void tc::io::PathUtil::pathToUnixUTF8(const tc::io::Path& path, std::string& out)
{
out = path.to_string(tc::io::Path::Format::POSIX);
}