| OLD | NEW |
| 1 /* | 1 /* |
| 2 ********************************************************************** | 2 ********************************************************************** |
| 3 * Copyright (C) 2010-2012, International Business Machines | 3 * Copyright (C) 2010-2014, International Business Machines |
| 4 * Corporation and others. All Rights Reserved. | 4 * Corporation and others. All Rights Reserved. |
| 5 ********************************************************************** | 5 ********************************************************************** |
| 6 * file name: ucnv_ct.c | 6 * file name: ucnv_ct.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: 2010Dec09 | 11 * created on: 2010Dec09 |
| 12 * created by: Michael Ow | 12 * created by: Michael Ow |
| 13 */ | 13 */ |
| 14 | 14 |
| 15 #include "unicode/utypes.h" | 15 #include "unicode/utypes.h" |
| 16 | 16 |
| 17 #if !UCONFIG_NO_CONVERSION && !UCONFIG_NO_LEGACY_CONVERSION && !UCONFIG_NO_NON_H
TML5_CONVERSION | 17 #if !UCONFIG_NO_CONVERSION && !UCONFIG_NO_LEGACY_CONVERSION |
| 18 | 18 |
| 19 #include "unicode/ucnv.h" | 19 #include "unicode/ucnv.h" |
| 20 #include "unicode/uset.h" | 20 #include "unicode/uset.h" |
| 21 #include "unicode/ucnv_err.h" | 21 #include "unicode/ucnv_err.h" |
| 22 #include "unicode/ucnv_cb.h" | 22 #include "unicode/ucnv_cb.h" |
| 23 #include "unicode/utf16.h" | 23 #include "unicode/utf16.h" |
| 24 #include "ucnv_imp.h" | 24 #include "ucnv_imp.h" |
| 25 #include "ucnv_bld.h" | 25 #include "ucnv_bld.h" |
| 26 #include "ucnv_cnv.h" | 26 #include "ucnv_cnv.h" |
| 27 #include "ucnvmbcs.h" | 27 #include "ucnvmbcs.h" |
| 28 #include "cstring.h" | 28 #include "cstring.h" |
| 29 #include "cmemory.h" | 29 #include "cmemory.h" |
| 30 | 30 |
| 31 #define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0])) | |
| 32 | |
| 33 typedef enum { | 31 typedef enum { |
| 34 INVALID = -2, | 32 INVALID = -2, |
| 35 DO_SEARCH = -1, | 33 DO_SEARCH = -1, |
| 36 | 34 |
| 37 COMPOUND_TEXT_SINGLE_0 = 0, | 35 COMPOUND_TEXT_SINGLE_0 = 0, |
| 38 COMPOUND_TEXT_SINGLE_1 = 1, | 36 COMPOUND_TEXT_SINGLE_1 = 1, |
| 39 COMPOUND_TEXT_SINGLE_2 = 2, | 37 COMPOUND_TEXT_SINGLE_2 = 2, |
| 40 COMPOUND_TEXT_SINGLE_3 = 3, | 38 COMPOUND_TEXT_SINGLE_3 = 3, |
| 41 | 39 |
| 42 COMPOUND_TEXT_DOUBLE_1 = 4, | 40 COMPOUND_TEXT_DOUBLE_1 = 4, |
| (...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 636 ~((uint32_t) 0), | 634 ~((uint32_t) 0), |
| 637 NULL, | 635 NULL, |
| 638 NULL, | 636 NULL, |
| 639 &_CompoundTextStaticData, | 637 &_CompoundTextStaticData, |
| 640 FALSE, | 638 FALSE, |
| 641 &_CompoundTextImpl, | 639 &_CompoundTextImpl, |
| 642 0 | 640 0 |
| 643 }; | 641 }; |
| 644 | 642 |
| 645 #endif /* #if !UCONFIG_NO_LEGACY_CONVERSION */ | 643 #endif /* #if !UCONFIG_NO_LEGACY_CONVERSION */ |
| OLD | NEW |