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