]>
git.saurik.com Git - apple/icu.git/blob - icuSources/common/unicode/uvernum.h
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
4 *******************************************************************************
5 * Copyright (C) 2000-2016, International Business Machines
6 * Corporation and others. All Rights Reserved.
7 *******************************************************************************
11 * tab size: 8 (not used)
14 * Created by: Vladimir Weinstein
15 * Updated by: Steven R. Loomis
21 * \brief C API: definitions of ICU version numbers
23 * This file is included by uversion.h and other files. This file contains only
24 * macros and definitions. The actual version numbers are defined here.
28 * IMPORTANT: When updating version, the following things need to be done:
29 * source/common/unicode/uvernum.h - this file: update major, minor,
30 * patchlevel, suffix, version, short version constants, namespace,
31 * renaming macro, and copyright
33 * The following files need to be updated as well, which can be done
34 * by running the UNIX makefile target 'update-windows-makefiles' in icu/source.
37 * source/common/common.vcxproj - update 'Output file name' on the link tab so
38 * that it contains the new major/minor combination
39 * source/i18n/i18n.vcxproj - same as for the common.vcxproj
40 * source/layoutex/layoutex.vcproj - same
41 * source/stubdata/stubdata.vcproj - same as for the common.vcxproj
42 * source/io/io.vcproj - same as for the common.vcxproj
43 * source/data/makedata.mak - change U_ICUDATA_NAME so that it contains
44 * the new major/minor combination and the Unicode version.
50 /** The standard copyright notice that gets compiled into each library.
51 * This value will change in the subsequent releases of ICU
54 #define U_COPYRIGHT_STRING \
55 " Copyright (C) 2016 and later: Unicode, Inc. and others. License & terms of use: http://www.unicode.org/copyright.html "
57 /** The current ICU major version as an integer.
58 * This value will change in the subsequent releases of ICU
61 #define U_ICU_VERSION_MAJOR_NUM 62
63 /** The current ICU minor version as an integer.
64 * This value will change in the subsequent releases of ICU
67 #define U_ICU_VERSION_MINOR_NUM 1
69 /** The current ICU patchlevel version as an integer.
70 * This value will change in the subsequent releases of ICU
73 #define U_ICU_VERSION_PATCHLEVEL_NUM 0
75 /** The current ICU build level version as an integer.
76 * This value is for use by ICU clients. It defaults to 0.
79 #ifndef U_ICU_VERSION_BUILDLEVEL_NUM
80 #define U_ICU_VERSION_BUILDLEVEL_NUM 0
83 /** Glued version suffix for renamers
84 * This value will change in the subsequent releases of ICU
87 #define U_ICU_VERSION_SUFFIX _62
90 * \def U_DEF2_ICU_ENTRY_POINT_RENAME
94 * \def U_DEF_ICU_ENTRY_POINT_RENAME
97 /** Glued version suffix function for renamers
98 * This value will change in the subsequent releases of ICU.
99 * If a custom suffix (such as matching library suffixes) is desired, this can be modified.
100 * Note that if present, platform.h may contain an earlier definition of this macro.
101 * \def U_ICU_ENTRY_POINT_RENAME
105 #ifndef U_ICU_ENTRY_POINT_RENAME
106 #ifdef U_HAVE_LIB_SUFFIX
107 #define U_DEF_ICU_ENTRY_POINT_RENAME(x,y,z) x ## y ## z
108 #define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y,z) U_DEF_ICU_ENTRY_POINT_RENAME(x,y,z)
109 #define U_ICU_ENTRY_POINT_RENAME(x) U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX,U_LIB_SUFFIX_C_NAME)
111 #define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
112 #define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
113 #define U_ICU_ENTRY_POINT_RENAME(x) U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
117 /** The current ICU library version as a dotted-decimal string. The patchlevel
118 * only appears in this string if it non-zero.
119 * This value will change in the subsequent releases of ICU
122 #define U_ICU_VERSION "62.1"
125 * The current ICU library major version number as a string, for library name suffixes.
126 * This value will change in subsequent releases of ICU.
128 * Until ICU 4.8, this was the combination of the single-digit major and minor ICU version numbers
129 * into one string without dots ("48").
130 * Since ICU 49, it is the double-digit major ICU version number.
131 * See http://userguide.icu-project.org/design#TOC-Version-Numbers-in-ICU
135 #define U_ICU_VERSION_SHORT "62"
137 #ifndef U_HIDE_INTERNAL_API
138 /** Data version in ICU4C.
139 * @internal ICU 4.4 Internal Use Only
141 #define U_ICU_DATA_VERSION "62.1"
142 #endif /* U_HIDE_INTERNAL_API */
144 /*===========================================================================
145 * ICU collation framework version information
146 * Version info that can be obtained from a collator is affected by these
147 * numbers in a secret and magic way. Please use collator version as whole
148 *===========================================================================
152 * Collation runtime version (sort key generator, strcoll).
153 * If the version is different, sort keys for the same string could be different.
154 * This value may change in subsequent releases of ICU.
157 #define UCOL_RUNTIME_VERSION 9
160 * Collation builder code version.
161 * When this is different, the same tailoring might result
162 * in assigning different collation elements to code points.
163 * This value may change in subsequent releases of ICU.
166 #define UCOL_BUILDER_VERSION 9
168 #ifndef U_HIDE_DEPRECATED_API
171 * This was intended to be the version of collation tailorings,
172 * but instead the tailoring data carries a version number.
175 #define UCOL_TAILORINGS_VERSION 1
176 #endif /* U_HIDE_DEPRECATED_API */