• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *******************************************************************************
3  * Copyright (C) 2004, International Business Machines Corporation and         *
4  * others. All Rights Reserved.                                                *
5  *******************************************************************************
6  */
7 
8 #ifndef ITRBNFP_H
9 #define ITRBNFP_H
10 
11 #include "unicode/utypes.h"
12 
13 #if !UCONFIG_NO_FORMATTING
14 
15 #include "intltest.h"
16 #include "unicode/rbnf.h"
17 
18 
19 class IntlTestRBNFParse : public IntlTest {
20  public:
21 
22   // IntlTest override
23   virtual void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par);
24 
25 #if U_HAVE_RBNF
26   /**
27    * Perform an API test
28    */
29   virtual void TestParse();
30 
31   void testfmt(RuleBasedNumberFormat* formatter, double val, UErrorCode& status);
32   void testfmt(RuleBasedNumberFormat* formatter, int val, UErrorCode& status);
33 
34  protected:
35 
36 /* U_HAVE_RBNF */
37 #else
38 
39   virtual void TestRBNFParseDisabled();
40 
41 /* U_HAVE_RBNF */
42 #endif
43 };
44 
45 #endif /* #if !UCONFIG_NO_FORMATTING */
46 
47 // endif ITRBNFP_H
48 #endif
49