ReactOS  0.4.14-dev-552-g2fad488
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 
5 # include "cppunit/cppunit_proxy.h"
6 # include <locale>
7 
8 struct ref_monetary;
9 struct 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 //
20 class 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 
58 public:
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();
69  void locale_init_problem();
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();
76 private:
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 _loc_has_facet(const STD locale &)
static const ref_monetary * _get_ref_monetary(size_t)
void _money_put_get2(const STD locale &loc, const STD locale &streamLoc, const ref_monetary *)
CPPUNIT_TEST_SUITE(LocaleTest)
void _money_put_X_bug(const STD locale &, const ref_monetary *)
void combine()
static const char * _get_ref_monetary_name(const ref_monetary *)
void loc_has_facet()
Definition: _locale.h:75
void default_locale()
void _num_put_get(const STD locale &, const ref_locale *)
void _ctype_facet(const STD locale &)
void numpunct_by_name()
void moneypunct_by_name()
void _money_put_get(const STD locale &, const ref_monetary *)
void locale_by_name()
Definition: locale_test.cpp:51
void locale_init_problem()
void _time_put_get(const STD locale &)
#define STD
Definition: locale_test.h:12
void _locale_init_problem(const STD locale &)
void _ctype_facet_w(const STD locale &)
CPPUNIT_TEST(locale_by_name)
CPPUNIT_TEST_SUITE_END()