OLD | NEW |
1 /* | 1 /* |
2 ********************************************************************** | 2 ********************************************************************** |
3 * Copyright (C) 2005-2013, International Business Machines | 3 * Copyright (C) 2005-2015, International Business Machines |
4 * Corporation and others. All Rights Reserved. | 4 * Corporation and others. All Rights Reserved. |
5 ********************************************************************** | 5 ********************************************************************** |
6 */ | 6 */ |
7 | 7 |
8 #include "unicode/utypes.h" | 8 #include "unicode/utypes.h" |
9 | 9 |
10 #if !UCONFIG_NO_CONVERSION | 10 #if !UCONFIG_NO_CONVERSION |
11 | 11 |
12 #include "unicode/ucsdet.h" | 12 #include "unicode/ucsdet.h" |
13 | 13 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 new CSRecognizerInfo(new CharsetRecog_windows_1256(), TRUE), | 103 new CSRecognizerInfo(new CharsetRecog_windows_1256(), TRUE), |
104 new CSRecognizerInfo(new CharsetRecog_KOI8_R(), TRUE), | 104 new CSRecognizerInfo(new CharsetRecog_KOI8_R(), TRUE), |
105 new CSRecognizerInfo(new CharsetRecog_8859_9_tr(), TRUE), | 105 new CSRecognizerInfo(new CharsetRecog_8859_9_tr(), TRUE), |
106 new CSRecognizerInfo(new CharsetRecog_sjis(), TRUE), | 106 new CSRecognizerInfo(new CharsetRecog_sjis(), TRUE), |
107 new CSRecognizerInfo(new CharsetRecog_gb_18030(), TRUE), | 107 new CSRecognizerInfo(new CharsetRecog_gb_18030(), TRUE), |
108 new CSRecognizerInfo(new CharsetRecog_euc_jp(), TRUE), | 108 new CSRecognizerInfo(new CharsetRecog_euc_jp(), TRUE), |
109 new CSRecognizerInfo(new CharsetRecog_euc_kr(), TRUE), | 109 new CSRecognizerInfo(new CharsetRecog_euc_kr(), TRUE), |
110 new CSRecognizerInfo(new CharsetRecog_big5(), TRUE), | 110 new CSRecognizerInfo(new CharsetRecog_big5(), TRUE), |
111 | 111 |
112 new CSRecognizerInfo(new CharsetRecog_2022JP(), TRUE), | 112 new CSRecognizerInfo(new CharsetRecog_2022JP(), TRUE), |
113 #if !UCONFIG_NO_NON_HTML5_CONVERSION | 113 #if !UCONFIG_ONLY_HTML_CONVERSION |
114 new CSRecognizerInfo(new CharsetRecog_2022KR(), TRUE), | 114 new CSRecognizerInfo(new CharsetRecog_2022KR(), TRUE), |
115 new CSRecognizerInfo(new CharsetRecog_2022CN(), TRUE), | 115 new CSRecognizerInfo(new CharsetRecog_2022CN(), TRUE), |
116 | 116 |
117 new CSRecognizerInfo(new CharsetRecog_IBM424_he_rtl(), FALSE), | 117 new CSRecognizerInfo(new CharsetRecog_IBM424_he_rtl(), FALSE), |
118 new CSRecognizerInfo(new CharsetRecog_IBM424_he_ltr(), FALSE), | 118 new CSRecognizerInfo(new CharsetRecog_IBM424_he_ltr(), FALSE), |
119 new CSRecognizerInfo(new CharsetRecog_IBM420_ar_rtl(), FALSE), | 119 new CSRecognizerInfo(new CharsetRecog_IBM420_ar_rtl(), FALSE), |
120 new CSRecognizerInfo(new CharsetRecog_IBM420_ar_ltr(), FALSE) | 120 new CSRecognizerInfo(new CharsetRecog_IBM420_ar_ltr(), FALSE) |
121 #endif | 121 #endif |
122 }; | 122 }; |
123 int32_t rCount = ARRAY_SIZE(tempArray); | 123 int32_t rCount = ARRAY_SIZE(tempArray); |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 } | 478 } |
479 uprv_memset(en->context, 0, sizeof(Context)); | 479 uprv_memset(en->context, 0, sizeof(Context)); |
480 ((Context*)en->context)->all = FALSE; | 480 ((Context*)en->context)->all = FALSE; |
481 ((Context*)en->context)->enabledRecognizers = fEnabledRecognizers; | 481 ((Context*)en->context)->enabledRecognizers = fEnabledRecognizers; |
482 return en; | 482 return en; |
483 } | 483 } |
484 | 484 |
485 U_NAMESPACE_END | 485 U_NAMESPACE_END |
486 | 486 |
487 #endif | 487 #endif |
OLD | NEW |