OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |