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

Side by Side Diff: source/tools/tzcode/tz2icu.cpp

Issue 1621843002: ICU 56 update step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@561
Patch Set: Created 4 years, 11 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 | « source/tools/tzcode/icuzdump.vcxproj.filters ('k') | no next file » | 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 ********************************************************************** 3 **********************************************************************
4 * Copyright (c) 2003-2014, International Business Machines 4 * Copyright (c) 2003-2014, International Business Machines
5 * Corporation and others. All Rights Reserved. 5 * Corporation and others. All Rights Reserved.
6 ********************************************************************** 6 **********************************************************************
7 * Author: Alan Liu 7 * Author: Alan Liu
8 * Created: July 10 2003 8 * Created: July 10 2003
9 * Since: ICU 2.8 9 * Since: ICU 2.8
10 ********************************************************************** 10 **********************************************************************
(...skipping 1702 matching lines...) Expand 10 before | Expand all | Expand 10 after
1713 ofstream file(filename.c_str()); 1713 ofstream file(filename.c_str());
1714 if (file) { 1714 if (file) {
1715 file << "//---------------------------------------------------------" << endl 1715 file << "//---------------------------------------------------------" << endl
1716 << "// Copyright (C) 2003"; 1716 << "// Copyright (C) 2003";
1717 if (thisYear > 2003) { 1717 if (thisYear > 2003) {
1718 file << "-" << thisYear; 1718 file << "-" << thisYear;
1719 } 1719 }
1720 file << ", International Business Machines" << endl 1720 file << ", International Business Machines" << endl
1721 << "// Corporation and others. All Rights Reserved." << endl 1721 << "// Corporation and others. All Rights Reserved." << endl
1722 << "//---------------------------------------------------------" << endl 1722 << "//---------------------------------------------------------" << endl
1723 << "// Build tool: tz2icu" << endl 1723 << "// Build tool: tz2icu" << endl
1724 << "// Build date: " << asctime(now) /* << endl -- asctime emits CR */ 1724 << "// Build date: " << asctime(now) /* << endl -- asctime emits C R */
1725 << "// Olson source: ftp://elsie.nci.nih.gov/pub/" << endl 1725 << "// tz database: ftp://ftp.iana.org/tz/" << endl
1726 << "// Olson version: " << version << endl 1726 << "// tz version: " << version << endl
1727 << "// ICU version: " << U_ICU_VERSION << endl 1727 << "// ICU version: " << U_ICU_VERSION << endl
1728 << "//---------------------------------------------------------" << endl 1728 << "//---------------------------------------------------------" << endl
1729 << "// >> !!! >> THIS IS A MACHINE-GENERATED FILE << !!! <<" << endl 1729 << "// >> !!! >> THIS IS A MACHINE-GENERATED FILE << !!! <<" << endl
1730 << "// >> !!! >>> DO NOT EDIT <<< !!! <<" << endl 1730 << "// >> !!! >>> DO NOT EDIT <<< !!! <<" << endl
1731 << "//---------------------------------------------------------" << endl 1731 << "//---------------------------------------------------------" << endl
1732 << endl 1732 << endl
1733 << TZ_RESOURCE_NAME << ":table(nofallback) {" << endl 1733 << TZ_RESOURCE_NAME << ":table(nofallback) {" << endl
1734 << " TZVersion { \"" << version << "\" }" << endl 1734 << " TZVersion { \"" << version << "\" }" << endl
1735 << " Zones:array { " << endl 1735 << " Zones:array { " << endl
1736 << ZONEINFO // Zones (the actual data) 1736 << ZONEINFO // Zones (the actual data)
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
1801 file.close(); 1801 file.close();
1802 1802
1803 if (file) { // recheck error bit 1803 if (file) { // recheck error bit
1804 cout << "Finished writing " << TZ_RESOURCE_NAME << ".txt" << endl; 1804 cout << "Finished writing " << TZ_RESOURCE_NAME << ".txt" << endl;
1805 } else { 1805 } else {
1806 cerr << "Error: Unable to open/write to " << TZ_RESOURCE_NAME << ".txt" << endl; 1806 cerr << "Error: Unable to open/write to " << TZ_RESOURCE_NAME << ".txt" << endl;
1807 return 1; 1807 return 1;
1808 } 1808 }
1809 } 1809 }
1810 //eof 1810 //eof
OLDNEW
« no previous file with comments | « source/tools/tzcode/icuzdump.vcxproj.filters ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698