iutest  1.17.99.14
iutest_tchar.hpp
[詳解]
1 //======================================================================
2 //-----------------------------------------------------------------------
13 //-----------------------------------------------------------------------
14 //======================================================================
15 #ifndef INCG_IRIS_IUTEST_TCHAR_HPP_88D1A81F_A79B_48E9_B576_5A7D76DFC86E
16 #define INCG_IRIS_IUTEST_TCHAR_HPP_88D1A81F_A79B_48E9_B576_5A7D76DFC86E
17 
18 //======================================================================
19 // include
20 
21 // IWYU pragma: begin_exports
22 #include "iutest_string.hpp"
23 #include "iutest_string_view.hpp"
24 // IWYU pragma: end_exports
25 
26 #if !defined(IUTEST_UNICODE)
27 # if defined(UNICODE) || defined(_UNICODE)
28 # define IUTEST_UNICODE 1
29 # endif
30 #endif
31 
32 #if !defined(IUTEST_UNICODE)
33 # define IUTEST_UNICODE 0
34 #endif
35 
36 namespace iutest {
37 namespace detail
38 {
39 
40 #if IUTEST_UNICODE
41 
42 #define IU_TSTR(_str) L##_str
43 
44 typedef wchar_t iu_tchar;
45 
46 #else
47 
48 #define IU_TSTR(_str) _str
49 
50 typedef char iu_tchar;
51 
52 #endif
53 
54 typedef ::std::basic_string<iu_tchar> iu_tstring;
55 typedef iu_basic_string_view<iu_tchar> iu_tstring_view;
56 
57 } // end of namespace detail
58 } // end of namespace iutest
59 
60 #endif // INCG_IRIS_IUTEST_TCHAR_HPP_88D1A81F_A79B_48E9_B576_5A7D76DFC86E
iris unit test string utilities
iutest root namespace
Definition: iutest_charcode.hpp:33