2001-06-21 22:51:27 +00:00
|
|
|
/*
|
|
|
|
*******************************************************************************
|
2009-01-29 00:17:44 +00:00
|
|
|
* Copyright (C) 2000-2009, International Business Machines
|
2001-06-21 22:51:27 +00:00
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
*******************************************************************************
|
|
|
|
*
|
|
|
|
* file name: uversion.h
|
|
|
|
* encoding: US-ASCII
|
|
|
|
* tab size: 8 (not used)
|
|
|
|
* indentation:4
|
|
|
|
*
|
|
|
|
* Created by: Vladimir Weinstein
|
|
|
|
*
|
|
|
|
* Contains all the important version numbers for ICU.
|
2001-07-26 18:03:44 +00:00
|
|
|
* Gets included by utypes.h and Windows .rc files
|
2001-06-21 22:51:27 +00:00
|
|
|
*/
|
|
|
|
|
2005-06-22 22:39:36 +00:00
|
|
|
/**
|
|
|
|
* \file
|
|
|
|
* \brief C API: Contains all the important version numbers for ICU.
|
|
|
|
*/
|
2001-06-21 22:51:27 +00:00
|
|
|
/*===========================================================================*/
|
|
|
|
/* Main ICU version information */
|
|
|
|
/*===========================================================================*/
|
|
|
|
|
2001-07-19 22:10:16 +00:00
|
|
|
#ifndef UVERSION_H
|
|
|
|
#define UVERSION_H
|
|
|
|
|
2005-01-06 22:49:44 +00:00
|
|
|
/**
|
|
|
|
* IMPORTANT: When updating version, the following things need to be done:
|
|
|
|
* source/common/unicode/uversion.h - this file: update major, minor,
|
|
|
|
* patchlevel, suffix, version, short version constants, namespace,
|
|
|
|
* and copyright
|
|
|
|
* source/common/common.vcproj - update 'Output file name' on the link tab so
|
|
|
|
* that it contains the new major/minor combination
|
|
|
|
* source/i18n/i18n.vcproj - same as for the common.vcproj
|
|
|
|
* source/layout/layout.vcproj - same as for the common.vcproj
|
2008-05-20 18:51:08 +00:00
|
|
|
* source/layoutex/layoutex.vcproj - same
|
2005-01-06 22:49:44 +00:00
|
|
|
* source/stubdata/stubdata.vcproj - same as for the common.vcproj
|
|
|
|
* source/io/io.vcproj - same as for the common.vcproj
|
|
|
|
* source/data/makedata.mak - change U_ICUDATA_NAME so that it contains
|
|
|
|
* the new major/minor combination
|
|
|
|
* source/tools/genren/genren.pl - use this script according to the README
|
|
|
|
* in that folder
|
|
|
|
*/
|
2001-07-25 20:23:40 +00:00
|
|
|
|
2001-10-25 15:38:40 +00:00
|
|
|
#include "unicode/umachine.h"
|
2001-10-25 04:47:55 +00:00
|
|
|
|
2002-12-17 23:37:09 +00:00
|
|
|
/** The standard copyright notice that gets compiled into each library.
|
|
|
|
* This value will change in the subsequent releases of ICU
|
2004-03-26 19:42:04 +00:00
|
|
|
* @stable ICU 2.4
|
2002-12-17 23:37:09 +00:00
|
|
|
*/
|
2001-07-26 18:03:44 +00:00
|
|
|
#define U_COPYRIGHT_STRING \
|
2009-01-29 00:55:53 +00:00
|
|
|
" Copyright (C) 2009, International Business Machines Corporation and others. All Rights Reserved. "
|
2001-07-26 18:03:44 +00:00
|
|
|
|
2002-12-18 23:41:01 +00:00
|
|
|
/** Maximum length of the copyright string.
|
2004-03-26 19:42:04 +00:00
|
|
|
* @stable ICU 2.4
|
2002-12-18 23:41:01 +00:00
|
|
|
*/
|
2001-07-26 18:03:44 +00:00
|
|
|
#define U_COPYRIGHT_STRING_LENGTH 128
|
2001-07-25 20:23:40 +00:00
|
|
|
|
2002-12-17 23:37:09 +00:00
|
|
|
/** The current ICU major version as an integer.
|
|
|
|
* This value will change in the subsequent releases of ICU
|
2004-03-26 19:42:04 +00:00
|
|
|
* @stable ICU 2.4
|
2002-12-17 23:37:09 +00:00
|
|
|
*/
|
2008-05-19 17:28:22 +00:00
|
|
|
#define U_ICU_VERSION_MAJOR_NUM 4
|
2001-06-21 22:51:27 +00:00
|
|
|
|
2002-12-17 23:37:09 +00:00
|
|
|
/** The current ICU minor version as an integer.
|
|
|
|
* This value will change in the subsequent releases of ICU
|
2004-11-02 07:28:07 +00:00
|
|
|
* @stable ICU 2.6
|
2002-12-17 23:37:09 +00:00
|
|
|
*/
|
2009-06-29 17:53:41 +00:00
|
|
|
#define U_ICU_VERSION_MINOR_NUM 3
|
2001-06-21 22:51:27 +00:00
|
|
|
|
2002-12-17 23:37:09 +00:00
|
|
|
/** The current ICU patchlevel version as an integer.
|
|
|
|
* This value will change in the subsequent releases of ICU
|
2004-03-26 19:42:04 +00:00
|
|
|
* @stable ICU 2.4
|
2002-12-17 23:37:09 +00:00
|
|
|
*/
|
2009-07-24 19:52:23 +00:00
|
|
|
#define U_ICU_VERSION_PATCHLEVEL_NUM 2
|
2001-06-21 22:51:27 +00:00
|
|
|
|
2007-09-27 00:05:18 +00:00
|
|
|
/** The current ICU build level version as an integer.
|
|
|
|
* This value is for use by ICU clients. It defaults to 0.
|
2009-03-19 04:03:31 +00:00
|
|
|
* @stable ICU 4.0
|
2007-09-27 00:05:18 +00:00
|
|
|
*/
|
|
|
|
#ifndef U_ICU_VERSION_BUILDLEVEL_NUM
|
|
|
|
#define U_ICU_VERSION_BUILDLEVEL_NUM 0
|
|
|
|
#endif
|
|
|
|
|
2002-12-17 23:37:09 +00:00
|
|
|
/** Glued version suffix for renamers
|
|
|
|
* This value will change in the subsequent releases of ICU
|
2004-11-02 07:28:07 +00:00
|
|
|
* @stable ICU 2.6
|
2002-12-17 23:37:09 +00:00
|
|
|
*/
|
2009-06-29 17:53:41 +00:00
|
|
|
#define U_ICU_VERSION_SUFFIX _4_3
|
2001-07-19 22:10:16 +00:00
|
|
|
|
2001-06-21 22:51:27 +00:00
|
|
|
/** The current ICU library version as a dotted-decimal string. The patchlevel
|
2002-12-17 23:37:09 +00:00
|
|
|
* only appears in this string if it non-zero.
|
|
|
|
* This value will change in the subsequent releases of ICU
|
2004-03-26 19:42:04 +00:00
|
|
|
* @stable ICU 2.4
|
2002-12-17 23:37:09 +00:00
|
|
|
*/
|
2009-07-24 19:52:23 +00:00
|
|
|
#define U_ICU_VERSION "4.3.2"
|
2001-06-21 22:51:27 +00:00
|
|
|
|
2002-12-17 23:37:09 +00:00
|
|
|
/** The current ICU library major/minor version as a string without dots, for library name suffixes.
|
|
|
|
* This value will change in the subsequent releases of ICU
|
2004-11-02 07:28:07 +00:00
|
|
|
* @stable ICU 2.6
|
2002-12-17 23:37:09 +00:00
|
|
|
*/
|
2009-06-29 17:53:41 +00:00
|
|
|
#define U_ICU_VERSION_SHORT "43"
|
2001-06-21 22:51:27 +00:00
|
|
|
|
2002-12-17 23:37:09 +00:00
|
|
|
/** An ICU version consists of up to 4 numbers from 0..255.
|
2004-03-26 19:42:04 +00:00
|
|
|
* @stable ICU 2.4
|
2002-12-17 23:37:09 +00:00
|
|
|
*/
|
2001-06-21 22:51:27 +00:00
|
|
|
#define U_MAX_VERSION_LENGTH 4
|
|
|
|
|
2002-12-17 23:37:09 +00:00
|
|
|
/** In a string, ICU version fields are delimited by dots.
|
2004-03-26 19:42:04 +00:00
|
|
|
* @stable ICU 2.4
|
2002-12-17 23:37:09 +00:00
|
|
|
*/
|
2001-06-21 22:51:27 +00:00
|
|
|
#define U_VERSION_DELIMITER '.'
|
|
|
|
|
2002-12-17 23:37:09 +00:00
|
|
|
/** The maximum length of an ICU version string.
|
2004-03-26 19:42:04 +00:00
|
|
|
* @stable ICU 2.4
|
2002-12-17 23:37:09 +00:00
|
|
|
*/
|
2001-06-21 22:51:27 +00:00
|
|
|
#define U_MAX_VERSION_STRING_LENGTH 20
|
|
|
|
|
2002-12-17 23:37:09 +00:00
|
|
|
/** The binary form of a version on ICU APIs is an array of 4 uint8_t.
|
2009-06-23 18:04:40 +00:00
|
|
|
* To compare two versions, use memcmp(v1,v2,sizeof(UVersionInfo)).
|
2004-03-26 19:42:04 +00:00
|
|
|
* @stable ICU 2.4
|
2002-12-17 23:37:09 +00:00
|
|
|
*/
|
2001-06-21 22:51:27 +00:00
|
|
|
typedef uint8_t UVersionInfo[U_MAX_VERSION_LENGTH];
|
|
|
|
|
2009-08-13 17:21:33 +00:00
|
|
|
/** Data version in ICU4C.
|
|
|
|
* @draft ICU 4.4
|
|
|
|
*/
|
|
|
|
#define U_ICU_DATA_VERSION "4.3.2"
|
|
|
|
|
2006-10-23 21:17:34 +00:00
|
|
|
/*===========================================================================*/
|
|
|
|
/* C++ namespace if supported. Versioned unless versioning is disabled. */
|
|
|
|
/*===========================================================================*/
|
2006-08-05 05:47:05 +00:00
|
|
|
|
2006-10-23 21:17:34 +00:00
|
|
|
/**
|
|
|
|
* \def U_NAMESPACE_BEGIN
|
|
|
|
* This is used to begin a declaration of a public ICU C++ API.
|
|
|
|
* If the compiler doesn't support namespaces, this does nothing.
|
|
|
|
* @stable ICU 2.4
|
|
|
|
*/
|
2006-08-05 05:47:05 +00:00
|
|
|
|
2006-10-23 21:17:34 +00:00
|
|
|
/**
|
|
|
|
* \def U_NAMESPACE_END
|
|
|
|
* This is used to end a declaration of a public ICU C++ API
|
|
|
|
* If the compiler doesn't support namespaces, this does nothing.
|
|
|
|
* @stable ICU 2.4
|
|
|
|
*/
|
2001-10-08 23:26:58 +00:00
|
|
|
|
2006-10-23 21:17:34 +00:00
|
|
|
/**
|
|
|
|
* \def U_NAMESPACE_USE
|
|
|
|
* This is used to specify that the rest of the code uses the
|
|
|
|
* public ICU C++ API namespace.
|
|
|
|
* If the compiler doesn't support namespaces, this does nothing.
|
|
|
|
* @stable ICU 2.4
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \def U_NAMESPACE_QUALIFIER
|
|
|
|
* This is used to qualify that a function or class is part of
|
|
|
|
* the public ICU C++ API namespace.
|
|
|
|
* If the compiler doesn't support namespaces, this does nothing.
|
|
|
|
* @stable ICU 2.4
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Define namespace symbols if the compiler supports it. */
|
|
|
|
#if U_HAVE_NAMESPACE && defined(XP_CPLUSPLUS)
|
|
|
|
# if U_DISABLE_RENAMING
|
|
|
|
# define U_ICU_NAMESPACE icu
|
|
|
|
namespace U_ICU_NAMESPACE { }
|
|
|
|
# else
|
2009-06-29 17:53:41 +00:00
|
|
|
# define U_ICU_NAMESPACE icu_4_3
|
2006-10-23 21:17:34 +00:00
|
|
|
namespace U_ICU_NAMESPACE { }
|
|
|
|
namespace icu = U_ICU_NAMESPACE;
|
|
|
|
# endif
|
|
|
|
|
|
|
|
# define U_NAMESPACE_BEGIN namespace U_ICU_NAMESPACE {
|
|
|
|
# define U_NAMESPACE_END }
|
|
|
|
# define U_NAMESPACE_USE using namespace U_ICU_NAMESPACE;
|
|
|
|
# define U_NAMESPACE_QUALIFIER U_ICU_NAMESPACE::
|
|
|
|
|
|
|
|
# ifndef U_USING_ICU_NAMESPACE
|
|
|
|
# define U_USING_ICU_NAMESPACE 1
|
|
|
|
# endif
|
|
|
|
# if U_USING_ICU_NAMESPACE
|
|
|
|
U_NAMESPACE_USE
|
|
|
|
# endif
|
|
|
|
#else
|
|
|
|
# define U_NAMESPACE_BEGIN
|
|
|
|
# define U_NAMESPACE_END
|
|
|
|
# define U_NAMESPACE_USE
|
|
|
|
# define U_NAMESPACE_QUALIFIER
|
2006-08-05 05:47:05 +00:00
|
|
|
#endif
|
|
|
|
|
2001-10-08 23:26:58 +00:00
|
|
|
|
2001-06-21 22:51:27 +00:00
|
|
|
/*===========================================================================*/
|
|
|
|
/* General version helper functions. Definitions in putil.c */
|
|
|
|
/*===========================================================================*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Parse a string with dotted-decimal version information and
|
|
|
|
* fill in a UVersionInfo structure with the result.
|
|
|
|
* Definition of this function lives in putil.c
|
|
|
|
*
|
|
|
|
* @param versionArray The destination structure for the version information.
|
|
|
|
* @param versionString A string with dotted-decimal version information,
|
|
|
|
* with up to four non-negative number fields with
|
|
|
|
* values of up to 255 each.
|
2004-03-26 19:42:04 +00:00
|
|
|
* @stable ICU 2.4
|
2001-06-21 22:51:27 +00:00
|
|
|
*/
|
2004-03-26 19:42:04 +00:00
|
|
|
U_STABLE void U_EXPORT2
|
2001-06-21 22:51:27 +00:00
|
|
|
u_versionFromString(UVersionInfo versionArray, const char *versionString);
|
|
|
|
|
2009-01-29 00:17:44 +00:00
|
|
|
/**
|
|
|
|
* Parse a Unicode string with dotted-decimal version information and
|
|
|
|
* fill in a UVersionInfo structure with the result.
|
|
|
|
* Definition of this function lives in putil.c
|
|
|
|
*
|
|
|
|
* @param versionArray The destination structure for the version information.
|
|
|
|
* @param versionString A Unicode string with dotted-decimal version
|
|
|
|
* information, with up to four non-negative number
|
|
|
|
* fields with values of up to 255 each.
|
|
|
|
* @draft ICU 4.2
|
|
|
|
*/
|
|
|
|
U_STABLE void U_EXPORT2
|
|
|
|
u_versionFromUString(UVersionInfo versionArray, const UChar *versionString);
|
|
|
|
|
2001-06-21 22:51:27 +00:00
|
|
|
/**
|
|
|
|
* Write a string with dotted-decimal version information according
|
|
|
|
* to the input UVersionInfo.
|
|
|
|
* Definition of this function lives in putil.c
|
|
|
|
*
|
|
|
|
* @param versionArray The version information to be written as a string.
|
|
|
|
* @param versionString A string buffer that will be filled in with
|
|
|
|
* a string corresponding to the numeric version
|
|
|
|
* information in versionArray.
|
|
|
|
* The buffer size must be at least U_MAX_VERSION_STRING_LENGTH.
|
2004-03-26 19:42:04 +00:00
|
|
|
* @stable ICU 2.4
|
2001-06-21 22:51:27 +00:00
|
|
|
*/
|
2004-03-26 19:42:04 +00:00
|
|
|
U_STABLE void U_EXPORT2
|
2001-06-21 22:51:27 +00:00
|
|
|
u_versionToString(UVersionInfo versionArray, char *versionString);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the ICU release version. The version array stores the version information
|
|
|
|
* for ICU. For example, release "1.3.31.2" is then represented as 0x01031F02.
|
|
|
|
* Definition of this function lives in putil.c
|
|
|
|
*
|
|
|
|
* @param versionArray the version # information, the result will be filled in
|
2002-12-04 23:39:56 +00:00
|
|
|
* @stable ICU 2.0
|
2001-06-21 22:51:27 +00:00
|
|
|
*/
|
2004-03-26 19:42:04 +00:00
|
|
|
U_STABLE void U_EXPORT2
|
2001-06-21 22:51:27 +00:00
|
|
|
u_getVersion(UVersionInfo versionArray);
|
|
|
|
|
2009-08-13 17:21:33 +00:00
|
|
|
/* TODO: Add description */
|
|
|
|
U_CAPI int32_t U_EXPORT2
|
|
|
|
u_versionCompare(UVersionInfo version1, UVersionInfo version2);
|
|
|
|
|
|
|
|
/* TODO: Add description */
|
|
|
|
U_CAPI void U_EXPORT2
|
|
|
|
u_versionCopy(UVersionInfo versionDest, UVersionInfo versionSrc);
|
|
|
|
|
2001-06-21 22:51:27 +00:00
|
|
|
|
2002-12-17 23:37:09 +00:00
|
|
|
/*===========================================================================
|
|
|
|
* ICU collation framework version information
|
|
|
|
* Version info that can be obtained from a collator is affected by these
|
|
|
|
* numbers in a secret and magic way. Please use collator version as whole
|
|
|
|
*===========================================================================
|
|
|
|
*/
|
2001-06-21 22:51:27 +00:00
|
|
|
|
2002-12-17 23:37:09 +00:00
|
|
|
/** Collation runtime version (sort key generator, strcoll).
|
|
|
|
* If the version is different, sortkeys for the same string could be different
|
|
|
|
* version 2 was in ICU 1.8.1. changed is: compression intervals, French secondary
|
|
|
|
* compression, generating quad level always when strength is quad or more
|
|
|
|
* version 4 - ICU 2.2 - tracking UCA changes, ignore completely ignorables
|
|
|
|
* in contractions, ignore primary ignorables after shifted
|
2004-01-16 07:09:34 +00:00
|
|
|
* version 5 - ICU 2.8 - changed implicit generation code
|
2005-06-24 23:09:31 +00:00
|
|
|
* version 6 - ICU 3.4 - with the UCA 4.1, Thai tag is no longer generated or used
|
2002-12-17 23:37:09 +00:00
|
|
|
* This value may change in the subsequent releases of ICU
|
2004-03-26 19:42:04 +00:00
|
|
|
* @stable ICU 2.4
|
2002-12-17 23:37:09 +00:00
|
|
|
*/
|
2005-06-24 23:09:31 +00:00
|
|
|
#define UCOL_RUNTIME_VERSION 6
|
2001-06-21 22:51:27 +00:00
|
|
|
|
2002-12-17 23:37:09 +00:00
|
|
|
/** Builder code version. When this is different, same tailoring might result
|
|
|
|
* in assigning different collation elements to code points
|
|
|
|
* version 2 was in ICU 1.8.1. added support for prefixes, tweaked canonical
|
|
|
|
* closure. However, the tailorings should probably get same CEs assigned
|
|
|
|
* version 5 - ICU 2.2 - fixed some bugs, renamed some indirect values.
|
2004-01-16 07:09:34 +00:00
|
|
|
* version 6 - ICU 2.8 - fixed bug in builder that allowed 0xFF in primary values
|
2005-06-24 23:09:31 +00:00
|
|
|
* version 7 - ICU 3.4 - with the UCA 4.1 Thai tag is no longer processed, complete ignorables
|
|
|
|
* now break contractions
|
2002-12-17 23:37:09 +00:00
|
|
|
* Backward compatible with the old rules.
|
|
|
|
* This value may change in the subsequent releases of ICU
|
2004-03-26 19:42:04 +00:00
|
|
|
* @stable ICU 2.4
|
2002-12-17 23:37:09 +00:00
|
|
|
*/
|
2005-06-24 23:09:31 +00:00
|
|
|
#define UCOL_BUILDER_VERSION 7
|
2001-06-21 22:51:27 +00:00
|
|
|
|
2002-12-17 23:37:09 +00:00
|
|
|
/** This is the version of the tailorings
|
|
|
|
* This value may change in the subsequent releases of ICU
|
2004-03-26 19:42:04 +00:00
|
|
|
* @stable ICU 2.4
|
2002-12-17 23:37:09 +00:00
|
|
|
*/
|
2001-06-21 22:51:27 +00:00
|
|
|
#define UCOL_TAILORINGS_VERSION 1
|
|
|
|
|
2001-07-19 22:10:16 +00:00
|
|
|
#endif
|