2017-01-20 00:20:31 +00:00
|
|
|
// © 2016 and later: Unicode, Inc. and others.
|
2016-06-15 18:58:17 +00:00
|
|
|
// License & terms of use: http://www.unicode.org/copyright.html
|
2004-04-09 19:58:58 +00:00
|
|
|
/*
|
|
|
|
*******************************************************************************
|
2016-05-31 21:45:07 +00:00
|
|
|
* Copyright (C) 2004, International Business Machines Corporation and *
|
|
|
|
* others. All Rights Reserved. *
|
2004-04-09 19:58:58 +00:00
|
|
|
*******************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ITRBNFP_H
|
|
|
|
#define ITRBNFP_H
|
|
|
|
|
|
|
|
#include "unicode/utypes.h"
|
|
|
|
|
|
|
|
#if !UCONFIG_NO_FORMATTING
|
|
|
|
|
|
|
|
#include "intltest.h"
|
|
|
|
#include "unicode/rbnf.h"
|
|
|
|
|
|
|
|
|
|
|
|
class IntlTestRBNFParse : public IntlTest {
|
|
|
|
public:
|
|
|
|
|
|
|
|
// IntlTest override
|
|
|
|
virtual void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par);
|
|
|
|
|
|
|
|
#if U_HAVE_RBNF
|
|
|
|
/**
|
|
|
|
* Perform an API test
|
|
|
|
*/
|
|
|
|
virtual void TestParse();
|
|
|
|
|
|
|
|
void testfmt(RuleBasedNumberFormat* formatter, double val, UErrorCode& status);
|
|
|
|
void testfmt(RuleBasedNumberFormat* formatter, int val, UErrorCode& status);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
/* U_HAVE_RBNF */
|
|
|
|
#else
|
|
|
|
|
|
|
|
virtual void TestRBNFParseDisabled();
|
|
|
|
|
|
|
|
/* U_HAVE_RBNF */
|
|
|
|
#endif
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* #if !UCONFIG_NO_FORMATTING */
|
|
|
|
|
|
|
|
// endif ITRBNFP_H
|
|
|
|
#endif
|