equal
deleted
inserted
replaced
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of the License "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 // |
7 // |
8 // Initial Contributors: |
8 // Initial Contributors: |
9 // Nokia Corporation - initial contribution. |
9 // Nokia Corporation - initial contribution. |
172 ByteUsed(pair>>8); |
172 ByteUsed(pair>>8); |
173 ++GlobalPairs[pair]; |
173 ++GlobalPairs[pair]; |
174 |
174 |
175 inEnd = in+size; |
175 inEnd = in+size; |
176 outStart = out; |
176 outStart = out; |
177 // |
177 //////////////// |
178 TInt lastPair = -1; |
178 TInt lastPair = -1; |
179 TInt b, bb[2], p; |
179 TInt b, bb[2], p; |
180 TInt jj = 0; |
180 TInt jj = 0; |
181 if(byteCount == 0) { |
181 if(byteCount == 0) { |
182 //in this case, marker is not used in the replacement |
182 //in this case, marker is not used in the replacement |
260 PairBuffer[PairsFound++] = (TUint16)p; |
260 PairBuffer[PairsFound++] = (TUint16)p; |
261 } |
261 } |
262 } |
262 } |
263 } |
263 } |
264 } |
264 } |
265 // |
265 //////////////// |
266 ASSERT(!byteCount); |
266 ASSERT(!byteCount); |
267 ASSERT(!pairCount); |
267 ASSERT(!pairCount); |
268 size = out-outStart; |
268 size = out-outStart; |
269 |
269 |
270 outToggle ^= 1; |
270 outToggle ^= 1; |