1b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru/*
2b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru********************************************************************************
38393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius*   Copyright (C) 1997-2013, International Business Machines
4b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru*   Corporation and others.  All Rights Reserved.
5b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru********************************************************************************
6b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru*
7b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru* File DTFMTSYM.H
8b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru*
9b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru* Modification History:
10b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru*
11b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru*   Date        Name        Description
12b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru*   02/19/97    aliu        Converted from java.
13b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru*    07/21/98    stephen        Added getZoneIndex()
14b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru*                            Changed to match C++ conventions
15b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru********************************************************************************
16b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru*/
17b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
18b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru#ifndef DTFMTSYM_H
19b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru#define DTFMTSYM_H
20b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
21b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru#include "unicode/utypes.h"
22b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
23b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru#if !UCONFIG_NO_FORMATTING
24b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
25b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru#include "unicode/calendar.h"
26b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru#include "unicode/uobject.h"
27b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru#include "unicode/locid.h"
2854dcd9b6a06071f647dac967e9e267abb9410720Craig Cornelius#include "unicode/udat.h"
29b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru#include "unicode/ures.h"
30b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
31b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru/**
32b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * \file
33b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * \brief C++ API: Symbols for formatting dates.
34b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru */
35b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
36b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste QueruU_NAMESPACE_BEGIN
37b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
38b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru/* forward declaration */
39b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queruclass SimpleDateFormat;
40b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queruclass Hashtable;
41b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
42b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru/**
43b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * DateFormatSymbols is a public class for encapsulating localizable date-time
44b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * formatting data -- including timezone data. DateFormatSymbols is used by
45b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * DateFormat and SimpleDateFormat.
46b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * <P>
47b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * Rather than first creating a DateFormatSymbols to get a date-time formatter
48b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * by using a SimpleDateFormat constructor, clients are encouraged to create a
49b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * date-time formatter using the getTimeInstance(), getDateInstance(), or
50b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * getDateTimeInstance() method in DateFormat. Each of these methods can return a
51b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * date/time formatter initialized with a default format pattern along with the
52b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * date-time formatting data for a given or default locale. After a formatter is
53b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * created, clients may modify the format pattern using the setPattern function
54b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * as so desired. For more information on using these formatter factory
55b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * functions, see DateFormat.
56b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * <P>
57b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * If clients decide to create a date-time formatter with a particular format
58b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * pattern and locale, they can do so with new SimpleDateFormat(aPattern,
59b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * new DateFormatSymbols(aLocale)).  This will load the appropriate date-time
60b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * formatting data from the locale.
61b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * <P>
62b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * DateFormatSymbols objects are clonable. When clients obtain a
63b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * DateFormatSymbols object, they can feel free to modify the date-time
64b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * formatting data as necessary. For instance, clients can
65b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * replace the localized date-time format pattern characters with the ones that
66b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * they feel easy to remember. Or they can change the representative cities
67b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * originally picked by default to using their favorite ones.
68b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * <P>
69b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * DateFormatSymbols are not expected to be subclassed. Data for a calendar is
70b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * loaded out of resource bundles.  The 'type' parameter indicates the type of
71b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * calendar, for example, "gregorian" or "japanese".  If the type is not gregorian
72b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * (or NULL, or an empty string) then the type is appended to the resource name,
73b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * for example,  'Eras_japanese' instead of 'Eras'.   If the resource 'Eras_japanese' did
74b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * not exist (even in root), then this class will fall back to just 'Eras', that is,
75b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * Gregorian data.  Therefore, the calendar implementor MUST ensure that the root
76b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * locale at least contains any resources that are to be particularized for the
77b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru * calendar type.
78b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru */
79b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queruclass U_I18N_API DateFormatSymbols : public UObject {
80b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Querupublic:
81b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
82b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Construct a DateFormatSymbols object by loading format data from
83b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * resources for the default locale, in the default calendar (Gregorian).
84b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * <P>
85b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * NOTE: This constructor will never fail; if it cannot get resource
86b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * data for the default locale, it will return a last-resort object
87b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * based on hard-coded strings.
88b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *
89b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param status    Status code.  Failure
90b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *                  results if the resources for the default cannot be
91b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *                  found or cannot be loaded
92b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 2.0
93b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
94b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    DateFormatSymbols(UErrorCode& status);
95b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
96b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
97b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Construct a DateFormatSymbols object by loading format data from
98b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * resources for the given locale, in the default calendar (Gregorian).
99b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *
100b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param locale    Locale to load format data from.
101b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param status    Status code.  Failure
102b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *                  results if the resources for the locale cannot be
103b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *                  found or cannot be loaded
104b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 2.0
105b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
106b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    DateFormatSymbols(const Locale& locale,
107b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru                      UErrorCode& status);
108b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
109103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius#ifndef U_HIDE_INTERNAL_API
110b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
111b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Construct a DateFormatSymbols object by loading format data from
112b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * resources for the default locale, in the default calendar (Gregorian).
113b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * <P>
114b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * NOTE: This constructor will never fail; if it cannot get resource
115b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * data for the default locale, it will return a last-resort object
116b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * based on hard-coded strings.
117b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *
118b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param type      Type of calendar (as returned by Calendar::getType).
119b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *                  Will be used to access the correct set of strings.
120b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *                  (NULL or empty string defaults to "gregorian".)
121b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param status    Status code.  Failure
122b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *                  results if the resources for the default cannot be
123b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *                  found or cannot be loaded
124b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @internal
125b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
126b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    DateFormatSymbols(const char *type, UErrorCode& status);
127b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
128b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
129b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Construct a DateFormatSymbols object by loading format data from
130b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * resources for the given locale, in the default calendar (Gregorian).
131b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *
132b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param locale    Locale to load format data from.
133b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param type      Type of calendar (as returned by Calendar::getType).
134b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *                  Will be used to access the correct set of strings.
135b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *                  (NULL or empty string defaults to "gregorian".)
136b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param status    Status code.  Failure
137b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *                  results if the resources for the locale cannot be
138b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *                  found or cannot be loaded
139b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @internal
140b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
141b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    DateFormatSymbols(const Locale& locale,
142b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru                      const char *type,
143b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru                      UErrorCode& status);
144103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius#endif  /* U_HIDE_INTERNAL_API */
145b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
146b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
147b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Copy constructor.
148b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 2.0
149b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
150b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    DateFormatSymbols(const DateFormatSymbols&);
151b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
152b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
153b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Assignment operator.
154b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 2.0
155b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
156b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    DateFormatSymbols& operator=(const DateFormatSymbols&);
157b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
158b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
159b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Destructor. This is nonvirtual because this class is not designed to be
160b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * subclassed.
161b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 2.0
162b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
163b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    virtual ~DateFormatSymbols();
164b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
165b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
166b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Return true if another object is semantically equal to this one.
167b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *
168b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param other    the DateFormatSymbols object to be compared with.
169b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @return         true if other is semantically equal to this.
170b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 2.0
171b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
172b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    UBool operator==(const DateFormatSymbols& other) const;
173b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
174b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
175b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Return true if another object is semantically unequal to this one.
176b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *
177b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param other    the DateFormatSymbols object to be compared with.
178b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @return         true if other is semantically unequal to this.
179b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 2.0
180b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
181b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    UBool operator!=(const DateFormatSymbols& other) const { return !operator==(other); }
182b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
183b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
184b0ac937921a2c196d8b9da665135bf6ba01a1ccfJean-Baptiste Queru     * Gets abbreviated era strings. For example: "AD" and "BC".
185b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *
186b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param count    Filled in with length of the array.
187b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @return         the era strings.
188b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 2.0
189b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
190b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    const UnicodeString* getEras(int32_t& count) const;
191b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
192b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
193b0ac937921a2c196d8b9da665135bf6ba01a1ccfJean-Baptiste Queru     * Sets abbreviated era strings. For example: "AD" and "BC".
194b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param eras  Array of era strings (DateFormatSymbols retains ownership.)
195b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param count Filled in with length of the array.
196b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 2.0
197b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
198b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    void setEras(const UnicodeString* eras, int32_t count);
199b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
200b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
201b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Gets era name strings. For example: "Anno Domini" and "Before Christ".
202b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *
203b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param count    Filled in with length of the array.
204b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @return         the era name strings.
205b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 3.4
206b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
207b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    const UnicodeString* getEraNames(int32_t& count) const;
208b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
209b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
210b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Sets era name strings. For example: "Anno Domini" and "Before Christ".
211b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param eraNames  Array of era name strings (DateFormatSymbols retains ownership.)
212b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param count Filled in with length of the array.
213b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 3.6
214b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
215b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    void setEraNames(const UnicodeString* eraNames, int32_t count);
216b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
217b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
21850294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     * Gets narrow era strings. For example: "A" and "B".
219b0ac937921a2c196d8b9da665135bf6ba01a1ccfJean-Baptiste Queru     *
220b0ac937921a2c196d8b9da665135bf6ba01a1ccfJean-Baptiste Queru     * @param count    Filled in with length of the array.
221b0ac937921a2c196d8b9da665135bf6ba01a1ccfJean-Baptiste Queru     * @return         the narrow era strings.
22250294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     * @stable ICU 4.2
223b0ac937921a2c196d8b9da665135bf6ba01a1ccfJean-Baptiste Queru     */
224b0ac937921a2c196d8b9da665135bf6ba01a1ccfJean-Baptiste Queru    const UnicodeString* getNarrowEras(int32_t& count) const;
225b0ac937921a2c196d8b9da665135bf6ba01a1ccfJean-Baptiste Queru
226b0ac937921a2c196d8b9da665135bf6ba01a1ccfJean-Baptiste Queru    /**
227b0ac937921a2c196d8b9da665135bf6ba01a1ccfJean-Baptiste Queru     * Sets narrow era strings. For example: "A" and "B".
228b0ac937921a2c196d8b9da665135bf6ba01a1ccfJean-Baptiste Queru     * @param narrowEras  Array of narrow era strings (DateFormatSymbols retains ownership.)
229b0ac937921a2c196d8b9da665135bf6ba01a1ccfJean-Baptiste Queru     * @param count Filled in with length of the array.
23050294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     * @stable ICU 4.2
231b0ac937921a2c196d8b9da665135bf6ba01a1ccfJean-Baptiste Queru     */
232b0ac937921a2c196d8b9da665135bf6ba01a1ccfJean-Baptiste Queru    void setNarrowEras(const UnicodeString* narrowEras, int32_t count);
233b0ac937921a2c196d8b9da665135bf6ba01a1ccfJean-Baptiste Queru
234b0ac937921a2c196d8b9da665135bf6ba01a1ccfJean-Baptiste Queru    /**
235b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Gets month strings. For example: "January", "February", etc.
236b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param count Filled in with length of the array.
237b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @return the month strings. (DateFormatSymbols retains ownership.)
238b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 2.0
239b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
240b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    const UnicodeString* getMonths(int32_t& count) const;
241b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
242b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
243b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Sets month strings. For example: "January", "February", etc.
244b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *
245b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param months    the new month strings. (not adopted; caller retains ownership)
246b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param count     Filled in with length of the array.
247b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 2.0
248b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
249b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    void setMonths(const UnicodeString* months, int32_t count);
250b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
251b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
252b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Gets short month strings. For example: "Jan", "Feb", etc.
253b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *
254b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param count Filled in with length of the array.
255b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @return the short month strings. (DateFormatSymbols retains ownership.)
256b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 2.0
257b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
258b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    const UnicodeString* getShortMonths(int32_t& count) const;
259b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
260b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
261b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Sets short month strings. For example: "Jan", "Feb", etc.
262b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param count        Filled in with length of the array.
263b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param shortMonths  the new short month strings. (not adopted; caller retains ownership)
264b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 2.0
265b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
266b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    void setShortMonths(const UnicodeString* shortMonths, int32_t count);
267b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
268b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
269b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Selector for date formatting context
270b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 3.6
271b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
272b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    enum DtContextType {
273b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru         FORMAT,
274b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru         STANDALONE,
275b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru         DT_CONTEXT_COUNT
276b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    };
277b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
278b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
279b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Selector for date formatting width
280b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 3.6
281b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
282b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    enum DtWidthType {
283b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru         ABBREVIATED,
284b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru         WIDE,
285b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru         NARROW,
2868393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius#ifndef U_HIDE_DRAFT_API
2878393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius         /**
2888393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius          * Short width is currently only supported for weekday names.
2898393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius          * @draft ICU 51
2908393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius          */
2918393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius         SHORT,
2928393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius#endif /* U_HIDE_DRAFT_API */
2938393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius         /**
2948393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius          */
2958393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius         DT_WIDTH_COUNT = 4
296b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    };
297b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
298b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
299b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Gets month strings by width and context. For example: "January", "February", etc.
300b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param count Filled in with length of the array.
301b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param context The formatting context, either FORMAT or STANDALONE
302b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param width   The width of returned strings, either WIDE, ABBREVIATED, or NARROW.
303b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @return the month strings. (DateFormatSymbols retains ownership.)
304b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 3.4
305b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
306b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    const UnicodeString* getMonths(int32_t& count, DtContextType context, DtWidthType width) const;
307b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
308b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
309b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Sets month strings by width and context. For example: "January", "February", etc.
310b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *
311b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param months  The new month strings. (not adopted; caller retains ownership)
312b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param count   Filled in with length of the array.
313b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param context The formatting context, either FORMAT or STANDALONE
314b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param width   The width of returned strings, either WIDE, ABBREVIATED, or NARROW.
315b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 3.6
316b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
317b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    void setMonths(const UnicodeString* months, int32_t count, DtContextType context, DtWidthType width);
318b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
319b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
3208393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius     * Gets wide weekday strings. For example: "Sunday", "Monday", etc.
321b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param count        Filled in with length of the array.
322b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @return the weekday strings. (DateFormatSymbols retains ownership.)
323b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 2.0
324b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
325b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    const UnicodeString* getWeekdays(int32_t& count) const;
326b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
327b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
328b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
3298393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius     * Sets wide weekday strings. For example: "Sunday", "Monday", etc.
330b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param weekdays     the new weekday strings. (not adopted; caller retains ownership)
331b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param count        Filled in with length of the array.
332b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 2.0
333b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
334b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    void setWeekdays(const UnicodeString* weekdays, int32_t count);
335b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
336b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
3378393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius     * Gets abbreviated weekday strings. For example: "Sun", "Mon", etc. (Note: The method name is
3388393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius     * misleading; it does not get the CLDR-style "short" weekday strings, e.g. "Su", "Mo", etc.)
339b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param count        Filled in with length of the array.
3408393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius     * @return             the abbreviated weekday strings. (DateFormatSymbols retains ownership.)
341b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 2.0
342b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
343b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    const UnicodeString* getShortWeekdays(int32_t& count) const;
344b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
345b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
3468393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius     * Sets abbreviated weekday strings. For example: "Sun", "Mon", etc. (Note: The method name is
3478393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius     * misleading; it does not set the CLDR-style "short" weekday strings, e.g. "Su", "Mo", etc.)
3488393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius     * @param abbrevWeekdays  the new abbreviated weekday strings. (not adopted; caller retains ownership)
3498393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius     * @param count           Filled in with length of the array.
350b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 2.0
351b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
3528393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius    void setShortWeekdays(const UnicodeString* abbrevWeekdays, int32_t count);
353b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
354b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
355b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Gets weekday strings by width and context. For example: "Sunday", "Monday", etc.
356b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param count   Filled in with length of the array.
357b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param context The formatting context, either FORMAT or STANDALONE
3588393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius     * @param width   The width of returned strings, either WIDE, ABBREVIATED, SHORT, or NARROW
359b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @return the month strings. (DateFormatSymbols retains ownership.)
360b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 3.4
361b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
362b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    const UnicodeString* getWeekdays(int32_t& count, DtContextType context, DtWidthType width) const;
363b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
364b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
365b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Sets weekday strings by width and context. For example: "Sunday", "Monday", etc.
366b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param weekdays  The new weekday strings. (not adopted; caller retains ownership)
367b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param count     Filled in with length of the array.
368b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param context   The formatting context, either FORMAT or STANDALONE
3698393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius     * @param width     The width of returned strings, either WIDE, ABBREVIATED, SHORT, or NARROW
370b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 3.6
371b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
372b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    void setWeekdays(const UnicodeString* weekdays, int32_t count, DtContextType context, DtWidthType width);
373b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
374b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
375b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Gets quarter strings by width and context. For example: "1st Quarter", "2nd Quarter", etc.
376b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param count Filled in with length of the array.
377b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param context The formatting context, either FORMAT or STANDALONE
378b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param width   The width of returned strings, either WIDE or ABBREVIATED. There
379b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *                are no NARROW quarters.
380b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @return the quarter strings. (DateFormatSymbols retains ownership.)
381b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 3.6
382b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
383b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    const UnicodeString* getQuarters(int32_t& count, DtContextType context, DtWidthType width) const;
384b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
385b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
386b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Sets quarter strings by width and context. For example: "1st Quarter", "2nd Quarter", etc.
387b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *
388b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param quarters  The new quarter strings. (not adopted; caller retains ownership)
389b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param count   Filled in with length of the array.
390b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param context The formatting context, either FORMAT or STANDALONE
391b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param width   The width of returned strings, either WIDE or ABBREVIATED. There
392b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *                are no NARROW quarters.
393b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 3.6
394b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
395b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    void setQuarters(const UnicodeString* quarters, int32_t count, DtContextType context, DtWidthType width);
396b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
397b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
398b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Gets AM/PM strings. For example: "AM" and "PM".
399b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param count        Filled in with length of the array.
400b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @return             the weekday strings. (DateFormatSymbols retains ownership.)
401b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 2.0
402b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
403b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    const UnicodeString* getAmPmStrings(int32_t& count) const;
404b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
405b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
406b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Sets ampm strings. For example: "AM" and "PM".
407b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param ampms        the new ampm strings. (not adopted; caller retains ownership)
408b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param count        Filled in with length of the array.
409b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 2.0
410b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
411b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    void setAmPmStrings(const UnicodeString* ampms, int32_t count);
412b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
413103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius#ifndef U_HIDE_INTERNAL_API
414103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius    /**
415103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     * Somewhat temporary constants for leap month pattern types, adequate for supporting
416103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     * just leap month patterns as needed for Chinese lunar calendar.
417103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     * Eventually we will add full support for different month pattern types (needed for
418103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     * other calendars such as Hindu) at which point this approach will be replaced by a
419103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     * more complete approach.
420103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     * @internal
421103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     */
422103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius    enum EMonthPatternType
423103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius    {
424103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius        kLeapMonthPatternFormatWide,
425103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius        kLeapMonthPatternFormatAbbrev,
426103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius        kLeapMonthPatternFormatNarrow,
427103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius        kLeapMonthPatternStandaloneWide,
428103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius        kLeapMonthPatternStandaloneAbbrev,
429103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius        kLeapMonthPatternStandaloneNarrow,
430103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius        kLeapMonthPatternNumeric,
431103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius        kMonthPatternsCount
432103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius    };
433103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius
434103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius    /**
435103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     * Somewhat temporary function for getting complete set of leap month patterns for all
436103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     * contexts & widths, indexed by EMonthPatternType values. Returns NULL if calendar
437103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     * does not have leap month patterns. Note, there is currently no setter for this.
438103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     * Eventually we will add full support for different month pattern types (needed for
439103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     * other calendars such as Hindu) at which point this approach will be replaced by a
440103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     * more complete approach.
441103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     * @param count        Filled in with length of the array (may be 0).
442103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     * @return             The leap month patterns (DateFormatSymbols retains ownership).
443103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     *                     May be NULL if there are no leap month patterns for this calendar.
444103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     * @internal
445103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     */
446103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius    const UnicodeString* getLeapMonthPatterns(int32_t& count) const;
447103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius
448103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius#endif  /* U_HIDE_INTERNAL_API */
449103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius
450103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius#ifndef U_HIDE_DEPRECATED_API
451b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
452b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Gets timezone strings. These strings are stored in a 2-dimensional array.
453b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param rowCount      Output param to receive number of rows.
454b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param columnCount   Output param to receive number of columns.
455b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @return              The timezone strings as a 2-d array. (DateFormatSymbols retains ownership.)
456b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @deprecated ICU 3.6
457b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
458b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    const UnicodeString** getZoneStrings(int32_t& rowCount, int32_t& columnCount) const;
459103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius#endif  /* U_HIDE_DEPRECATED_API */
460b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
461b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
462b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Sets timezone strings. These strings are stored in a 2-dimensional array.
463b26ce3a7367e4ed2ee7ddddcdc3f3d3377a455c2claireho     * <p><b>Note:</b> SimpleDateFormat no longer use the zone strings stored in
464b26ce3a7367e4ed2ee7ddddcdc3f3d3377a455c2claireho     * a DateFormatSymbols. Therefore, the time zone strings set by this mthod
465b26ce3a7367e4ed2ee7ddddcdc3f3d3377a455c2claireho     * have no effects in an instance of SimpleDateFormat for formatting time
466b26ce3a7367e4ed2ee7ddddcdc3f3d3377a455c2claireho     * zones.
467b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param strings       The timezone strings as a 2-d array to be copied. (not adopted; caller retains ownership)
468b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param rowCount      The number of rows (count of first index).
469b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param columnCount   The number of columns (count of second index).
470b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 2.0
471b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
472b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    void setZoneStrings(const UnicodeString* const* strings, int32_t rowCount, int32_t columnCount);
473b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
474b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
475b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Get the non-localized date-time pattern characters.
476b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @return    the non-localized date-time pattern characters
477b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 2.0
478b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
479b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    static const UChar * U_EXPORT2 getPatternUChars(void);
480b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
481b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
482b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Gets localized date-time pattern characters. For example: 'u', 't', etc.
483b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * <p>
484b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Note: ICU no longer provides localized date-time pattern characters for a locale
485b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * starting ICU 3.8.  This method returns the non-localized date-time pattern
486b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * characters unless user defined localized data is set by setLocalPatternChars.
487b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param result    Output param which will receive the localized date-time pattern characters.
488b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @return          A reference to 'result'.
489b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 2.0
490b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
491b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    UnicodeString& getLocalPatternChars(UnicodeString& result) const;
492b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
493b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
494b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Sets localized date-time pattern characters. For example: 'u', 't', etc.
495b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param newLocalPatternChars the new localized date-time
496b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * pattern characters.
497b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 2.0
498b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
499b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    void setLocalPatternChars(const UnicodeString& newLocalPatternChars);
500b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
501b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
502b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Returns the locale for this object. Two flavors are available:
503b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * valid and actual locale.
504b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 2.8
505b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
506b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    Locale getLocale(ULocDataLocaleType type, UErrorCode& status) const;
507b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
508103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius#ifndef U_HIDE_INTERNAL_API
509103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius    /**
510103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     * Constants for capitalization context usage types.
511103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     * @internal
512103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     */
513103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius    enum ECapitalizationContextUsageType
514103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius    {
515103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius        kCapContextUsageOther,
516103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius        kCapContextUsageMonthFormat,     /* except narrow */
517103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius        kCapContextUsageMonthStandalone, /* except narrow */
518103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius        kCapContextUsageMonthNarrow,
519103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius        kCapContextUsageDayFormat,     /* except narrow */
520103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius        kCapContextUsageDayStandalone, /* except narrow */
521103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius        kCapContextUsageDayNarrow,
522103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius        kCapContextUsageEraWide,
523103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius        kCapContextUsageEraAbbrev,
524103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius        kCapContextUsageEraNarrow,
525103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius        kCapContextUsageZoneLong,
526103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius        kCapContextUsageZoneShort,
527103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius        kCapContextUsageMetazoneLong,
528103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius        kCapContextUsageMetazoneShort,
529103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius        kCapContextUsageTypeCount
530103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius    };
531103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius#endif  /* U_HIDE_INTERNAL_API */
532103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius
533b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
534b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * ICU "poor man's RTTI", returns a UClassID for the actual class.
535b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *
536b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 2.2
537b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
538b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    virtual UClassID getDynamicClassID() const;
539b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
540b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
541b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * ICU "poor man's RTTI", returns a UClassID for this class.
542b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *
543b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @stable ICU 2.2
544b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
545b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    static UClassID U_EXPORT2 getStaticClassID();
546b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
547b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queruprivate:
548b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
549b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    friend class SimpleDateFormat;
550b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    friend class DateFormatSymbolsSingleSetter; // see udat.cpp
551b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
552b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
553b0ac937921a2c196d8b9da665135bf6ba01a1ccfJean-Baptiste Queru     * Abbreviated era strings. For example: "AD" and "BC".
554b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
555b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    UnicodeString*  fEras;
556b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    int32_t         fErasCount;
557b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
558b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
559b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Era name strings. For example: "Anno Domini" and "Before Christ".
560b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
561b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    UnicodeString*  fEraNames;
562b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    int32_t         fEraNamesCount;
563b0ac937921a2c196d8b9da665135bf6ba01a1ccfJean-Baptiste Queru
564b0ac937921a2c196d8b9da665135bf6ba01a1ccfJean-Baptiste Queru    /**
565b0ac937921a2c196d8b9da665135bf6ba01a1ccfJean-Baptiste Queru     * Narrow era strings. For example: "A" and "B".
566b0ac937921a2c196d8b9da665135bf6ba01a1ccfJean-Baptiste Queru     */
567b0ac937921a2c196d8b9da665135bf6ba01a1ccfJean-Baptiste Queru    UnicodeString*  fNarrowEras;
568b0ac937921a2c196d8b9da665135bf6ba01a1ccfJean-Baptiste Queru    int32_t         fNarrowErasCount;
569b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
570b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
571b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Month strings. For example: "January", "February", etc.
572b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
573b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    UnicodeString*  fMonths;
574b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    int32_t         fMonthsCount;
575b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
576b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
577b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Short month strings. For example: "Jan", "Feb", etc.
578b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
579b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    UnicodeString*  fShortMonths;
580b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    int32_t         fShortMonthsCount;
581b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
582b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
583b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Narrow month strings. For example: "J", "F", etc.
584b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
585b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    UnicodeString*  fNarrowMonths;
586b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    int32_t         fNarrowMonthsCount;
587b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
588b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
589b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Standalone Month strings. For example: "January", "February", etc.
590b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
591b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    UnicodeString*  fStandaloneMonths;
592b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    int32_t         fStandaloneMonthsCount;
593b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
594b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
595b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Standalone Short month strings. For example: "Jan", "Feb", etc.
596b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
597b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    UnicodeString*  fStandaloneShortMonths;
598b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    int32_t         fStandaloneShortMonthsCount;
599b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
600b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
601b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Standalone Narrow month strings. For example: "J", "F", etc.
602b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
603b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    UnicodeString*  fStandaloneNarrowMonths;
604b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    int32_t         fStandaloneNarrowMonthsCount;
605b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
606b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
6078393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius     * CLDR-style format wide weekday strings. For example: "Sunday", "Monday", etc.
608b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
609b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    UnicodeString*  fWeekdays;
610b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    int32_t         fWeekdaysCount;
611b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
612b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
6138393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius     * CLDR-style format abbreviated (not short) weekday strings. For example: "Sun", "Mon", etc.
614b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
615b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    UnicodeString*  fShortWeekdays;
616b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    int32_t         fShortWeekdaysCount;
617b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
618b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
6198393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius     * CLDR-style format short weekday strings. For example: "Su", "Mo", etc.
6208393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius     */
6218393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius    UnicodeString*  fShorterWeekdays;
6228393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius    int32_t         fShorterWeekdaysCount;
6238393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius
6248393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius    /**
6258393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius     * CLDR-style format narrow weekday strings. For example: "S", "M", etc.
626b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
627b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    UnicodeString*  fNarrowWeekdays;
628b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    int32_t         fNarrowWeekdaysCount;
629b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
630b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
6318393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius     * CLDR-style standalone wide weekday strings. For example: "Sunday", "Monday", etc.
632b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
633b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    UnicodeString*  fStandaloneWeekdays;
634b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    int32_t         fStandaloneWeekdaysCount;
635b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
636b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
6378393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius     * CLDR-style standalone abbreviated (not short) weekday strings. For example: "Sun", "Mon", etc.
638b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
639b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    UnicodeString*  fStandaloneShortWeekdays;
640b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    int32_t         fStandaloneShortWeekdaysCount;
641b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
642b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
6438393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius     * CLDR-style standalone short weekday strings. For example: "Su", "Mo", etc.
6448393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius     */
6458393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius    UnicodeString*  fStandaloneShorterWeekdays;
6468393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius    int32_t         fStandaloneShorterWeekdaysCount;
6478393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius
6488393335b955da7340c9f19b1b4b2d6c0c2c04be7Craig Cornelius    /**
649b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Standalone Narrow weekday strings. For example: "Sun", "Mon", etc.
650b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
651b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    UnicodeString*  fStandaloneNarrowWeekdays;
652b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    int32_t         fStandaloneNarrowWeekdaysCount;
653b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
654b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
655b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Ampm strings. For example: "AM" and "PM".
656b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
657b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    UnicodeString*  fAmPms;
658b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    int32_t         fAmPmsCount;
659b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
660b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
661b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Quarter strings. For example: "1st quarter", "2nd quarter", etc.
662b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
663b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    UnicodeString  *fQuarters;
664b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    int32_t         fQuartersCount;
665b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
666b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
667b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Short quarters. For example: "Q1", "Q2", etc.
668b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
669b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    UnicodeString  *fShortQuarters;
670b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    int32_t         fShortQuartersCount;
671b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
672b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
673b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Standalone quarter strings. For example: "1st quarter", "2nd quarter", etc.
674b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
675b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    UnicodeString  *fStandaloneQuarters;
676b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    int32_t         fStandaloneQuartersCount;
677b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
678b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
679b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Standalone short quarter strings. For example: "Q1", "Q2", etc.
680b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
681b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    UnicodeString  *fStandaloneShortQuarters;
682b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    int32_t         fStandaloneShortQuartersCount;
683b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
684b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
685103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     * All leap month patterns, for example "{0}bis".
686103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     */
687103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius    UnicodeString  *fLeapMonthPatterns;
688103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius    int32_t         fLeapMonthPatternsCount;
689103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius
690103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius    /**
691103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     * (Format) Short cyclic year names, for example: "jia-zi", "yi-chou", ... "gui-hai"
692103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     */
693103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius    UnicodeString*  fShortYearNames;
694103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius    int32_t         fShortYearNamesCount;
695103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius
696103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius    /**
69750294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     * Localized names of time zones in this locale.  This is a
69850294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     * two-dimensional array of strings of size n by m,
69950294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     * where m is at least 5 and up to 7.  Each of the n rows is an
70050294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     * entry containing the localized names for a single TimeZone.
70150294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     *
70250294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     * Each such row contains (with i ranging from 0..n-1):
70350294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     *
70450294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     * zoneStrings[i][0] - time zone ID
70550294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     *  example: America/Los_Angeles
70650294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     * zoneStrings[i][1] - long name of zone in standard time
70750294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     *  example: Pacific Standard Time
70850294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     * zoneStrings[i][2] - short name of zone in standard time
70950294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     *  example: PST
71050294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     * zoneStrings[i][3] - long name of zone in daylight savings time
71150294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     *  example: Pacific Daylight Time
71250294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     * zoneStrings[i][4] - short name of zone in daylight savings time
71350294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     *  example: PDT
71450294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     * zoneStrings[i][5] - location name of zone
71550294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     *  example: United States (Los Angeles)
71650294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     * zoneStrings[i][6] - long generic name of zone
71750294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     *  example: Pacific Time
71850294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     * zoneStrings[i][7] - short generic of zone
71950294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     *  example: PT
72050294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     *
72150294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     * The zone ID is not localized; it corresponds to the ID
72250294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     * value associated with a system time zone object.  All other entries
72350294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     * are localized names.  If a zone does not implement daylight savings
72450294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     * time, the daylight savings time names are ignored.
72550294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     *
72650294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     * Note:CLDR 1.5 introduced metazone and its historical mappings.
72750294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     * This simple two-dimensional array is no longer sufficient to represent
72850294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     * localized names and its historic changes.  Since ICU 3.8.1, localized
72950294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     * zone names extracted from ICU locale data is stored in a ZoneStringFormat
73050294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     * instance.  But we still need to support the old way of customizing
73150294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho     * localized zone names, so we keep this field for the purpose.
732b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
733b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    UnicodeString   **fZoneStrings;         // Zone string array set by setZoneStrings
734b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    UnicodeString   **fLocaleZoneStrings;   // Zone string array created by the locale
735b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    int32_t         fZoneStringsRowCount;
736b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    int32_t         fZoneStringsColCount;
737b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
738b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    Locale                  fZSFLocale;         // Locale used for getting ZoneStringFormat
739b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
740b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
741103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     * Localized date-time pattern characters. For example: use 'u' as 'y'.
742b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
743103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius    UnicodeString   fLocalPatternChars;
744b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
745b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
746103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     * Capitalization transforms. For each usage type, the first array element indicates
747103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     * whether to titlecase for uiListOrMenu context, the second indicates whether to
748103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     * titlecase for stand-alone context.
749b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
750103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius     UBool fCapitalization[kCapContextUsageTypeCount][2];
751b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
752b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queruprivate:
753b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /** valid/actual locale information
754b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *  these are always ICU locales, so the length should not be a problem
755b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
756b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    char validLocale[ULOC_FULLNAME_CAPACITY];
757b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    char actualLocale[ULOC_FULLNAME_CAPACITY];
758b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
759b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    DateFormatSymbols(); // default constructor not implemented
760b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
761b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
762b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Called by the constructors to actually load data from the resources
763b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *
764b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param locale               The locale to get symbols for.
765b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param type                 Calendar Type (as from Calendar::getType())
766b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param status               Input/output parameter, set to success or
767b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *                             failure code upon return.
768b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param useLastResortData    determine if use last resort data
769b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
770b26ce3a7367e4ed2ee7ddddcdc3f3d3377a455c2claireho    void initializeData(const Locale& locale, const char *type, UErrorCode& status, UBool useLastResortData = FALSE);
771b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
772b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
773b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Copy or alias an array in another object, as appropriate.
774b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *
775b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param dstArray    the copy destination array.
776b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param dstCount    fill in with the lenth of 'dstArray'.
777b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param srcArray    the source array to be copied.
778b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param srcCount    the length of items to be copied from the 'srcArray'.
779b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
780b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    static void assignArray(UnicodeString*& dstArray,
781b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru                            int32_t& dstCount,
782b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru                            const UnicodeString* srcArray,
783b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru                            int32_t srcCount);
784b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
785b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
786b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Return true if the given arrays' contents are equal, or if the arrays are
787b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * identical (pointers are equal).
788b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *
789b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param array1   one array to be compared with.
790b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param array2   another array to be compared with.
791b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param count    the length of items to be copied.
792b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @return         true if the given arrays' contents are equal, or if the arrays are
793b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     *                 identical (pointers are equal).
794b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
795b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    static UBool arrayCompare(const UnicodeString* array1,
796b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru                             const UnicodeString* array2,
797b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru                             int32_t count);
798b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
799b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
800b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Create a copy, in fZoneStrings, of the given zone strings array. The
801b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * member variables fZoneStringsRowCount and fZoneStringsColCount should be
802b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * set already by the caller.
803b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
804b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    void createZoneStrings(const UnicodeString *const * otherStrings);
805b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
806b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
807b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Delete all the storage owned by this object.
808b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
809b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    void dispose(void);
810b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
811b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
812b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Copy all of the other's data to this.
813b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * @param other the object to be copied.
814b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
815b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    void copyData(const DateFormatSymbols& other);
816b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
817b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
818b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Create zone strings array by locale if not yet available
819b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
820b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    void initZoneStringsArray(void);
821b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
822b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    /**
823b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     * Delete just the zone strings.
824b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru     */
825b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru    void disposeZoneStrings(void);
82654dcd9b6a06071f647dac967e9e267abb9410720Craig Cornelius
82754dcd9b6a06071f647dac967e9e267abb9410720Craig Cornelius    /**
82854dcd9b6a06071f647dac967e9e267abb9410720Craig Cornelius     * Returns the date format field index of the pattern character c,
82954dcd9b6a06071f647dac967e9e267abb9410720Craig Cornelius     * or UDAT_FIELD_COUNT if c is not a pattern character.
83054dcd9b6a06071f647dac967e9e267abb9410720Craig Cornelius     */
83154dcd9b6a06071f647dac967e9e267abb9410720Craig Cornelius    static UDateFormatField U_EXPORT2 getPatternCharIndex(UChar c);
83254dcd9b6a06071f647dac967e9e267abb9410720Craig Cornelius
83354dcd9b6a06071f647dac967e9e267abb9410720Craig Cornelius    /**
83454dcd9b6a06071f647dac967e9e267abb9410720Craig Cornelius     * Returns TRUE if f (with its pattern character repeated count times) is a numeric field.
83554dcd9b6a06071f647dac967e9e267abb9410720Craig Cornelius     */
83654dcd9b6a06071f647dac967e9e267abb9410720Craig Cornelius    static UBool U_EXPORT2 isNumericField(UDateFormatField f, int32_t count);
83754dcd9b6a06071f647dac967e9e267abb9410720Craig Cornelius
83854dcd9b6a06071f647dac967e9e267abb9410720Craig Cornelius    /**
83954dcd9b6a06071f647dac967e9e267abb9410720Craig Cornelius     * Returns TRUE if c (repeated count times) is the pattern character for a numeric field.
84054dcd9b6a06071f647dac967e9e267abb9410720Craig Cornelius     */
84154dcd9b6a06071f647dac967e9e267abb9410720Craig Cornelius    static UBool U_EXPORT2 isNumericPatternChar(UChar c, int32_t count);
842b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru};
843b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
844b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste QueruU_NAMESPACE_END
845b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
846b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru#endif /* #if !UCONFIG_NO_FORMATTING */
847b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru
848b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru#endif // _DTFMTSYM
849b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru//eof
850