21 #ifndef INCLUDE_UTIL_TCHAR_HPP 22 #define INCLUDE_UTIL_TCHAR_HPP 26 #include <RCF/Config.hpp> 27 #include <RCF/Export.hpp> 29 #if (defined(UNICODE) || defined(_UNICODE)) && !defined(RCF_WINDOWS) 30 #error UNICODE and _UNICODE should only be defined for Windows builds. 35 RCF_EXPORT std::wstring stringToWstring(
const std::string &s);
36 RCF_EXPORT std::string wstringToString(
const std::wstring &ws);
38 #if (defined(UNICODE) || defined(_UNICODE)) 40 #define RCF_T(x) L ## x 41 typedef std::wstring tstring;
42 inline tstring toTstring(
const std::string & s) {
return stringToWstring(s); }
43 inline tstring toTstring(
const std::wstring & s) {
return s; }
44 inline std::string toAstring(
const tstring & s) {
return wstringToString(s); }
45 inline std::wstring toWstring(
const tstring & s) {
return s; }
50 typedef std::string tstring;
51 inline tstring toTstring(
const std::string & s) {
return s; }
52 inline tstring toTstring(
const std::wstring & ws) {
return wstringToString(ws); }
53 inline std::string toAstring(
const tstring & s) {
return s; }
54 inline std::wstring toWstring(
const tstring & s) {
return stringToWstring(s); }
60 #endif // ! INCLUDE_UTIL_TCHAR_HPP Definition: AmiIoHandler.hpp:24