- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- Search for |

- File List
- Globals

# uversion.h

Go to the documentation of this file.

    00001 /*
    00002 *******************************************************************************
    00003 *   Copyright (C) 2000-2009, 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) 2009, 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 2
    00072
    00077 #define U_ICU_VERSION_PATCHLEVEL_NUM 0
    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_2
    00092
    00098 #define U_ICU_VERSION "4.2"
    00099
    00104 #define U_ICU_VERSION_SHORT "42"
    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_2
    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
    00219 U_STABLE void U_EXPORT2
    00220 u_versionFromUString(UVersionInfo versionArray, const UChar *versionString);
    00221
    00234 U_STABLE void U_EXPORT2
    00235 u_versionToString(UVersionInfo versionArray, char *versionString);
    00236
    00245 U_STABLE void U_EXPORT2
    00246 u_getVersion(UVersionInfo versionArray);
    00247
    00258 U_STABLE int32_t U_EXPORT2
    00259 u_compareVersions(UVersionInfo v1, UVersionInfo v2);
    00260
    00261
    00262 /*===========================================================================
    00263  * ICU collation framework version information
    00264  * Version info that can be obtained from a collator is affected by these
    00265  * numbers in a secret and magic way. Please use collator version as whole
    00266  *===========================================================================
    00267  */
    00268
    00280 #define UCOL_RUNTIME_VERSION 6
    00281
    00294 #define UCOL_BUILDER_VERSION 7
    00295
    00300 #define UCOL_TAILORINGS_VERSION 1
    00301
    00302 #endif