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

Side by Side Diff: icu52/patches/csetdet.patch

Issue 224133003: Copy the remaining icu46 patches to preserve the history (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/
Patch Set: Created 6 years, 8 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 | « icu52/patches/breakiterator.patch ('k') | icu52/patches/declspec.patch » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Index: source/i18n/csrucode.cpp 1 Index: source/i18n/csrucode.cpp
2 =================================================================== 2 ===================================================================
3 --- source/i18n/csrucode.cpp (revision 214189) 3 --- source/i18n/csrucode.cpp (revision 214189)
4 +++ source/i18n/csrucode.cpp (working copy) 4 +++ source/i18n/csrucode.cpp (working copy)
5 @@ -31,8 +31,9 @@ 5 @@ -31,8 +31,9 @@
6 int32_t CharsetRecog_UTF_16_BE::match(InputText* textIn) 6 int32_t CharsetRecog_UTF_16_BE::match(InputText* textIn)
7 { 7 {
8 const uint8_t *input = textIn->fRawInput; 8 const uint8_t *input = textIn->fRawInput;
9 + int32_t length = textIn->fRawLength; 9 + int32_t length = textIn->fRawLength;
10 10
(...skipping 15 matching lines...) Expand all
26 26
27 @@ -76,7 +78,7 @@ 27 @@ -76,7 +78,7 @@
28 bool hasBOM = FALSE; 28 bool hasBOM = FALSE;
29 int32_t confidence = 0; 29 int32_t confidence = 0;
30 30
31 - if (getChar(input, 0) == 0x0000FEFFUL) { 31 - if (getChar(input, 0) == 0x0000FEFFUL) {
32 + if (limit > 0 && getChar(input, 0) == 0x0000FEFFUL) { 32 + if (limit > 0 && getChar(input, 0) == 0x0000FEFFUL) {
33 hasBOM = TRUE; 33 hasBOM = TRUE;
34 } 34 }
35 35
OLDNEW
« no previous file with comments | « icu52/patches/breakiterator.patch ('k') | icu52/patches/declspec.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698