| OLD | NEW |
| 1 /* | 1 /* |
| 2 ******************************************************************** | 2 ******************************************************************** |
| 3 * COPYRIGHT: | 3 * COPYRIGHT: |
| 4 * Copyright (c) 1996-2015, International Business Machines Corporation and | 4 * Copyright (c) 1996-2015, International Business Machines Corporation and |
| 5 * others. All Rights Reserved. | 5 * others. All Rights Reserved. |
| 6 ******************************************************************** | 6 ******************************************************************** |
| 7 * | 7 * |
| 8 * ucnv_bld.cpp: | 8 * ucnv_bld.cpp: |
| 9 * | 9 * |
| 10 * Defines functions that are used in the creation/initialization/deletion | 10 * Defines functions that are used in the creation/initialization/deletion |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 NULL, NULL, | 58 NULL, NULL, |
| 59 | 59 |
| 60 #if UCONFIG_NO_LEGACY_CONVERSION | 60 #if UCONFIG_NO_LEGACY_CONVERSION |
| 61 NULL, | 61 NULL, |
| 62 #else | 62 #else |
| 63 &_MBCSData, | 63 &_MBCSData, |
| 64 #endif | 64 #endif |
| 65 | 65 |
| 66 &_Latin1Data, | 66 &_Latin1Data, |
| 67 &_UTF8Data, &_UTF16BEData, &_UTF16LEData, | 67 &_UTF8Data, &_UTF16BEData, &_UTF16LEData, |
| 68 #if UCONFIG_ONLY_HTML_CONVERSION | |
| 69 NULL, NULL, | |
| 70 #else | |
| 71 &_UTF32BEData, &_UTF32LEData, | 68 &_UTF32BEData, &_UTF32LEData, |
| 72 #endif | |
| 73 NULL, | 69 NULL, |
| 74 | 70 |
| 75 #if UCONFIG_NO_LEGACY_CONVERSION | 71 #if UCONFIG_NO_LEGACY_CONVERSION |
| 76 NULL, | 72 NULL, |
| 77 #else | 73 #else |
| 78 &_ISO2022Data, | 74 &_ISO2022Data, |
| 79 #endif | 75 #endif |
| 80 | 76 |
| 81 #if UCONFIG_NO_LEGACY_CONVERSION || UCONFIG_ONLY_HTML_CONVERSION | 77 #if UCONFIG_NO_LEGACY_CONVERSION || UCONFIG_ONLY_HTML_CONVERSION |
| 82 NULL, NULL, NULL, NULL, NULL, NULL, | 78 NULL, NULL, NULL, NULL, NULL, NULL, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 96 | 92 |
| 97 | 93 |
| 98 #if UCONFIG_NO_LEGACY_CONVERSION || UCONFIG_ONLY_HTML_CONVERSION | 94 #if UCONFIG_NO_LEGACY_CONVERSION || UCONFIG_ONLY_HTML_CONVERSION |
| 99 NULL, | 95 NULL, |
| 100 #else | 96 #else |
| 101 &_ISCIIData, | 97 &_ISCIIData, |
| 102 #endif | 98 #endif |
| 103 | 99 |
| 104 &_ASCIIData, | 100 &_ASCIIData, |
| 105 #if UCONFIG_ONLY_HTML_CONVERSION | 101 #if UCONFIG_ONLY_HTML_CONVERSION |
| 106 NULL, NULL, &_UTF16Data, NULL, NULL, NULL, | 102 NULL, NULL, &_UTF16Data, &_UTF32Data, NULL, NULL, |
| 107 #else | 103 #else |
| 108 &_UTF7Data, &_Bocu1Data, &_UTF16Data, &_UTF32Data, &_CESU8Data, &_IMAPData, | 104 &_UTF7Data, &_Bocu1Data, &_UTF16Data, &_UTF32Data, &_CESU8Data, &_IMAPData, |
| 109 #endif | 105 #endif |
| 110 | 106 |
| 111 #if UCONFIG_NO_LEGACY_CONVERSION || UCONFIG_ONLY_HTML_CONVERSION | 107 #if UCONFIG_NO_LEGACY_CONVERSION || UCONFIG_ONLY_HTML_CONVERSION |
| 112 NULL, | 108 NULL, |
| 113 #else | 109 #else |
| 114 &_CompoundTextData | 110 &_CompoundTextData |
| 115 #endif | 111 #endif |
| 116 }; | 112 }; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 { "utf16", UCNV_UTF16 }, | 157 { "utf16", UCNV_UTF16 }, |
| 162 { "utf16be", UCNV_UTF16_BigEndian }, | 158 { "utf16be", UCNV_UTF16_BigEndian }, |
| 163 { "utf16le", UCNV_UTF16_LittleEndian }, | 159 { "utf16le", UCNV_UTF16_LittleEndian }, |
| 164 #if U_IS_BIG_ENDIAN | 160 #if U_IS_BIG_ENDIAN |
| 165 { "utf16oppositeendian", UCNV_UTF16_LittleEndian }, | 161 { "utf16oppositeendian", UCNV_UTF16_LittleEndian }, |
| 166 { "utf16platformendian", UCNV_UTF16_BigEndian }, | 162 { "utf16platformendian", UCNV_UTF16_BigEndian }, |
| 167 #else | 163 #else |
| 168 { "utf16oppositeendian", UCNV_UTF16_BigEndian}, | 164 { "utf16oppositeendian", UCNV_UTF16_BigEndian}, |
| 169 { "utf16platformendian", UCNV_UTF16_LittleEndian }, | 165 { "utf16platformendian", UCNV_UTF16_LittleEndian }, |
| 170 #endif | 166 #endif |
| 171 #if !UCONFIG_ONLY_HTML_CONVERSION | |
| 172 { "utf32", UCNV_UTF32 }, | 167 { "utf32", UCNV_UTF32 }, |
| 173 { "utf32be", UCNV_UTF32_BigEndian }, | 168 { "utf32be", UCNV_UTF32_BigEndian }, |
| 174 { "utf32le", UCNV_UTF32_LittleEndian }, | 169 { "utf32le", UCNV_UTF32_LittleEndian }, |
| 175 #if U_IS_BIG_ENDIAN | 170 #if U_IS_BIG_ENDIAN |
| 176 { "utf32oppositeendian", UCNV_UTF32_LittleEndian }, | 171 { "utf32oppositeendian", UCNV_UTF32_LittleEndian }, |
| 177 { "utf32platformendian", UCNV_UTF32_BigEndian }, | 172 { "utf32platformendian", UCNV_UTF32_BigEndian }, |
| 178 #else | 173 #else |
| 179 { "utf32oppositeendian", UCNV_UTF32_BigEndian }, | 174 { "utf32oppositeendian", UCNV_UTF32_BigEndian }, |
| 180 { "utf32platformendian", UCNV_UTF32_LittleEndian }, | 175 { "utf32platformendian", UCNV_UTF32_LittleEndian }, |
| 181 #endif | 176 #endif |
| 182 #endif | |
| 183 #if !UCONFIG_ONLY_HTML_CONVERSION | 177 #if !UCONFIG_ONLY_HTML_CONVERSION |
| 184 { "utf7", UCNV_UTF7 }, | 178 { "utf7", UCNV_UTF7 }, |
| 185 #endif | 179 #endif |
| 186 { "utf8", UCNV_UTF8 }, | 180 { "utf8", UCNV_UTF8 }, |
| 187 #if !UCONFIG_ONLY_HTML_CONVERSION | 181 #if !UCONFIG_ONLY_HTML_CONVERSION |
| 188 { "x11compoundtext", UCNV_COMPOUND_TEXT} | 182 { "x11compoundtext", UCNV_COMPOUND_TEXT} |
| 189 #endif | 183 #endif |
| 190 }; | 184 }; |
| 191 | 185 |
| 192 | 186 |
| (...skipping 1480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1673 *pErrorCode=U_UNSUPPORTED_ERROR; | 1667 *pErrorCode=U_UNSUPPORTED_ERROR; |
| 1674 return 0; | 1668 return 0; |
| 1675 } | 1669 } |
| 1676 | 1670 |
| 1677 return headerSize+(int32_t)staticDataSize+size; | 1671 return headerSize+(int32_t)staticDataSize+size; |
| 1678 } | 1672 } |
| 1679 | 1673 |
| 1680 #endif /* #if !UCONFIG_NO_LEGACY_CONVERSION */ | 1674 #endif /* #if !UCONFIG_NO_LEGACY_CONVERSION */ |
| 1681 | 1675 |
| 1682 #endif | 1676 #endif |
| OLD | NEW |