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