using namespace std;
+#ifdef _GLIBCPP_USE_WCHAR_T
+
/*
> how do I check that these conversions are correct?
Very easy. Since all the characters are from ASCII you simply
delete [] i_arr;
}
+#endif /* !defined(_GLIBCPP_USE_WCHAR_T) */
+
int main ()
{
+#if _GLIBCPP_USE_WCHAR_T
test01();
test02();
+#endif /* !defined(_GLIBCPP_USE_WCHAR_T) */
return 0;
}
using namespace std;
+#ifdef _GLIBCPP_USE_WCHAR_T
+
void
initialize_state(__enc_traits& state)
{ state._M_init(); }
delete [] e_arr;
delete [] i_arr;
}
+#endif /* !defined(_GLIBCPP_USE_WCHAR_T) */
int main ()
{
+#if _GLIBCPP_USE_WCHAR_T
test01();
+#endif /* !defined(_GLIBCPP_USE_WCHAR_T) */
return 0;
}
#include <stdexcept>
#include <debug_assert.h>
+#if _GLIBCPP_USE_WCHAR_T
+
typedef std::codecvt<char, char, std::mbstate_t> c_codecvt;
typedef std::codecvt_byname<char, char, std::mbstate_t> c_codecvt_byname;
typedef std::codecvt<wchar_t, char, std::mbstate_t> w_codecvt;
}
+#endif /* !defined(_GLIBCPP_USE_WCHAR_T) */
int main ()
{
+#if _GLIBCPP_USE_WCHAR_T
test01();
+#endif /* !defined(_GLIBCPP_USE_WCHAR_T) */
return 0;
}
// NB: Don't include any other headers in this file.
#include <debug_assert.h>
+#if _GLIBCPP_USE_WCHAR_T
class gnu_ctype: public std::ctype<wchar_t> {};
void test01()
assert(test);
#endif
}
+#endif /* !defined(_GLIBCPP_USE_WCHAR_T) */
int main() {
+#if _GLIBCPP_USE_WCHAR_T
test01();
+#endif /* !defined(_GLIBCPP_USE_WCHAR_T) */
return 0;
}