jpayne@69: // © 2016 and later: Unicode, Inc. and others. jpayne@69: // License & terms of use: http://www.unicode.org/copyright.html jpayne@69: /* jpayne@69: ******************************************************************************* jpayne@69: * Copyright (C) 2000-2016, International Business Machines jpayne@69: * Corporation and others. All Rights Reserved. jpayne@69: ******************************************************************************* jpayne@69: * jpayne@69: * file name: uvernum.h jpayne@69: * encoding: UTF-8 jpayne@69: * tab size: 8 (not used) jpayne@69: * indentation:4 jpayne@69: * jpayne@69: * Created by: Vladimir Weinstein jpayne@69: * Updated by: Steven R. Loomis jpayne@69: * jpayne@69: */ jpayne@69: jpayne@69: /** jpayne@69: * \file jpayne@69: * \brief C API: definitions of ICU version numbers jpayne@69: * jpayne@69: * This file is included by uversion.h and other files. This file contains only jpayne@69: * macros and definitions. The actual version numbers are defined here. jpayne@69: */ jpayne@69: jpayne@69: /* jpayne@69: * IMPORTANT: When updating version, the following things need to be done: jpayne@69: * source/common/unicode/uvernum.h - this file: update major, minor, jpayne@69: * patchlevel, suffix, version, short version constants, namespace, jpayne@69: * renaming macro, and copyright jpayne@69: * jpayne@69: * The following files need to be updated as well, which can be done jpayne@69: * by running the UNIX makefile target 'update-windows-makefiles' in icu/source. jpayne@69: * jpayne@69: * jpayne@69: * source/common/common_uwp.vcxproj jpayne@69: * source/common/common.vcxproj - update 'Output file name' on the link tab so jpayne@69: * that it contains the new major/minor combination jpayne@69: * source/i18n/i18n.vcxproj - same as for the common.vcxproj jpayne@69: * source/i18n/i18n_uwp.vcxproj - same as for the common_uwp.vcxproj jpayne@69: * source/layoutex/layoutex.vcproj - same jpayne@69: * source/stubdata/stubdata.vcproj - same as for the common.vcxproj jpayne@69: * source/io/io.vcproj - same as for the common.vcxproj jpayne@69: * source/data/makedata.mak - change U_ICUDATA_NAME so that it contains jpayne@69: * the new major/minor combination and the Unicode version. jpayne@69: */ jpayne@69: jpayne@69: #ifndef UVERNUM_H jpayne@69: #define UVERNUM_H jpayne@69: jpayne@69: /** The standard copyright notice that gets compiled into each library. jpayne@69: * This value will change in the subsequent releases of ICU jpayne@69: * @stable ICU 2.4 jpayne@69: */ jpayne@69: #define U_COPYRIGHT_STRING \ jpayne@69: " Copyright (C) 2016 and later: Unicode, Inc. and others. License & terms of use: http://www.unicode.org/copyright.html " jpayne@69: jpayne@69: /** The current ICU major version as an integer. jpayne@69: * This value will change in the subsequent releases of ICU jpayne@69: * @stable ICU 2.4 jpayne@69: */ jpayne@69: #define U_ICU_VERSION_MAJOR_NUM 67 jpayne@69: jpayne@69: /** The current ICU minor version as an integer. jpayne@69: * This value will change in the subsequent releases of ICU jpayne@69: * @stable ICU 2.6 jpayne@69: */ jpayne@69: #define U_ICU_VERSION_MINOR_NUM 1 jpayne@69: jpayne@69: /** The current ICU patchlevel version as an integer. jpayne@69: * This value will change in the subsequent releases of ICU jpayne@69: * @stable ICU 2.4 jpayne@69: */ jpayne@69: #define U_ICU_VERSION_PATCHLEVEL_NUM 0 jpayne@69: jpayne@69: /** The current ICU build level version as an integer. jpayne@69: * This value is for use by ICU clients. It defaults to 0. jpayne@69: * @stable ICU 4.0 jpayne@69: */ jpayne@69: #ifndef U_ICU_VERSION_BUILDLEVEL_NUM jpayne@69: #define U_ICU_VERSION_BUILDLEVEL_NUM 0 jpayne@69: #endif jpayne@69: jpayne@69: /** Glued version suffix for renamers jpayne@69: * This value will change in the subsequent releases of ICU jpayne@69: * @stable ICU 2.6 jpayne@69: */ jpayne@69: #define U_ICU_VERSION_SUFFIX _67 jpayne@69: jpayne@69: /** jpayne@69: * \def U_DEF2_ICU_ENTRY_POINT_RENAME jpayne@69: * @internal jpayne@69: */ jpayne@69: /** jpayne@69: * \def U_DEF_ICU_ENTRY_POINT_RENAME jpayne@69: * @internal jpayne@69: */ jpayne@69: /** Glued version suffix function for renamers jpayne@69: * This value will change in the subsequent releases of ICU. jpayne@69: * If a custom suffix (such as matching library suffixes) is desired, this can be modified. jpayne@69: * Note that if present, platform.h may contain an earlier definition of this macro. jpayne@69: * \def U_ICU_ENTRY_POINT_RENAME jpayne@69: * @stable ICU 4.2 jpayne@69: */ jpayne@69: /** jpayne@69: * Disable the version suffix. Use the custom suffix if exists. jpayne@69: * \def U_DISABLE_VERSION_SUFFIX jpayne@69: * @internal jpayne@69: */ jpayne@69: #ifndef U_DISABLE_VERSION_SUFFIX jpayne@69: #define U_DISABLE_VERSION_SUFFIX 0 jpayne@69: #endif jpayne@69: jpayne@69: #ifndef U_ICU_ENTRY_POINT_RENAME jpayne@69: #ifdef U_HAVE_LIB_SUFFIX jpayne@69: # if !U_DISABLE_VERSION_SUFFIX jpayne@69: # define U_DEF_ICU_ENTRY_POINT_RENAME(x,y,z) x ## y ## z jpayne@69: # define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y,z) U_DEF_ICU_ENTRY_POINT_RENAME(x,y,z) jpayne@69: # define U_ICU_ENTRY_POINT_RENAME(x) U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX,U_LIB_SUFFIX_C_NAME) jpayne@69: # else jpayne@69: # define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y jpayne@69: # define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y) jpayne@69: # define U_ICU_ENTRY_POINT_RENAME(x) U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_LIB_SUFFIX_C_NAME) jpayne@69: # endif jpayne@69: #else jpayne@69: # if !U_DISABLE_VERSION_SUFFIX jpayne@69: # define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y jpayne@69: # define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y) jpayne@69: # define U_ICU_ENTRY_POINT_RENAME(x) U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX) jpayne@69: # else jpayne@69: # define U_ICU_ENTRY_POINT_RENAME(x) x jpayne@69: # endif jpayne@69: #endif jpayne@69: #endif jpayne@69: jpayne@69: /** The current ICU library version as a dotted-decimal string. The patchlevel jpayne@69: * only appears in this string if it non-zero. jpayne@69: * This value will change in the subsequent releases of ICU jpayne@69: * @stable ICU 2.4 jpayne@69: */ jpayne@69: #define U_ICU_VERSION "67.1" jpayne@69: jpayne@69: /** jpayne@69: * The current ICU library major version number as a string, for library name suffixes. jpayne@69: * This value will change in subsequent releases of ICU. jpayne@69: * jpayne@69: * Until ICU 4.8, this was the combination of the single-digit major and minor ICU version numbers jpayne@69: * into one string without dots ("48"). jpayne@69: * Since ICU 49, it is the double-digit major ICU version number. jpayne@69: * See http://userguide.icu-project.org/design#TOC-Version-Numbers-in-ICU jpayne@69: * jpayne@69: * @stable ICU 2.6 jpayne@69: */ jpayne@69: #define U_ICU_VERSION_SHORT "67" jpayne@69: jpayne@69: #ifndef U_HIDE_INTERNAL_API jpayne@69: /** Data version in ICU4C. jpayne@69: * @internal ICU 4.4 Internal Use Only jpayne@69: **/ jpayne@69: #define U_ICU_DATA_VERSION "67.1" jpayne@69: #endif /* U_HIDE_INTERNAL_API */ jpayne@69: jpayne@69: /*=========================================================================== jpayne@69: * ICU collation framework version information jpayne@69: * Version info that can be obtained from a collator is affected by these jpayne@69: * numbers in a secret and magic way. Please use collator version as whole jpayne@69: *=========================================================================== jpayne@69: */ jpayne@69: jpayne@69: /** jpayne@69: * Collation runtime version (sort key generator, strcoll). jpayne@69: * If the version is different, sort keys for the same string could be different. jpayne@69: * This value may change in subsequent releases of ICU. jpayne@69: * @stable ICU 2.4 jpayne@69: */ jpayne@69: #define UCOL_RUNTIME_VERSION 9 jpayne@69: jpayne@69: /** jpayne@69: * Collation builder code version. jpayne@69: * When this is different, the same tailoring might result jpayne@69: * in assigning different collation elements to code points. jpayne@69: * This value may change in subsequent releases of ICU. jpayne@69: * @stable ICU 2.4 jpayne@69: */ jpayne@69: #define UCOL_BUILDER_VERSION 9 jpayne@69: jpayne@69: #ifndef U_HIDE_DEPRECATED_API jpayne@69: /** jpayne@69: * Constant 1. jpayne@69: * This was intended to be the version of collation tailorings, jpayne@69: * but instead the tailoring data carries a version number. jpayne@69: * @deprecated ICU 54 jpayne@69: */ jpayne@69: #define UCOL_TAILORINGS_VERSION 1 jpayne@69: #endif /* U_HIDE_DEPRECATED_API */ jpayne@69: jpayne@69: #endif