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