xref: /aosp_15_r20/external/pytorch/c10/util/Unicode.h (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1 #pragma once
2 
3 #if defined(_WIN32)
4 #include <c10/util/Exception.h>
5 #include <c10/util/win32-headers.h>
6 #include <string>
7 #endif
8 
9 namespace c10 {
10 #if defined(_WIN32)
11 C10_API std::wstring u8u16(const std::string& str);
12 C10_API std::string u16u8(const std::wstring& wstr);
13 #endif
14 } // namespace c10
15