OLD | NEW |
1 /* | 1 /* |
2 ******************************************************************************* | 2 ******************************************************************************* |
3 * | 3 * |
4 * Copyright (C) 2007, International Business Machines | 4 * Copyright (C) 2007-2014, International Business Machines |
5 * Corporation and others. All Rights Reserved. | 5 * Corporation and others. All Rights Reserved. |
6 * | 6 * |
7 ******************************************************************************* | 7 ******************************************************************************* |
8 * file name: icuzdump.cpp | 8 * file name: icuzdump.cpp |
9 * encoding: US-ASCII | 9 * encoding: US-ASCII |
10 * tab size: 8 (not used) | 10 * tab size: 8 (not used) |
11 * indentation:4 | 11 * indentation:4 |
12 * | 12 * |
13 * created on: 2007-04-02 | 13 * created on: 2007-04-02 |
14 * created by: Yoshito Umaoka | 14 * created by: Yoshito Umaoka |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 void getCutOverTimes(UDate& lo, UDate& hi) { | 189 void getCutOverTimes(UDate& lo, UDate& hi) { |
190 UErrorCode status = U_ZERO_ERROR; | 190 UErrorCode status = U_ZERO_ERROR; |
191 GregorianCalendar* gcal = new GregorianCalendar(timezone, Locale::getEng
lish(), status); | 191 GregorianCalendar* gcal = new GregorianCalendar(timezone, Locale::getEng
lish(), status); |
192 gcal->clear(); | 192 gcal->clear(); |
193 gcal->set(loyear, 0, 1, 0, 0, 0); | 193 gcal->set(loyear, 0, 1, 0, 0, 0); |
194 lo = gcal->getTime(status); | 194 lo = gcal->getTime(status); |
195 gcal->set(hiyear, 0, 1, 0, 0, 0); | 195 gcal->set(hiyear, 0, 1, 0, 0, 0); |
196 hi = gcal->getTime(status); | 196 hi = gcal->getTime(status); |
197 } | 197 } |
198 | 198 |
199 void dumpZone(ostream& out, const char* linesep, UnicodeString tzid, int32_t
low, int32_t high) { | |
200 } | |
201 | |
202 TimeZone* timezone; | 199 TimeZone* timezone; |
203 int32_t loyear; | 200 int32_t loyear; |
204 int32_t hiyear; | 201 int32_t hiyear; |
205 int32_t tick; | 202 int32_t tick; |
206 | 203 |
207 DumpFormatter* formatter; | 204 DumpFormatter* formatter; |
208 const char* linesep; | 205 const char* linesep; |
209 }; | 206 }; |
210 | 207 |
211 class ZoneIterator { | 208 class ZoneIterator { |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 } else { | 411 } else { |
415 cout << endl; | 412 cout << endl; |
416 } | 413 } |
417 cout << "ZONE: " << id << endl; | 414 cout << "ZONE: " << id << endl; |
418 dumper.dump(cout); | 415 dumper.dump(cout); |
419 delete tz; | 416 delete tz; |
420 } | 417 } |
421 } | 418 } |
422 delete zit; | 419 delete zit; |
423 } | 420 } |
OLD | NEW |