| 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 63 |
| 64 | |
| 65 | /** The current ICU minor version as an integer. |
| 66 | * This value will change in the subsequent releases of ICU |
| 67 | * @stable ICU 2.6 |
| 68 | */ |
| 69 | #define U_ICU_VERSION_MINOR_NUM 1 |
| 70 | |
| 71 | /** The current ICU patchlevel version as an integer. |
| 72 | * This value will change in the subsequent releases of ICU |
| 73 | * @stable ICU 2.4 |
| 74 | */ |
| 75 | #define U_ICU_VERSION_PATCHLEVEL_NUM 0 |
| 76 | |
| 77 | /** The current ICU build level version as an integer. |
| 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 | |
| 85 | /** Glued version suffix for renamers |
| 86 | * This value will change in the subsequent releases of ICU |
| 87 | * @stable ICU 2.6 |
| 88 | */ |
| 89 | #define U_ICU_VERSION_SUFFIX _63 |
| 90 | |
| 91 | /** |
| 92 | * \def U_DEF2_ICU_ENTRY_POINT_RENAME |
| 93 | * @internal |
| 94 | */ |
| 95 | /** |
| 96 | * \def U_DEF_ICU_ENTRY_POINT_RENAME |
| 97 | * @internal |
| 98 | */ |
| 99 | /** Glued version suffix function for renamers |
| 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. |
| 103 | * \def U_ICU_ENTRY_POINT_RENAME |
| 104 | * @stable ICU 4.2 |
| 105 | */ |
| 106 | |
| 107 | #ifndef U_ICU_ENTRY_POINT_RENAME |
| 108 | #ifdef U_HAVE_LIB_SUFFIX |
| 109 | #define U_DEF_ICU_ENTRY_POINT_RENAME(x,y,z) x ## y ## z |
| 110 | #define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y,z) U_DEF_ICU_ENTRY_POINT_RENAME(x,y,z) |
| 111 | #define U_ICU_ENTRY_POINT_RENAME(x) U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX,U_LIB_SUFFIX_C_NAME) |
| 112 | #else |
| 113 | #define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y |
| 114 | #define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y) |
| 115 | #define U_ICU_ENTRY_POINT_RENAME(x) U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX) |
| 116 | #endif |
| 117 | #endif |
| 118 | |
| 119 | /** The current ICU library version as a dotted-decimal string. The patchlevel |
| 120 | * only appears in this string if it non-zero. |
| 121 | * This value will change in the subsequent releases of ICU |
| 122 | * @stable ICU 2.4 |
| 123 | */ |
| 124 | #define U_ICU_VERSION "63.1" |
| 125 | |
| 126 | /** |
| 127 | * The current ICU library major version number as a string, for library name suffixes. |
| 128 | * This value will change in subsequent releases of ICU. |
| 129 | * |
| 130 | * Until ICU 4.8, this was the combination of the single-digit major and minor ICU version numbers |
| 131 | * into one string without dots ("48"). |
| 132 | * Since ICU 49, it is the double-digit major ICU version number. |
| 133 | * See http://userguide.icu-project.org/design#TOC-Version-Numbers-in-ICU |
| 134 | * |
| 135 | * @stable ICU 2.6 |
| 136 | */ |
| 137 | #define U_ICU_VERSION_SHORT "63" |
| 138 | |
| 139 | #ifndef U_HIDE_INTERNAL_API |
| 140 | /** Data version in ICU4C. |
| 141 | * @internal ICU 4.4 Internal Use Only |
| 142 | **/ |
| 143 | #define U_ICU_DATA_VERSION "63.1" |
| 144 | #endif /* U_HIDE_INTERNAL_API */ |
| 145 | |
| 146 | /*=========================================================================== |
| 147 | * ICU collation framework version information |
| 148 | * Version info that can be obtained from a collator is affected by these |
| 149 | * numbers in a secret and magic way. Please use collator version as whole |
| 150 | *=========================================================================== |
| 151 | */ |
| 152 | |
| 153 | /** |
| 154 | * Collation runtime version (sort key generator, strcoll). |
| 155 | * If the version is different, sort keys for the same string could be different. |
| 156 | * This value may change in subsequent releases of ICU. |
| 157 | * @stable ICU 2.4 |
| 158 | */ |
| 159 | #define UCOL_RUNTIME_VERSION 9 |
| 160 | |
| 161 | /** |
| 162 | * Collation builder code version. |
| 163 | * When this is different, the same tailoring might result |
| 164 | * in assigning different collation elements to code points. |
| 165 | * This value may change in subsequent releases of ICU. |
| 166 | * @stable ICU 2.4 |
| 167 | */ |
| 168 | #define UCOL_BUILDER_VERSION 9 |
| 169 | |
| 170 | #ifndef U_HIDE_DEPRECATED_API |
| 171 | /** |
| 172 | * Constant 1. |
| 173 | * This was intended to be the version of collation tailorings, |
| 174 | * but instead the tailoring data carries a version number. |
| 175 | * @deprecated ICU 54 |
| 176 | */ |
| 177 | #define UCOL_TAILORINGS_VERSION 1 |
| 178 | #endif /* U_HIDE_DEPRECATED_API */ |
| 179 | |
| 180 | #endif |
| 181 | |