Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Side by Side Diff: source/i18n/windtfmt.h

Issue 1296803002: Fix -Woverloaded-virtual warnings in ICU. (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: patch Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « patches/woverloaded-virtual.patch ('k') | source/i18n/winnmfmt.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 ******************************************************************************** 2 ********************************************************************************
3 * Copyright (C) 2005-2013, International Business Machines 3 * Copyright (C) 2005-2013, International Business Machines
4 * Corporation and others. All Rights Reserved. 4 * Corporation and others. All Rights Reserved.
5 ******************************************************************************** 5 ********************************************************************************
6 * 6 *
7 * File WINDTFMT.H 7 * File WINDTFMT.H
8 * 8 *
9 ******************************************************************************** 9 ********************************************************************************
10 */ 10 */
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 Win32DateFormat(const Win32DateFormat &other); 45 Win32DateFormat(const Win32DateFormat &other);
46 46
47 virtual ~Win32DateFormat(); 47 virtual ~Win32DateFormat();
48 48
49 virtual Format *clone(void) const; 49 virtual Format *clone(void) const;
50 50
51 Win32DateFormat &operator=(const Win32DateFormat &other); 51 Win32DateFormat &operator=(const Win32DateFormat &other);
52 52
53 UnicodeString &format(Calendar &cal, UnicodeString &appendTo, FieldPosition &pos) const; 53 UnicodeString &format(Calendar &cal, UnicodeString &appendTo, FieldPosition &pos) const;
54 54
55 UnicodeString& format(UDate date, UnicodeString& appendTo) const;
56
57 void parse(const UnicodeString& text, Calendar& cal, ParsePosition& pos) con st; 55 void parse(const UnicodeString& text, Calendar& cal, ParsePosition& pos) con st;
58 56
59 /** 57 /**
60 * Set the calendar to be used by this date format. Initially, the default 58 * Set the calendar to be used by this date format. Initially, the default
61 * calendar for the specified or default locale is used. The caller should 59 * calendar for the specified or default locale is used. The caller should
62 * not delete the Calendar object after it is adopted by this call. 60 * not delete the Calendar object after it is adopted by this call.
63 * 61 *
64 * @param calendarToAdopt Calendar object to be adopted. 62 * @param calendarToAdopt Calendar object to be adopted.
65 */ 63 */
66 virtual void adoptCalendar(Calendar* calendarToAdopt); 64 virtual void adoptCalendar(Calendar* calendarToAdopt);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 118
121 UnicodeString *fDateTimeMsg; 119 UnicodeString *fDateTimeMsg;
122 DateFormat::EStyle fTimeStyle; 120 DateFormat::EStyle fTimeStyle;
123 DateFormat::EStyle fDateStyle; 121 DateFormat::EStyle fDateStyle;
124 Locale fLocale; 122 Locale fLocale;
125 int32_t fLCID; 123 int32_t fLCID;
126 UnicodeString fZoneID; 124 UnicodeString fZoneID;
127 TIME_ZONE_INFORMATION *fTZI; 125 TIME_ZONE_INFORMATION *fTZI;
128 }; 126 };
129 127
130 inline UnicodeString &Win32DateFormat::format(UDate date, UnicodeString& appendT o) const {
131 return DateFormat::format(date, appendTo);
132 }
133
134 U_NAMESPACE_END 128 U_NAMESPACE_END
135 129
136 #endif /* #if !UCONFIG_NO_FORMATTING */ 130 #endif /* #if !UCONFIG_NO_FORMATTING */
137 131
138 #endif // U_PLATFORM_HAS_WIN32_API 132 #endif // U_PLATFORM_HAS_WIN32_API
139 133
140 #endif // __WINDTFMT 134 #endif // __WINDTFMT
OLDNEW
« no previous file with comments | « patches/woverloaded-virtual.patch ('k') | source/i18n/winnmfmt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698