| 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 icu4c/source. |
| 35 |
* |
| 36 |
* source/allinone/Build.Windows.IcuVersion.props - Update the IcuMajorVersion |
| 37 |
* source/data/makedata.mak - change U_ICUDATA_NAME so that it contains |
| 38 |
* the new major/minor combination, and UNICODE_VERSION |
| 39 |
* for the Unicode version. |
| 40 |
*/ |
| 41 |
|
| 42 |
#ifndef UVERNUM_H |
| 43 |
#define UVERNUM_H |
| 44 |
|
| 45 |
/** The standard copyright notice that gets compiled into each library. |
| 46 |
* This value will change in the subsequent releases of ICU |
| 47 |
* @stable ICU 2.4 |
| 48 |
*/ |
| 49 |
#define U_COPYRIGHT_STRING \ |
| 50 |
" Copyright (C) 2016 and later: Unicode, Inc. and others. License & terms of use: http://www.unicode.org/copyright.html " |
| 51 |
|
| 52 |
/** The current ICU major version as an integer. |
| 53 |
* This value will change in the subsequent releases of ICU |
| 54 |
* @stable ICU 2.4 |
| 55 |
*/ |
| 56 |
#define U_ICU_VERSION_MAJOR_NUM 77 |
| 57 |
|
| 58 |
/** The current ICU minor version as an integer. |
| 59 |
* This value will change in the subsequent releases of ICU |
| 60 |
* @stable ICU 2.6 |
| 61 |
*/ |
| 62 |
#define U_ICU_VERSION_MINOR_NUM 1 |
| 63 |
|
| 64 |
/** The current ICU patchlevel version as an integer. |
| 65 |
* This value will change in the subsequent releases of ICU |
| 66 |
* @stable ICU 2.4 |
| 67 |
*/ |
| 68 |
#define U_ICU_VERSION_PATCHLEVEL_NUM 0 |
| 69 |
|
| 70 |
/** The current ICU build level version as an integer. |
| 71 |
* This value is for use by ICU clients. It defaults to 0. |
| 72 |
* @stable ICU 4.0 |
| 73 |
*/ |
| 74 |
#ifndef U_ICU_VERSION_BUILDLEVEL_NUM |
| 75 |
#define U_ICU_VERSION_BUILDLEVEL_NUM 0 |
| 76 |
#endif |
| 77 |
|
| 78 |
/** Glued version suffix for renamers |
| 79 |
* This value will change in the subsequent releases of ICU |
| 80 |
* @stable ICU 2.6 |
| 81 |
*/ |
| 82 |
#define U_ICU_VERSION_SUFFIX _77 |
| 83 |
|
| 84 |
/** |
| 85 |
* \def U_DEF2_ICU_ENTRY_POINT_RENAME |
| 86 |
* @internal |
| 87 |
*/ |
| 88 |
/** |
| 89 |
* \def U_DEF_ICU_ENTRY_POINT_RENAME |
| 90 |
* @internal |
| 91 |
*/ |
| 92 |
/** Glued version suffix function for renamers |
| 93 |
* This value will change in the subsequent releases of ICU. |
| 94 |
* If a custom suffix (such as matching library suffixes) is desired, this can be modified. |
| 95 |
* Note that if present, platform.h may contain an earlier definition of this macro. |
| 96 |
* \def U_ICU_ENTRY_POINT_RENAME |
| 97 |
* @stable ICU 4.2 |
| 98 |
*/ |
| 99 |
/** |
| 100 |
* Disable the version suffix. Use the custom suffix if exists. |
| 101 |
* \def U_DISABLE_VERSION_SUFFIX |
| 102 |
* @internal |
| 103 |
*/ |
| 104 |
#ifndef U_DISABLE_VERSION_SUFFIX |
| 105 |
#define U_DISABLE_VERSION_SUFFIX 0 |
| 106 |
#endif |
| 107 |
|
| 108 |
#ifndef U_ICU_ENTRY_POINT_RENAME |
| 109 |
#ifdef U_HAVE_LIB_SUFFIX |
| 110 |
# if !U_DISABLE_VERSION_SUFFIX |
| 111 |
# define U_DEF_ICU_ENTRY_POINT_RENAME(x,y,z) x ## y ## z |
| 112 |
# define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y,z) U_DEF_ICU_ENTRY_POINT_RENAME(x,y,z) |
| 113 |
# define U_ICU_ENTRY_POINT_RENAME(x) U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX,U_LIB_SUFFIX_C_NAME) |
| 114 |
# else |
| 115 |
# define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y |
| 116 |
# define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y) |
| 117 |
# define U_ICU_ENTRY_POINT_RENAME(x) U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_LIB_SUFFIX_C_NAME) |
| 118 |
# endif |
| 119 |
#else |
| 120 |
# if !U_DISABLE_VERSION_SUFFIX |
| 121 |
# define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y |
| 122 |
# define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y) |
| 123 |
# define U_ICU_ENTRY_POINT_RENAME(x) U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX) |
| 124 |
# else |
| 125 |
# define U_ICU_ENTRY_POINT_RENAME(x) x |
| 126 |
# endif |
| 127 |
#endif |
| 128 |
#endif |
| 129 |
|
| 130 |
/** The current ICU library version as a dotted-decimal string. The patchlevel |
| 131 |
* only appears in this string if it non-zero. |
| 132 |
* This value will change in the subsequent releases of ICU |
| 133 |
* @stable ICU 2.4 |
| 134 |
*/ |
| 135 |
#define U_ICU_VERSION "77.1" |
| 136 |
|
| 137 |
/** |
| 138 |
* The current ICU library major version number as a string, for library name suffixes. |
| 139 |
* This value will change in subsequent releases of ICU. |
| 140 |
* |
| 141 |
* Until ICU 4.8, this was the combination of the single-digit major and minor ICU version numbers |
| 142 |
* into one string without dots ("48"). |
| 143 |
* Since ICU 49, it is the double-digit major ICU version number. |
| 144 |
* See https://unicode-org.github.io/icu/userguide/design#version-numbers-in-icu |
| 145 |
* |
| 146 |
* @stable ICU 2.6 |
| 147 |
*/ |
| 148 |
#define U_ICU_VERSION_SHORT "77" |
| 149 |
|
| 150 |
#ifndef U_HIDE_INTERNAL_API |
| 151 |
/** Data version in ICU4C. |
| 152 |
* @internal ICU 4.4 Internal Use Only |
| 153 |
**/ |
| 154 |
#define U_ICU_DATA_VERSION "77.1" |
| 155 |
#endif /* U_HIDE_INTERNAL_API */ |
| 156 |
|
| 157 |
/*=========================================================================== |
| 158 |
* ICU collation framework version information |
| 159 |
* Version info that can be obtained from a collator is affected by these |
| 160 |
* numbers in a secret and magic way. Please use collator version as whole |
| 161 |
*=========================================================================== |
| 162 |
*/ |
| 163 |
|
| 164 |
/** |
| 165 |
* Collation runtime version (sort key generator, strcoll). |
| 166 |
* If the version is different, sort keys for the same string could be different. |
| 167 |
* This value may change in subsequent releases of ICU. |
| 168 |
* @stable ICU 2.4 |
| 169 |
*/ |
| 170 |
#define UCOL_RUNTIME_VERSION 9 |
| 171 |
|
| 172 |
/** |
| 173 |
* Collation builder code version. |
| 174 |
* When this is different, the same tailoring might result |
| 175 |
* in assigning different collation elements to code points. |
| 176 |
* This value may change in subsequent releases of ICU. |
| 177 |
* @stable ICU 2.4 |
| 178 |
*/ |
| 179 |
#define UCOL_BUILDER_VERSION 9 |
| 180 |
|
| 181 |
#ifndef U_HIDE_DEPRECATED_API |
| 182 |
/** |
| 183 |
* Constant 1. |
| 184 |
* This was intended to be the version of collation tailorings, |
| 185 |
* but instead the tailoring data carries a version number. |
| 186 |
* @deprecated ICU 54 |
| 187 |
*/ |
| 188 |
#define UCOL_TAILORINGS_VERSION 1 |
| 189 |
#endif /* U_HIDE_DEPRECATED_API */ |
| 190 |
|
| 191 |
#endif |