ReactOS 0.4.15-dev-8002-gbbb3b00
locale_test.h
Go to the documentation of this file.
1#include <string>
2#if !defined (STLPORT) || !defined (_STLP_USE_NO_IOSTREAMS)
3# include <iosfwd>
4
6# include <locale>
7
8struct ref_monetary;
9struct ref_locale;
10
11# if !defined (STLPORT) || defined (_STLP_USE_NAMESPACES)
12# define STD std::
13# else
14# define STD
15# endif
16
17//
18// TestCase class
19//
20class LocaleTest : public CPPUNIT_NS::TestCase
21{
23# if defined (STLPORT) && !defined (_STLP_USE_EXCEPTIONS)
25# endif
41# if defined (STLPORT) && defined (_STLP_NO_MEMBER_TEMPLATES)
43# endif
47# if !defined (STLPORT)
49# endif
51#if (defined (STLPORT) && \
52 (!defined (_STLP_USE_EXCEPTIONS) || defined (_STLP_NO_MEMBER_TEMPLATES) || defined (_STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS)))
54# endif
57
58public:
59 void locale_by_name();
60 void loc_has_facet();
61 void num_put_get();
62 void numpunct_by_name();
63 void time_put_get();
64 void time_by_name();
65 void collate_facet();
66 void collate_by_name();
67 void ctype_facet();
68 void ctype_by_name();
70 void money_put_get();
71 void money_put_X_bug();
72 void moneypunct_by_name();
73 void default_locale();
74 void combine();
75 void messages_by_name();
76private:
77 void _loc_has_facet( const STD locale& );
78 void _num_put_get( const STD locale&, const ref_locale* );
79 void _time_put_get( const STD locale& );
80 void _ctype_facet( const STD locale& );
81 void _ctype_facet_w( const STD locale& );
82 void _locale_init_problem( const STD locale& );
83
84 static const ref_monetary* _get_ref_monetary(size_t);
85 static const char* _get_ref_monetary_name(const ref_monetary*);
86
87 void _money_put_get( const STD locale&, const ref_monetary* );
88 void _money_put_get2( const STD locale& loc, const STD locale& streamLoc, const ref_monetary* );
89 void _money_put_X_bug( const STD locale&, const ref_monetary* );
90};
91
92# undef STD
93#endif
94
void _num_put_get(const STD locale &, const ref_locale *)
CPPUNIT_TEST(combine)
CPPUNIT_TEST(collate_facet)
void locale_by_name()
Definition: locale_test.cpp:51
CPPUNIT_TEST(time_put_get)
CPPUNIT_TEST_SUITE(LocaleTest)
void default_locale()
CPPUNIT_TEST(moneypunct_by_name)
CPPUNIT_TEST(messages_by_name)
void loc_has_facet()
CPPUNIT_TEST(loc_has_facet)
void _ctype_facet(const STD locale &)
void moneypunct_by_name()
void _time_put_get(const STD locale &)
void locale_init_problem()
CPPUNIT_TEST(ctype_by_name)
CPPUNIT_TEST(money_put_X_bug)
void _locale_init_problem(const STD locale &)
void _money_put_get(const STD locale &, const ref_monetary *)
CPPUNIT_TEST(collate_by_name)
CPPUNIT_TEST(money_put_get)
void combine()
CPPUNIT_TEST(ctype_facet)
CPPUNIT_TEST(default_locale)
CPPUNIT_TEST(time_by_name)
void _loc_has_facet(const STD locale &)
static const char * _get_ref_monetary_name(const ref_monetary *)
void _money_put_get2(const STD locale &loc, const STD locale &streamLoc, const ref_monetary *)
void _ctype_facet_w(const STD locale &)
void _money_put_X_bug(const STD locale &, const ref_monetary *)
CPPUNIT_TEST(locale_init_problem)
CPPUNIT_TEST(num_put_get)
static const ref_monetary * _get_ref_monetary(size_t)
void numpunct_by_name()
CPPUNIT_TEST_SUITE_END()
CPPUNIT_TEST(locale_by_name)
CPPUNIT_TEST(numpunct_by_name)
Definition: _locale.h:75
#define STD
Definition: locale_test.h:12