ICU-7226 Undo commit revision 24105 from ticket 6300.

X-SVN-Rev: 26871
This commit is contained in:
Michael Ow 2009-11-11 17:33:56 +00:00
parent b4853d0331
commit a1900371b7
3 changed files with 7 additions and 7 deletions

View file

@ -627,7 +627,7 @@ static const UConverterImpl _UTF16BEImpl={
static const UConverterStaticData _UTF16BEStaticData={
sizeof(UConverterStaticData),
"UTF-16BE",
1200, UCNV_IBM, UCNV_UTF16_BigEndian, 2, 4,
1200, UCNV_IBM, UCNV_UTF16_BigEndian, 2, 2,
{ 0xff, 0xfd, 0, 0 },2,FALSE,FALSE,
0,
0,
@ -1227,7 +1227,7 @@ static const UConverterImpl _UTF16LEImpl={
static const UConverterStaticData _UTF16LEStaticData={
sizeof(UConverterStaticData),
"UTF-16LE",
1202, UCNV_IBM, UCNV_UTF16_LittleEndian, 2, 4,
1202, UCNV_IBM, UCNV_UTF16_LittleEndian, 2, 2,
{ 0xfd, 0xff, 0, 0 },2,FALSE,FALSE,
0,
0,
@ -1485,7 +1485,7 @@ static const UConverterStaticData _UTF16StaticData = {
sizeof(UConverterStaticData),
"UTF-16",
1204, /* CCSID for BOM sensitive UTF-16 */
UCNV_IBM, UCNV_UTF16, 2, 4,
UCNV_IBM, UCNV_UTF16, 2, 2,
#if U_IS_BIG_ENDIAN
{ 0xff, 0xfd, 0, 0 }, 2,
#else

View file

@ -2816,8 +2816,8 @@ static void TestLMBCSMaxChar(void) {
{ 1, "US-ASCII"},
{ 1, "ISO-8859-1"},
{ 4, "UTF-16"},
{ 4, "UTF-16BE"},
{ 2, "UTF-16"},
{ 2, "UTF-16BE"},
{ 3, "UTF-8"},
{ 3, "CESU-8"},
{ 3, "SCSU"},

View file

@ -1,6 +1,6 @@
/**
*******************************************************************************
* Copyright (C) 2006-2008, International Business Machines Corporation and *
* Copyright (C) 2006-2009, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -52,7 +52,7 @@ class CharsetUTF16 extends CharsetICU {
this.endianXOR = ENDIAN_XOR_LE;
}
maxBytesPerChar = 4;
maxBytesPerChar = 2;
minBytesPerChar = 2;
maxCharsPerByte = 1;
}