Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(318)

Side by Side Diff: source/common/unicode/umachine.h

Issue 845603002: Update ICU to 54.1 step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: remove unusued directories Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/common/unicode/uloc.h ('k') | source/common/unicode/uniset.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 ****************************************************************************** 2 ******************************************************************************
3 * 3 *
4 * Copyright (C) 1999-2012, International Business Machines 4 * Copyright (C) 1999-2014, International Business Machines
5 * Corporation and others. All Rights Reserved. 5 * Corporation and others. All Rights Reserved.
6 * 6 *
7 ****************************************************************************** 7 ******************************************************************************
8 * file name: umachine.h 8 * file name: umachine.h
9 * encoding: US-ASCII 9 * encoding: US-ASCII
10 * tab size: 8 (not used) 10 * tab size: 8 (not used)
11 * indentation:4 11 * indentation:4
12 * 12 *
13 * created on: 1999sep13 13 * created on: 1999sep13
14 * created by: Markus W. Scherer 14 * created by: Markus W. Scherer
15 * 15 *
16 * This file defines basic types and constants for utf.h to be 16 * This file defines basic types and constants for ICU to be
17 * platform-independent. umachine.h and utf.h are included into 17 * platform-independent. umachine.h and utf.h are included into
18 * utypes.h to provide all the general definitions for ICU. 18 * utypes.h to provide all the general definitions for ICU.
19 * All of these definitions used to be in utypes.h before 19 * All of these definitions used to be in utypes.h before
20 * the UTF-handling macros made this unmaintainable. 20 * the UTF-handling macros made this unmaintainable.
21 */ 21 */
22 22
23 #ifndef __UMACHINE_H__ 23 #ifndef __UMACHINE_H__
24 #define __UMACHINE_H__ 24 #define __UMACHINE_H__
25 25
26 26
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 #define U_STABLE U_CAPI 109 #define U_STABLE U_CAPI
110 /** This is used to declare a function as a draft public ICU C API */ 110 /** This is used to declare a function as a draft public ICU C API */
111 #define U_DRAFT U_CAPI 111 #define U_DRAFT U_CAPI
112 /** This is used to declare a function as a deprecated public ICU C API */ 112 /** This is used to declare a function as a deprecated public ICU C API */
113 #define U_DEPRECATED U_CAPI U_ATTRIBUTE_DEPRECATED 113 #define U_DEPRECATED U_CAPI U_ATTRIBUTE_DEPRECATED
114 /** This is used to declare a function as an obsolete public ICU C API */ 114 /** This is used to declare a function as an obsolete public ICU C API */
115 #define U_OBSOLETE U_CAPI 115 #define U_OBSOLETE U_CAPI
116 /** This is used to declare a function as an internal ICU C API */ 116 /** This is used to declare a function as an internal ICU C API */
117 #define U_INTERNAL U_CAPI 117 #define U_INTERNAL U_CAPI
118 118
119 /**
120 * \def U_OVERRIDE
121 * Defined to the C++11 "override" keyword if available.
122 * Denotes a class or member which is an override of the base class.
123 * May result in an error if it applied to something not an override.
124 * @internal
125 */
126
127 /**
128 * \def U_FINAL
129 * Defined to the C++11 "final" keyword if available.
130 * Denotes a class or member which may not be overridden in subclasses.
131 * May result in an error if subclasses attempt to override.
132 * @internal
133 */
134
135 #if defined(__cplusplus) && __cplusplus>=201103L
136 /* C++11 */
137 #ifndef U_OVERRIDE
138 #define U_OVERRIDE override
139 #endif
140 #ifndef U_FINAL
141 #define U_FINAL final
142 #endif
143 #else
144 /* not C++11 - define to nothing */
145 #ifndef U_OVERRIDE
146 #define U_OVERRIDE
147 #endif
148 #ifndef U_FINAL
149 #define U_FINAL
150 #endif
151 #endif
152
119 /*==========================================================================*/ 153 /*==========================================================================*/
120 /* limits for int32_t etc., like in POSIX inttypes.h */ 154 /* limits for int32_t etc., like in POSIX inttypes.h */
121 /*==========================================================================*/ 155 /*==========================================================================*/
122 156
123 #ifndef INT8_MIN 157 #ifndef INT8_MIN
124 /** The smallest value an 8 bit signed integer can hold @stable ICU 2.0 */ 158 /** The smallest value an 8 bit signed integer can hold @stable ICU 2.0 */
125 # define INT8_MIN ((int8_t)(-128)) 159 # define INT8_MIN ((int8_t)(-128))
126 #endif 160 #endif
127 #ifndef INT16_MIN 161 #ifndef INT16_MIN
128 /** The smallest value a 16 bit signed integer can hold @stable ICU 2.0 */ 162 /** The smallest value a 16 bit signed integer can hold @stable ICU 2.0 */
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 * 347 *
314 * @return -1 348 * @return -1
315 * @see UChar32 349 * @see UChar32
316 * @stable ICU 2.4 350 * @stable ICU 2.4
317 */ 351 */
318 #define U_SENTINEL (-1) 352 #define U_SENTINEL (-1)
319 353
320 #include "unicode/urename.h" 354 #include "unicode/urename.h"
321 355
322 #endif 356 #endif
OLDNEW
« no previous file with comments | « source/common/unicode/uloc.h ('k') | source/common/unicode/uniset.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698