32 #include "cpprest/details/cpprest_compat.h"
35 # define __STDC_LIMIT_MACROS
41 #include "cpprest/details/SafeInt3.hpp"
47 #define _UTF16_STRINGS
52 typedef uint64_t size64_t;
55 typedef uint32_t HRESULT;
62 typedef wchar_t char_t ;
63 typedef std::wstring string_t;
64 #define _XPLATSTR(x) L ## x
65 typedef std::wostringstream ostringstream_t;
66 typedef std::wofstream ofstream_t;
67 typedef std::wostream ostream_t;
68 typedef std::wistream istream_t;
69 typedef std::wifstream ifstream_t;
70 typedef std::wistringstream istringstream_t;
71 typedef std::wstringstream stringstream_t;
72 #define ucout std::wcout
73 #define ucin std::wcin
74 #define ucerr std::wcerr
80 typedef std::string string_t;
81 #define _XPLATSTR(x) x
82 typedef std::ostringstream ostringstream_t;
83 typedef std::ofstream ofstream_t;
84 typedef std::ostream ostream_t;
85 typedef std::istream istream_t;
86 typedef std::ifstream ifstream_t;
87 typedef std::istringstream istringstream_t;
88 typedef std::stringstream stringstream_t;
89 #define ucout std::cout
91 #define ucerr std::cerr
92 #endif // endif _UTF16_STRINGS
94 #ifndef _TURN_OFF_PLATFORM_STRING
95 #define U(x) _XPLATSTR(x)
96 #endif // !_TURN_OFF_PLATFORM_STRING
100 typedef char utf8char;
101 typedef std::string utf8string;
102 typedef std::stringstream utf8stringstream;
103 typedef std::ostringstream utf8ostringstream;
104 typedef std::ostream utf8ostream;
105 typedef std::istream utf8istream;
106 typedef std::istringstream utf8istringstream;
108 #ifdef _UTF16_STRINGS
109 typedef wchar_t utf16char;
110 typedef std::wstring utf16string;
111 typedef std::wstringstream utf16stringstream;
112 typedef std::wostringstream utf16ostringstream;
113 typedef std::wostream utf16ostream;
114 typedef std::wistream utf16istream;
115 typedef std::wistringstream utf16istringstream;
117 typedef char16_t utf16char;
118 typedef std::u16string utf16string;
119 typedef std::basic_stringstream<utf16char> utf16stringstream;
120 typedef std::basic_ostringstream<utf16char> utf16ostringstream;
121 typedef std::basic_ostream<utf16char> utf16ostream;
122 typedef std::basic_istream<utf16char> utf16istream;
123 typedef std::basic_istringstream<utf16char> utf16istringstream;
129 #if !defined(CPPREST_EXCLUDE_WEBSOCKETS)
130 #if defined(WINAPI_FAMILY)
131 #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && defined(_M_ARM)
132 #define CPPREST_EXCLUDE_WEBSOCKETS
136 #define CPPREST_EXCLUDE_WEBSOCKETS
Various utilities for string conversions and date and time manipulation.
Definition: asyncrt_utils.h:50