ICU 4.8.1.1  4.8.1.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
uversion.h
Go to the documentation of this file.
1 /*
2 *******************************************************************************
3 * Copyright (C) 2000-2010, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 *******************************************************************************
6 *
7 * file name: uversion.h
8 * encoding: US-ASCII
9 * tab size: 8 (not used)
10 * indentation:4
11 *
12 * Created by: Vladimir Weinstein
13 *
14 * Gets included by utypes.h and Windows .rc files
15 */
16 
21 /*===========================================================================*/
22 /* Main ICU version information */
23 /*===========================================================================*/
24 
25 #ifndef UVERSION_H
26 #define UVERSION_H
27 
28 #include "unicode/umachine.h"
29 
30 /* Actual version info lives in uvernum.h */
31 #include "unicode/uvernum.h"
32 
36 #define U_COPYRIGHT_STRING_LENGTH 128
37 
41 #define U_MAX_VERSION_LENGTH 4
42 
46 #define U_VERSION_DELIMITER '.'
47 
51 #define U_MAX_VERSION_STRING_LENGTH 20
52 
58 
59 /*===========================================================================*/
60 /* C++ namespace if supported. Versioned unless versioning is disabled. */
61 /*===========================================================================*/
62 
101 /* Define namespace symbols if the compiler supports it. */
102 #ifdef XP_CPLUSPLUS
103 #if U_HAVE_NAMESPACE
104 # if U_DISABLE_RENAMING
105 # define U_ICU_NAMESPACE icu
106  namespace U_ICU_NAMESPACE { }
107 # else
108 # define U_ICU_NAMESPACE U_ICU_ENTRY_POINT_RENAME(icu)
109  namespace U_ICU_NAMESPACE { }
110  namespace icu = U_ICU_NAMESPACE;
111 # endif
112 
113 # define U_NAMESPACE_BEGIN extern "C++" { namespace U_ICU_NAMESPACE {
114 # define U_NAMESPACE_END } }
115 # define U_NAMESPACE_USE using namespace U_ICU_NAMESPACE;
116 # define U_NAMESPACE_QUALIFIER U_ICU_NAMESPACE::
117 
118 # ifndef U_USING_ICU_NAMESPACE
119 # define U_USING_ICU_NAMESPACE 1
120 # endif
121 # if U_USING_ICU_NAMESPACE
123 # endif
124 #else
125 # define U_NAMESPACE_BEGIN extern "C++" {
126 # define U_NAMESPACE_END }
127 # define U_NAMESPACE_USE
128 # define U_NAMESPACE_QUALIFIER
129 #endif
130 #else
131 # define U_NAMESPACE_BEGIN
132 # define U_NAMESPACE_END
133 # define U_NAMESPACE_USE
134 # define U_NAMESPACE_QUALIFIER
135 #endif
136 
137 /*===========================================================================*/
138 /* General version helper functions. Definitions in putil.c */
139 /*===========================================================================*/
140 
152 U_STABLE void U_EXPORT2
153 u_versionFromString(UVersionInfo versionArray, const char *versionString);
154 
166 U_STABLE void U_EXPORT2
167 u_versionFromUString(UVersionInfo versionArray, const UChar *versionString);
168 
169 
182 U_STABLE void U_EXPORT2
183 u_versionToString(UVersionInfo versionArray, char *versionString);
184 
193 U_STABLE void U_EXPORT2
194 u_getVersion(UVersionInfo versionArray);
195 #endif