Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(826)

Side by Side Diff: source/i18n/csdetect.cpp

Issue 587833004: Turn on UCONFIG_NO_NON_HTML5_CONVERTER to save 100kB (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/icu52/
Patch Set: more tests added to desc Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « source/data/mappings/ucmlocal.mk ('k') | source/i18n/csr2022.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 ********************************************************************** 2 **********************************************************************
3 * Copyright (C) 2005-2013, International Business Machines 3 * Copyright (C) 2005-2013, 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
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 new CSRecognizerInfo(new CharsetRecog_2022KR(), TRUE), 114 new CSRecognizerInfo(new CharsetRecog_2022KR(), TRUE),
114 new CSRecognizerInfo(new CharsetRecog_2022CN(), TRUE), 115 new CSRecognizerInfo(new CharsetRecog_2022CN(), TRUE),
115 116
116 new CSRecognizerInfo(new CharsetRecog_IBM424_he_rtl(), FALSE), 117 new CSRecognizerInfo(new CharsetRecog_IBM424_he_rtl(), FALSE),
117 new CSRecognizerInfo(new CharsetRecog_IBM424_he_ltr(), FALSE), 118 new CSRecognizerInfo(new CharsetRecog_IBM424_he_ltr(), FALSE),
118 new CSRecognizerInfo(new CharsetRecog_IBM420_ar_rtl(), FALSE), 119 new CSRecognizerInfo(new CharsetRecog_IBM420_ar_rtl(), FALSE),
119 new CSRecognizerInfo(new CharsetRecog_IBM420_ar_ltr(), FALSE) 120 new CSRecognizerInfo(new CharsetRecog_IBM420_ar_ltr(), FALSE)
121 #endif
120 }; 122 };
121 int32_t rCount = ARRAY_SIZE(tempArray); 123 int32_t rCount = ARRAY_SIZE(tempArray);
122 124
123 fCSRecognizers = NEW_ARRAY(CSRecognizerInfo *, rCount); 125 fCSRecognizers = NEW_ARRAY(CSRecognizerInfo *, rCount);
124 126
125 if (fCSRecognizers == NULL) { 127 if (fCSRecognizers == NULL) {
126 status = U_MEMORY_ALLOCATION_ERROR; 128 status = U_MEMORY_ALLOCATION_ERROR;
127 } 129 }
128 else { 130 else {
129 fCSRecognizers_size = rCount; 131 fCSRecognizers_size = rCount;
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 } 478 }
477 uprv_memset(en->context, 0, sizeof(Context)); 479 uprv_memset(en->context, 0, sizeof(Context));
478 ((Context*)en->context)->all = FALSE; 480 ((Context*)en->context)->all = FALSE;
479 ((Context*)en->context)->enabledRecognizers = fEnabledRecognizers; 481 ((Context*)en->context)->enabledRecognizers = fEnabledRecognizers;
480 return en; 482 return en;
481 } 483 }
482 484
483 U_NAMESPACE_END 485 U_NAMESPACE_END
484 486
485 #endif 487 #endif
OLDNEW
« no previous file with comments | « source/data/mappings/ucmlocal.mk ('k') | source/i18n/csr2022.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698