intl/icu/source/tools/tzcode/tz2icu.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/icu/source/tools/tzcode/tz2icu.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,44 @@
     1.4 +/*
     1.5 +**********************************************************************
     1.6 +* Copyright (c) 2003-2010, International Business Machines
     1.7 +* Corporation and others.  All Rights Reserved.
     1.8 +**********************************************************************
     1.9 +* Author: Alan Liu
    1.10 +* Created: July 10 2003
    1.11 +* Since: ICU 2.8
    1.12 +**********************************************************************
    1.13 +*/
    1.14 +
    1.15 +#ifndef _TZ2ICU_H_
    1.16 +#define _TZ2ICU_H_
    1.17 +
    1.18 +/* We have modified the zoneinfo binary format (we write raw offset
    1.19 + * and DST offset separately instead of their sum) so we notate the
    1.20 + * file with a distinct signature.  This prevents someone from trying
    1.21 + * to use our output files as normal zoneinfo files, and also prevents
    1.22 + * someone from trying to use normal zoneinfo files for ICU.  We also
    1.23 + * use the first byte of the reserved section as a version integer, to
    1.24 + * be incremented each time the data format changes.
    1.25 + */
    1.26 +
    1.27 +#define TZ_ICU_MAGIC "TZic" /* cf. TZ_MAGIC = "TZif" */
    1.28 +
    1.29 +typedef unsigned char ICUZoneinfoVersion;
    1.30 +
    1.31 +#define TZ_ICU_VERSION ((ICUZoneinfoVersion) 1)
    1.32 +
    1.33 +/* File into which we will write supplemental ICU data.  This allows
    1.34 + * zic to communicate final zone data to tz2icu. */
    1.35 +#define ICU_ZONE_FILE "icu_zone.txt"
    1.36 +
    1.37 +/* File containing legacy aliases.  Read by tz2icu. */
    1.38 +#define ICU_TZ_ALIAS  "tz.alias"
    1.39 +
    1.40 +/* Output resource name.  This determines both the file name and the
    1.41 + * resource name within the file.  That is, the output will be to the
    1.42 + * file ICU_TZ_RESOURCE ".txt" and the resource within it will be
    1.43 + * ICU_TZ_RESOURCE. */
    1.44 +#define ICU_TZ_RESOURCE_OLD "zoneinfo"
    1.45 +#define ICU_TZ_RESOURCE "zoneinfo64"
    1.46 +
    1.47 +#endif

mercurial