1// © 2016 and later: Unicode, Inc. and others.
2// License & terms of use: http://www.unicode.org/copyright.html
3/*
4*******************************************************************************
5* Copyright (C) 2000-2016, International Business Machines
6* Corporation and others. All Rights Reserved.
7*******************************************************************************
8*
9* file name: uvernum.h
10* encoding: UTF-8
11* tab size: 8 (not used)
12* indentation:4
13*
14* Created by: Vladimir Weinstein
15* Updated by: Steven R. Loomis
16*
17*/
18
19/**
20 * \file
21 * \brief C API: definitions of ICU version numbers
22 *
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.
25 */
26
27 /*
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
32 *
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.
35 *
36 *
37 * source/common/common_uwp.vcxproj
38 * source/common/common.vcxproj - update 'Output file name' on the link tab so
39 * that it contains the new major/minor combination
40 * source/i18n/i18n.vcxproj - same as for the common.vcxproj
41 * source/i18n/i18n_uwp.vcxproj - same as for the common_uwp.vcxproj
42 * source/layoutex/layoutex.vcproj - same
43 * source/stubdata/stubdata.vcproj - same as for the common.vcxproj
44 * source/io/io.vcproj - same as for the common.vcxproj
45 * source/data/makedata.mak - change U_ICUDATA_NAME so that it contains
46 * the new major/minor combination and the Unicode version.
47 */
48
49#ifndef UVERNUM_H
50#define UVERNUM_H
51
52/** The standard copyright notice that gets compiled into each library.
53 * This value will change in the subsequent releases of ICU
54 * @stable ICU 2.4
55 */
56#define U_COPYRIGHT_STRING \
57 " Copyright (C) 2016 and later: Unicode, Inc. and others. License & terms of use: http://www.unicode.org/copyright.html "
58
59/** The current ICU major version as an integer.
60 * This value will change in the subsequent releases of ICU
61 * @stable ICU 2.4
62 */
63#define U_ICU_VERSION_MAJOR_NUM 64
64#define U_ICU_VERSION_MAJOR_STR "64"
65
66/** The current ICU minor version as an integer.
67 * This value will change in the subsequent releases of ICU
68 * @stable ICU 2.6
69 */
70#define U_ICU_VERSION_MINOR_NUM 2
71
72/** The current ICU patchlevel version as an integer.
73 * This value will change in the subsequent releases of ICU
74 * @stable ICU 2.4
75 */
76#define U_ICU_VERSION_PATCHLEVEL_NUM 0
77
78/** The current ICU build level version as an integer.
79 * This value is for use by ICU clients. It defaults to 0.
80 * @stable ICU 4.0
81 */
82#ifndef U_ICU_VERSION_BUILDLEVEL_NUM
83#define U_ICU_VERSION_BUILDLEVEL_NUM 0
84#endif
85
86/** Glued version suffix for renamers
87 * This value will change in the subsequent releases of ICU
88 * @stable ICU 2.6
89 */
90#define ___icu_version_expand(major, minor) _ ## major ## _ ## minor
91#define ___icu_version_glue(major, minor) ___icu_version_expand(major, minor)
92#define U_ICU_VERSION_SUFFIX ___icu_version_glue(U_ICU_VERSION_MAJOR_NUM, U_ICU_VERSION_MINOR_NUM)
93
94/**
95 * \def U_DEF2_ICU_ENTRY_POINT_RENAME
96 * @internal
97 */
98/**
99 * \def U_DEF_ICU_ENTRY_POINT_RENAME
100 * @internal
101 */
102/** Glued version suffix function for renamers
103 * This value will change in the subsequent releases of ICU.
104 * If a custom suffix (such as matching library suffixes) is desired, this can be modified.
105 * Note that if present, platform.h may contain an earlier definition of this macro.
106 * \def U_ICU_ENTRY_POINT_RENAME
107 * @stable ICU 4.2
108 */
109/**
110 * Disable the version suffix. Use the custom suffix if exists.
111 * \def U_DISABLE_VERSION_SUFFIX
112 * @internal
113 */
114#ifndef U_DISABLE_VERSION_SUFFIX
115#define U_DISABLE_VERSION_SUFFIX 0
116#endif
117
118#ifndef U_ICU_ENTRY_POINT_RENAME
119#ifdef U_HAVE_LIB_SUFFIX
120# if !U_DISABLE_VERSION_SUFFIX
121# define U_DEF_ICU_ENTRY_POINT_RENAME(x,y,z) x ## y ## z
122# define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y,z) U_DEF_ICU_ENTRY_POINT_RENAME(x,y,z)
123# define U_ICU_ENTRY_POINT_RENAME(x) U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX,U_LIB_SUFFIX_C_NAME)
124# else
125# define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
126# define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
127# define U_ICU_ENTRY_POINT_RENAME(x) U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_LIB_SUFFIX_C_NAME)
128# endif
129#else
130# if !U_DISABLE_VERSION_SUFFIX
131# define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
132# define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
133# define U_ICU_ENTRY_POINT_RENAME(x) U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
134# else
135# define U_ICU_ENTRY_POINT_RENAME(x) x
136# endif
137#endif
138#endif
139
140/** The current ICU library version as a dotted-decimal string. The patchlevel
141 * only appears in this string if it non-zero.
142 * This value will change in the subsequent releases of ICU
143 * @stable ICU 2.4
144 */
145#define U_ICU_VERSION "64.2"
146
147/**
148 * The current ICU library major version number as a string, for library name suffixes.
149 * This value will change in subsequent releases of ICU.
150 *
151 * Until ICU 4.8, this was the combination of the single-digit major and minor ICU version numbers
152 * into one string without dots ("48").
153 * Since ICU 49, it is the double-digit major ICU version number.
154 * See http://userguide.icu-project.org/design#TOC-Version-Numbers-in-ICU
155 *
156 * @stable ICU 2.6
157 */
158#define U_ICU_VERSION_SHORT "64_2"
159
160#ifndef U_HIDE_INTERNAL_API
161/** Data version in ICU4C.
162 * @internal ICU 4.4 Internal Use Only
163 **/
164#define U_ICU_DATA_VERSION "64.2"
165#endif /* U_HIDE_INTERNAL_API */
166
167/*===========================================================================
168 * ICU collation framework version information
169 * Version info that can be obtained from a collator is affected by these
170 * numbers in a secret and magic way. Please use collator version as whole
171 *===========================================================================
172 */
173
174/**
175 * Collation runtime version (sort key generator, strcoll).
176 * If the version is different, sort keys for the same string could be different.
177 * This value may change in subsequent releases of ICU.
178 * @stable ICU 2.4
179 */
180#define UCOL_RUNTIME_VERSION 9
181
182/**
183 * Collation builder code version.
184 * When this is different, the same tailoring might result
185 * in assigning different collation elements to code points.
186 * This value may change in subsequent releases of ICU.
187 * @stable ICU 2.4
188 */
189#define UCOL_BUILDER_VERSION 9
190
191#ifndef U_HIDE_DEPRECATED_API
192/**
193 * Constant 1.
194 * This was intended to be the version of collation tailorings,
195 * but instead the tailoring data carries a version number.
196 * @deprecated ICU 54
197 */
198#define UCOL_TAILORINGS_VERSION 1
199#endif /* U_HIDE_DEPRECATED_API */
200
201#endif
202