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 | |
261 _LMBCSData1,_LMBCSData2, _LMBCSData3, _LMBCSData4, _LMBCSData5, _LMBCSData6, | 260 _LMBCSData1,_LMBCSData2, _LMBCSData3, _LMBCSData4, _LMBCSData5, _LMBCSData6, |
262 _LMBCSData8,_LMBCSData11,_LMBCSData16,_LMBCSData17,_LMBCSData18,_LMBCSData19
, | 261 _LMBCSData8,_LMBCSData11,_LMBCSData16,_LMBCSData17,_LMBCSData18,_LMBCSData19
, |
263 _HZData,_ISCIIData, _SCSUData, _ASCIIData, | 262 _HZData,_ISCIIData, _SCSUData, _ASCIIData, |
264 _UTF7Data, _Bocu1Data, _UTF16Data, _UTF32Data, _CESU8Data, _IMAPData, _Compo
undTextData; | 263 _UTF7Data, _Bocu1Data, _UTF16Data, _UTF32Data, _CESU8Data, _IMAPData, _Compo
undTextData; |
265 #else | |
266 _ASCIIData, _UTF16Data, _UTF32Data; | |
267 #endif | |
268 | 264 |
269 U_CDECL_END | 265 U_CDECL_END |
270 | 266 |
271 /** Always use fallbacks from codepage to Unicode */ | 267 /** Always use fallbacks from codepage to Unicode */ |
272 #define TO_U_USE_FALLBACK(useFallback) TRUE | 268 #define TO_U_USE_FALLBACK(useFallback) TRUE |
273 #define UCNV_TO_U_USE_FALLBACK(cnv) TRUE | 269 #define UCNV_TO_U_USE_FALLBACK(cnv) TRUE |
274 | 270 |
275 /** Use fallbacks from Unicode to codepage when cnv->useFallback or for private-
use code points */ | 271 /** Use fallbacks from Unicode to codepage when cnv->useFallback or for private-
use code points */ |
276 #define IS_PRIVATE_USE(c) ((uint32_t)((c)-0xe000)<0x1900 || (uint32_t)((c)-0xf00
00)<0x20000) | 272 #define IS_PRIVATE_USE(c) ((uint32_t)((c)-0xe000)<0x1900 || (uint32_t)((c)-0xf00
00)<0x20000) |
277 #define FROM_U_USE_FALLBACK(useFallback, c) ((useFallback) || IS_PRIVATE_USE(c)) | 273 #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... |
316 ucnv_toUWriteCodePoint(UConverter *cnv, | 312 ucnv_toUWriteCodePoint(UConverter *cnv, |
317 UChar32 c, | 313 UChar32 c, |
318 UChar **target, const UChar *targetLimit, | 314 UChar **target, const UChar *targetLimit, |
319 int32_t **offsets, | 315 int32_t **offsets, |
320 int32_t sourceIndex, | 316 int32_t sourceIndex, |
321 UErrorCode *pErrorCode); | 317 UErrorCode *pErrorCode); |
322 | 318 |
323 #endif | 319 #endif |
324 | 320 |
325 #endif /* UCNV_CNV */ | 321 #endif /* UCNV_CNV */ |
OLD | NEW |