metric.cxx (9f62ea84) | metric.cxx (93ed1f29) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 734 unchanged lines hidden (view full) --- 743 sal_uInt32* pCP = pCodePairs; 744 for( int i = 0; i < nRangeCount; ++i ) 745 { 746 sal_uInt32 cMin = *(pCP++); 747 sal_uInt32 cEnd = *(pCP++); 748 while( cMin < cEnd ) 749 { 750 int j = 0; | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 734 unchanged lines hidden (view full) --- 743 sal_uInt32* pCP = pCodePairs; 744 for( int i = 0; i < nRangeCount; ++i ) 745 { 746 sal_uInt32 cMin = *(pCP++); 747 sal_uInt32 cEnd = *(pCP++); 748 while( cMin < cEnd ) 749 { 750 int j = 0; |
751 for(; (cMin < cEnd) && (j < NINSIZE); ++cMin ) | 751 for (; (cMin < cEnd) && (j < (NINSIZE-1)); ++cMin) |
752 { 753 if( cMin >= 0x0100 ) 754 cCharsInp[ j++ ] = static_cast<sal_Char>(cMin >> 8); 755 if( (cMin >= 0x0100) || (cMin < 0x00A0) ) 756 cCharsInp[ j++ ] = static_cast<sal_Char>(cMin); 757 } 758 759 sal_uInt32 nCvtInfo; --- 171 unchanged lines hidden --- | 752 { 753 if( cMin >= 0x0100 ) 754 cCharsInp[ j++ ] = static_cast<sal_Char>(cMin >> 8); 755 if( (cMin >= 0x0100) || (cMin < 0x00A0) ) 756 cCharsInp[ j++ ] = static_cast<sal_Char>(cMin); 757 } 758 759 sal_uInt32 nCvtInfo; --- 171 unchanged lines hidden --- |