/********************************************************************
* COPYRIGHT:
- * Copyright (c) 1997-2003, International Business Machines Corporation and
+ * Copyright (c) 1997-2007, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
public: // package
// internal utility routine (genrates escape sequences for characters)
static UnicodeString& escape(UnicodeString& s);
- static const char* fieldNames[];
public:
/**
* Verify that returned field position indices are correct.
*/
- virtual void TestFieldPosition(void);
+ void TestFieldPosition(void);
+ void TestGeneral();
+
public: // package
// internal utility function
static void getFieldText(DateFormat* df, int32_t field, UDate date, UnicodeString& str);
*/
virtual void TestBadInput135(void);
-private:
- static const char* parseFormats[];
- static const char* inputStrings[];
-
- static const DateFormat::EField fgCalendarToDateFormatField [];
-
public:
/**
* Verify the correct behavior when parsing an array of inputs against an
* Further test the formatting of time zones.
*/
virtual void TestDateFormatZone146(void);
+
+ void TestTimeZoneStringsAPI(void);
public: // package
/**
void TestWhiteSpaceParsing(void);
+ void TestInvalidPattern(void);
+
+ void TestGreekMay(void);
+
+ void TestGenericTime(void);
+
+ void TestGenericTimeZoneOrder(void);
+
+public:
+ /**
+ * Test host-specific formatting.
+ */
+ void TestHost(void);
+
+public:
+ /**
+ * Test patterns added in CLDR 1.4
+ */
+ void TestEras(void);
+
+ void TestNarrowNames(void);
+
+ void TestStandAloneDays(void);
+
+ void TestStandAloneMonths(void);
+
+ void TestQuarters(void);
+
+ void TestZTimeZoneParsing(void);
+
+ void TestRelativeClone(void);
+
+ void TestHostClone(void);
+
+public:
+ /***
+ * Test Relative Dates
+ */
+ void TestRelative(void);
+ void TestTimeZoneDisplayName(void);
+/* void TestRelativeError(void);
+ void TestRelativeOther(void);
+*/
+
+ private:
+ void TestRelative(int daysdelta,
+ const Locale& loc,
+ const char *expectChars);
+
private:
void expectParse(const char** data, int32_t data_length,
const Locale& locale);
+
+ void expect(const char** data, int32_t data_length,
+ const Locale& loc);
+
+ void expectFormat(const char **data, int32_t data_length,
+ const Locale &locale);
};
#endif /* #if !UCONFIG_NO_FORMATTING */