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