зеркало из https://github.com/mozilla/gecko-dev.git
Decoder helper param fixed.
This commit is contained in:
Родитель
4c961a0305
Коммит
c0a87442b8
|
@ -123,8 +123,8 @@ NS_IMETHODIMP nsUnicodeDecodeUtil::Convert(
|
|||
PRInt32 aBehavior,
|
||||
PRUint16 numberOfTable,
|
||||
uRange *aRangeArray,
|
||||
uShiftTable *aShiftTableArray,
|
||||
uMappingTable *aMappingTableArray
|
||||
uShiftTable ** aShiftTableArray,
|
||||
uMappingTable ** aMappingTableArray
|
||||
)
|
||||
{
|
||||
PRUint32 ubuflen = *aDestLength;
|
||||
|
@ -143,9 +143,9 @@ NS_IMETHODIMP nsUnicodeDecodeUtil::Convert(
|
|||
for(i=0;i<numberOfTable;i++) {
|
||||
if((aRangeArray[i].min <= *src) &&
|
||||
(*src <= aRangeArray[i].max)) {
|
||||
if(uScan(&aShiftTableArray[i], (PRInt32*) 0,
|
||||
if(uScan(aShiftTableArray[i], (PRInt32*) 0,
|
||||
src, &med, srclen, &scanlen)) {
|
||||
uMapCode((uTable*) &aMappingTableArray[i],med, dest);
|
||||
uMapCode((uTable*) aMappingTableArray[i],med, dest);
|
||||
if(*dest != NOMAPPING)
|
||||
break;
|
||||
} else {
|
||||
|
|
|
@ -63,8 +63,8 @@ public:
|
|||
PRInt32 aBehavior,
|
||||
PRUint16 numOfTable,
|
||||
uRange *aRangeArray,
|
||||
uShiftTable *aShiftTableArray,
|
||||
uMappingTable *aMappingTableArray
|
||||
uShiftTable **aShiftTableArray,
|
||||
uMappingTable **aMappingTableArray
|
||||
);
|
||||
|
||||
NS_IMETHOD Init1ByteFastTable(
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
* Netscape Communications Corporation. All Rights Reserved.
|
||||
*/
|
||||
|
||||
mDecSize = 5;
|
||||
mDecSize = 6;
|
||||
mDecArray = new ConverterInfo [mDecSize];
|
||||
|
||||
mDecArray[0].mCID = &kLatin1ToUnicodeCID;
|
||||
|
@ -25,7 +25,8 @@
|
|||
mDecArray[2].mCID = &kISO88597ToUnicodeCID;
|
||||
mDecArray[3].mCID = &kCP1253ToUnicodeCID;
|
||||
mDecArray[4].mCID = &kISO2022JPToUnicodeCID;
|
||||
|
||||
mDecArray[5].mCID = &kEUCJPToUnicodeCID;
|
||||
|
||||
mEncSize = 1;
|
||||
mEncArray = new ConverterInfo [mEncSize];
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче