OLD | NEW |
1 /* | 1 /* |
2 ********************************************************************** | 2 ********************************************************************** |
3 * Copyright (C) 1999-2011, International Business Machines | 3 * Copyright (C) 1999-2011, International Business Machines |
4 * Corporation and others. All Rights Reserved. | 4 * Corporation and others. All Rights Reserved. |
5 ********************************************************************** | 5 ********************************************************************** |
6 * | 6 * |
7 * ucnv_cnv.h: | 7 * ucnv_cnv.h: |
8 * Definitions for converter implementations. | 8 * Definitions for converter implementations. |
9 * | 9 * |
10 * Modification History: | 10 * Modification History: |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 UConverterSafeClone safeClone; | 249 UConverterSafeClone safeClone; |
250 UConverterGetUnicodeSet getUnicodeSet; | 250 UConverterGetUnicodeSet getUnicodeSet; |
251 | 251 |
252 UConverterConvert toUTF8; | 252 UConverterConvert toUTF8; |
253 UConverterConvert fromUTF8; | 253 UConverterConvert fromUTF8; |
254 }; | 254 }; |
255 | 255 |
256 extern const UConverterSharedData | 256 extern const UConverterSharedData |
257 _MBCSData, _Latin1Data, | 257 _MBCSData, _Latin1Data, |
258 _UTF8Data, _UTF16BEData, _UTF16LEData, _UTF32BEData, _UTF32LEData, | 258 _UTF8Data, _UTF16BEData, _UTF16LEData, _UTF32BEData, _UTF32LEData, |
259 _ISO2022Data, | 259 _ISO2022Data, |
| 260 #if !UCONFIG_NO_NON_HTML5_CONVERSION |
260 _LMBCSData1,_LMBCSData2, _LMBCSData3, _LMBCSData4, _LMBCSData5, _LMBCSData6, | 261 _LMBCSData1,_LMBCSData2, _LMBCSData3, _LMBCSData4, _LMBCSData5, _LMBCSData6, |
261 _LMBCSData8,_LMBCSData11,_LMBCSData16,_LMBCSData17,_LMBCSData18,_LMBCSData19
, | 262 _LMBCSData8,_LMBCSData11,_LMBCSData16,_LMBCSData17,_LMBCSData18,_LMBCSData19
, |
262 _HZData,_ISCIIData, _SCSUData, _ASCIIData, | 263 _HZData,_ISCIIData, _SCSUData, _ASCIIData, |
263 _UTF7Data, _Bocu1Data, _UTF16Data, _UTF32Data, _CESU8Data, _IMAPData, _Compo
undTextData; | 264 _UTF7Data, _Bocu1Data, _UTF16Data, _UTF32Data, _CESU8Data, _IMAPData, _Compo
undTextData; |
| 265 #else |
| 266 _ASCIIData, _UTF16Data, _UTF32Data; |
| 267 #endif |
264 | 268 |
265 U_CDECL_END | 269 U_CDECL_END |
266 | 270 |
267 /** Always use fallbacks from codepage to Unicode */ | 271 /** Always use fallbacks from codepage to Unicode */ |
268 #define TO_U_USE_FALLBACK(useFallback) TRUE | 272 #define TO_U_USE_FALLBACK(useFallback) TRUE |
269 #define UCNV_TO_U_USE_FALLBACK(cnv) TRUE | 273 #define UCNV_TO_U_USE_FALLBACK(cnv) TRUE |
270 | 274 |
271 /** Use fallbacks from Unicode to codepage when cnv->useFallback or for private-
use code points */ | 275 /** Use fallbacks from Unicode to codepage when cnv->useFallback or for private-
use code points */ |
272 #define IS_PRIVATE_USE(c) ((uint32_t)((c)-0xe000)<0x1900 || (uint32_t)((c)-0xf00
00)<0x20000) | 276 #define IS_PRIVATE_USE(c) ((uint32_t)((c)-0xe000)<0x1900 || (uint32_t)((c)-0xf00
00)<0x20000) |
273 #define FROM_U_USE_FALLBACK(useFallback, c) ((useFallback) || IS_PRIVATE_USE(c)) | 277 #define FROM_U_USE_FALLBACK(useFallback, c) ((useFallback) || IS_PRIVATE_USE(c)) |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 ucnv_toUWriteCodePoint(UConverter *cnv, | 316 ucnv_toUWriteCodePoint(UConverter *cnv, |
313 UChar32 c, | 317 UChar32 c, |
314 UChar **target, const UChar *targetLimit, | 318 UChar **target, const UChar *targetLimit, |
315 int32_t **offsets, | 319 int32_t **offsets, |
316 int32_t sourceIndex, | 320 int32_t sourceIndex, |
317 UErrorCode *pErrorCode); | 321 UErrorCode *pErrorCode); |
318 | 322 |
319 #endif | 323 #endif |
320 | 324 |
321 #endif /* UCNV_CNV */ | 325 #endif /* UCNV_CNV */ |
OLD | NEW |