OLD | NEW |
1 /* | 1 /* |
2 ********************************************************************** | 2 ********************************************************************** |
3 * Copyright (C) 2002-2015, International Business Machines | 3 * Copyright (C) 2002-2015, International Business Machines |
4 * Corporation and others. All Rights Reserved. | 4 * Corporation and others. All Rights Reserved. |
5 ********************************************************************** | 5 ********************************************************************** |
6 * file name: ucnv_u32.c | 6 * file name: ucnv_u32.c |
7 * encoding: US-ASCII | 7 * encoding: US-ASCII |
8 * tab size: 8 (not used) | 8 * tab size: 8 (not used) |
9 * indentation:4 | 9 * indentation:4 |
10 * | 10 * |
11 * created on: 2002jul01 | 11 * created on: 2002jul01 |
12 * created by: Markus W. Scherer | 12 * created by: Markus W. Scherer |
13 * | 13 * |
14 * UTF-32 converter implementation. Used to be in ucnv_utf.c. | 14 * UTF-32 converter implementation. Used to be in ucnv_utf.c. |
15 */ | 15 */ |
16 | 16 |
17 #include "unicode/utypes.h" | 17 #include "unicode/utypes.h" |
18 | 18 |
19 #if !UCONFIG_NO_CONVERSION && !UCONFIG_ONLY_HTML_CONVERSION | 19 #if !UCONFIG_NO_CONVERSION |
20 | 20 |
21 #include "unicode/ucnv.h" | 21 #include "unicode/ucnv.h" |
22 #include "unicode/utf.h" | 22 #include "unicode/utf.h" |
23 #include "ucnv_bld.h" | 23 #include "ucnv_bld.h" |
24 #include "ucnv_cnv.h" | 24 #include "ucnv_cnv.h" |
25 #include "cmemory.h" | 25 #include "cmemory.h" |
26 | 26 |
27 #define MAXIMUM_UCS2 0x0000FFFF | 27 #define MAXIMUM_UCS2 0x0000FFFF |
28 #define MAXIMUM_UTF 0x0010FFFF | 28 #define MAXIMUM_UTF 0x0010FFFF |
29 #define HALF_SHIFT 10 | 29 #define HALF_SHIFT 10 |
(...skipping 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1231 FALSE, FALSE, | 1231 FALSE, FALSE, |
1232 0, | 1232 0, |
1233 0, | 1233 0, |
1234 { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */ | 1234 { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */ |
1235 }; | 1235 }; |
1236 | 1236 |
1237 const UConverterSharedData _UTF32Data = | 1237 const UConverterSharedData _UTF32Data = |
1238 UCNV_IMMUTABLE_SHARED_DATA_INITIALIZER(&_UTF32StaticData, &_UTF32Impl); | 1238 UCNV_IMMUTABLE_SHARED_DATA_INITIALIZER(&_UTF32StaticData, &_UTF32Impl); |
1239 | 1239 |
1240 #endif | 1240 #endif |
OLD | NEW |