uversion.h

Go to the documentation of this file.
00001 /*
00002 *******************************************************************************
00003 *   Copyright (C) 2000-2008, International Business Machines
00004 *   Corporation and others.  All Rights Reserved.
00005 *******************************************************************************
00006 *
00007 *   file name:  uversion.h
00008 *   encoding:   US-ASCII
00009 *   tab size:   8 (not used)
00010 *   indentation:4
00011 *
00012 *   Created by: Vladimir Weinstein
00013 *
00014 *  Contains all the important version numbers for ICU. 
00015 *  Gets included by utypes.h and Windows .rc files
00016 */
00017 
00022 /*===========================================================================*/
00023 /* Main ICU version information                                              */
00024 /*===========================================================================*/
00025 
00026 #ifndef UVERSION_H
00027 #define UVERSION_H
00028 
00047 #include "unicode/umachine.h"
00048 
00053 #define U_COPYRIGHT_STRING \
00054   " Copyright (C) 2008, International Business Machines Corporation and others. All Rights Reserved. "
00055 
00059 #define U_COPYRIGHT_STRING_LENGTH  128
00060 
00065 #define U_ICU_VERSION_MAJOR_NUM 4
00066 
00071 #define U_ICU_VERSION_MINOR_NUM 0
00072 
00077 #define U_ICU_VERSION_PATCHLEVEL_NUM 1
00078 
00083 #ifndef U_ICU_VERSION_BUILDLEVEL_NUM
00084 #define U_ICU_VERSION_BUILDLEVEL_NUM 0
00085 #endif
00086 
00091 #define U_ICU_VERSION_SUFFIX _4_0
00092 
00098 #define U_ICU_VERSION "4.0.1"
00099 
00104 #define U_ICU_VERSION_SHORT "40"
00105 
00109 #define U_MAX_VERSION_LENGTH 4
00110 
00114 #define U_VERSION_DELIMITER '.'
00115 
00119 #define U_MAX_VERSION_STRING_LENGTH 20
00120 
00124 typedef uint8_t UVersionInfo[U_MAX_VERSION_LENGTH];
00125 
00126 /*===========================================================================*/
00127 /* C++ namespace if supported. Versioned unless versioning is disabled.      */
00128 /*===========================================================================*/
00129 
00160 /* Define namespace symbols if the compiler supports it. */
00161 #if U_HAVE_NAMESPACE && defined(XP_CPLUSPLUS)
00162 #   if U_DISABLE_RENAMING
00163 #       define U_ICU_NAMESPACE icu
00164         namespace U_ICU_NAMESPACE { }
00165 #   else
00166 #       define U_ICU_NAMESPACE icu_4_0
00167         namespace U_ICU_NAMESPACE { }
00168         namespace icu = U_ICU_NAMESPACE;
00169 #   endif
00170 
00171 #   define U_NAMESPACE_BEGIN namespace U_ICU_NAMESPACE {
00172 #   define U_NAMESPACE_END  }
00173 #   define U_NAMESPACE_USE using namespace U_ICU_NAMESPACE;
00174 #   define U_NAMESPACE_QUALIFIER U_ICU_NAMESPACE::
00175 
00176 #   ifndef U_USING_ICU_NAMESPACE
00177 #       define U_USING_ICU_NAMESPACE 1
00178 #   endif
00179 #   if U_USING_ICU_NAMESPACE
00180         U_NAMESPACE_USE
00181 #   endif
00182 #else
00183 #   define U_NAMESPACE_BEGIN
00184 #   define U_NAMESPACE_END
00185 #   define U_NAMESPACE_USE
00186 #   define U_NAMESPACE_QUALIFIER
00187 #endif
00188 
00189 
00190 /*===========================================================================*/
00191 /* General version helper functions. Definitions in putil.c                  */
00192 /*===========================================================================*/
00193 
00205 U_STABLE void U_EXPORT2
00206 u_versionFromString(UVersionInfo versionArray, const char *versionString);
00207 
00220 U_STABLE void U_EXPORT2
00221 u_versionToString(UVersionInfo versionArray, char *versionString);
00222 
00231 U_STABLE void U_EXPORT2
00232 u_getVersion(UVersionInfo versionArray);
00233 
00234 
00235 /*===========================================================================
00236  * ICU collation framework version information                               
00237  * Version info that can be obtained from a collator is affected by these    
00238  * numbers in a secret and magic way. Please use collator version as whole
00239  *===========================================================================
00240  */
00241 
00253 #define UCOL_RUNTIME_VERSION 6
00254 
00267 #define UCOL_BUILDER_VERSION 7
00268 
00273 #define UCOL_TAILORINGS_VERSION 1
00274 
00275 #endif

Generated on Thu Jan 15 11:25:50 2009 for ICU 4.0.1 by  doxygen 1.4.7