Home
last modified time | relevance | path

Searched refs:nMid (Results 1 – 19 of 19) sorted by relevance

/trunk/main/sal/textenc/
H A Dtcvtbyte.c346 nMid = (nLow+nHigh)/2; in ImplGetReplaceChar()
351 if ( !nMid ) in ImplGetReplaceChar()
353 nHigh = nMid-1; in ImplGetReplaceChar()
358 nLow = nMid+1; in ImplGetReplaceChar()
440 nMid = (nLow+nHigh)/2; in ImplGetReplaceString()
445 if ( !nMid ) in ImplGetReplaceString()
447 nHigh = nMid-1; in ImplGetReplaceString()
452 nLow = nMid+1; in ImplGetReplaceString()
675 nMid = (nLow+nHigh)/2; in ImplConvertUnicodeCharToChar()
680 if ( !nMid ) in ImplConvertUnicodeCharToChar()
[all …]
/trunk/main/tools/source/memtools/
H A Dtable.cxx44 sal_uIntPtr nMid; in ImplGetIndex() local
55 nMid = (nLow + nHigh) / 2; in ImplGetIndex()
58 nHigh = nMid-1; in ImplGetIndex()
62 nLow = nMid + 1; in ImplGetIndex()
64 return nMid*2; in ImplGetIndex()
73 nMid = (nLow + nHigh) / 2; in ImplGetIndex()
76 nHigh = nMid-1; in ImplGetIndex()
80 nLow = nMid + 1; in ImplGetIndex()
82 return nMid*2; in ImplGetIndex()
91 *pIndex = (nMid+1)*2; in ImplGetIndex()
[all …]
/trunk/main/vcl/source/window/
H A Daccel.cxx64 sal_uLong nMid; in DBG_NAME() local
81 nMid = (nLow + nHigh) / 2; in DBG_NAME()
82 nCompareId = pList->GetObject( nMid )->mnId; in DBG_NAME()
84 nHigh = nMid-1; in DBG_NAME()
88 nLow = nMid + 1; in DBG_NAME()
90 return (sal_uInt16)nMid; in DBG_NAME()
98 *pIndex = (sal_uInt16)(nMid+1); in DBG_NAME()
100 *pIndex = (sal_uInt16)nMid; in DBG_NAME()
/trunk/main/svtools/source/control/
H A Dctrltool.cxx196 sal_uLong nMid; in ImplFind() local
200 nMid = (nLow + nHigh) / 2; in ImplFind()
201 pCompareData = (ImplFontListNameInfo*)List::GetObject( nMid ); in ImplFind()
205 if ( !nMid ) in ImplFind()
207 nHigh = nMid-1; in ImplFind()
212 nLow = nMid + 1; in ImplFind()
226 *pIndex = (nMid+1); in ImplFind()
228 *pIndex = nMid; in ImplFind()
/trunk/main/sfx2/source/doc/
H A Ddoctempl.cxx2095 long nMid; in GetEntryPos()
2104 pMid = maEntries.GetObject( nMid ); in GetEntryPos()
2109 nStart = nMid + 1; in GetEntryPos()
2111 nEnd = nMid - 1; in GetEntryPos()
2121 nMid++; in GetEntryPos()
2124 return nMid; in GetEntryPos()
2554 long nMid = 0; in GetRegionPos() local
2566 nStart = nMid + 1; in GetRegionPos()
2568 nEnd = nMid - 1; in GetRegionPos()
2576 nMid++; in GetRegionPos()
[all …]
/trunk/main/vcl/source/gdi/
H A Dimpfont.cxx138 int nMid = mnRangeCount; in ImplFindRangeIndex() local
142 if( cChar >= mpRangeCodes[ nMid ] ) in ImplFindRangeIndex()
143 nLower = nMid; in ImplFindRangeIndex()
145 nUpper = nMid - 1; in ImplFindRangeIndex()
146 nMid = (nLower + nUpper + 1) / 2; in ImplFindRangeIndex()
149 return nMid; in ImplFindRangeIndex()
/trunk/main/desktop/source/deployment/gui/
H A Ddp_gui_extlistbox.cxx958 const long nMid = nStart + ( ( nEnd - nStart ) / 2 ); in FindEntryPos() local
959 eCompare = pEntry->CompareTo( m_pCollator, m_vEntries[ nMid ] ); in FindEntryPos()
962 return FindEntryPos( pEntry, nStart, nMid-1, nPos ); in FindEntryPos()
964 return FindEntryPos( pEntry, nMid+1, nEnd, nPos ); in FindEntryPos()
968 if (pEntry->m_xPackage != m_vEntries[nMid]->m_xPackage) in FindEntryPos()
972 m_vEntries[ nMid ]->m_bChecked = true; in FindEntryPos()
973 nPos = nMid; in FindEntryPos()
/trunk/main/sc/source/core/data/
H A Ddociter.cxx1495 SCSIZE nMid = (nLo+nHi)/2; in BinarySearch() local
1496 SCSIZE i = nMid; in BinarySearch()
1501 if (nMid > 0) in BinarySearch()
1502 nHi = nMid - 1; in BinarySearch()
1620 nLo = nMid + 1; in BinarySearch()
1623 if (nMid > 0) in BinarySearch()
1624 nHi = nMid - 1; in BinarySearch()
1633 if (nMid > 0) in BinarySearch()
1634 nHi = nMid - 1; in BinarySearch()
1639 nLo = nMid + 1; in BinarySearch()
H A Dtable2.cxx2306 SCROW nMid = (nStartRow+nEndRow) / 2; in SetRowHeightRange() local
2307 if (SetRowHeightRange( nStartRow, nMid, nNewHeight, 1.0, 1.0 )) in SetRowHeightRange()
2309 if (SetRowHeightRange( nMid+1, nEndRow, nNewHeight, 1.0, 1.0 )) in SetRowHeightRange()
/trunk/main/sw/source/core/table/
H A Dswnewtable.cxx369 long nMid = ( nMin + nMax ) / 2; in CollectBoxSelection() local
407 if( nRight >= nMid || nRight + nLeft >= nMin + nMin ) in CollectBoxSelection()
457 if( nLeft <= nMid || nRight + nLeft <= nMax ) in CollectBoxSelection()
1615 long nMid = ( nMax + nMin )/ 2; in lcl_SearchSelBox() local
1627 bAdd = nLeft >= nMin || nRight >= nMid || in lcl_SearchSelBox()
1630 bAdd = nLeft <= nMid || nRight - nMax < nMax - nLeft; in lcl_SearchSelBox()
1903 long nMid = nMin ? ( nMin + nMax ) / 2 : 0; in PrepareDeleteCol() local
1906 nMid = nMax; in PrepareDeleteCol()
1927 nNewWidth = nMid - nLeft; in PrepareDeleteCol()
1930 nNewWidth = nRight - nMid; in PrepareDeleteCol()
/trunk/main/idl/source/objects/
H A Dslot.cxx1056 sal_uInt16 nMid = 0, nLow = 0; in Insert() local
1061 nMid = (nLow + nHigh) >> 1; in Insert()
1062 DBG_ASSERT( nMid < nListCount, "bsearch ist buggy" ); in Insert()
1063 int nDiff = (int) nId - (int) rList.GetObject(nMid)->xSlot->GetSlotId().GetValue(); in Insert()
1066 if ( nMid == 0 ) in Insert()
1068 nHigh = nMid - 1; in Insert()
1072 nLow = nMid + 1; in Insert()
1081 nPos = bFound ? nMid : nLow; in Insert()
/trunk/main/ucb/source/sorter/
H A Dsortresult.cxx1331 long nMid = 0, nCompare = 0; in FindPos() local
1337 nMid = ( nEnd - nStart ) / 2 + nStart; in FindPos()
1338 pMid = maS2O.GetData( nMid ); in FindPos()
1345 nEnd = nMid - 1; in FindPos()
1347 nStart = nMid + 1; in FindPos()
1351 return nMid; in FindPos()
1353 return nMid+1; in FindPos()
/trunk/main/sfx2/source/control/
H A Dbindings.cxx988 sal_uInt16 nMid = 0; in GetSlotPos() local
994 nMid = (nLow + nHigh) >> 1; in GetSlotPos()
995 DBG_ASSERT( nMid < pImp->pCaches->Count(), "bsearch ist buggy" ); in GetSlotPos()
996 int nDiff = (int) nId - (int) ( ((*pImp->pCaches)[nMid])->GetId() ); in GetSlotPos()
998 { if ( nMid == 0 ) in GetSlotPos()
1000 nHigh = nMid - 1; in GetSlotPos()
1003 { nLow = nMid + 1; in GetSlotPos()
1010 sal_uInt16 nPos = bFound ? nMid : nLow; in GetSlotPos()
H A Ddispatch.cxx3017 sal_uInt16 nLow = 0, nMid = 0, nHigh; in IsAllowed() local
3023 nMid = (nLow + nHigh) >> 1; in IsAllowed()
3024 DBG_ASSERT( nMid < nCount, "bsearch ist buggy" ); in IsAllowed()
3026 int nDiff = (int) nSlot - (int) rList[nMid]; in IsAllowed()
3029 if ( nMid == 0 ) in IsAllowed()
3031 nHigh = nMid - 1; in IsAllowed()
3035 nLow = nMid + 1; in IsAllowed()
3045 sal_uInt16 nPos = bFound ? nMid : nLow; in IsAllowed()
/trunk/main/i18npool/source/search/
H A Dlevdis.cxx367 int nMin, nMid, nMax; in CalcLPQR() local
374 if ( 0 == (nMid = Mid3( nX, nY, nZ )) ) // sogar zwei 0 in CalcLPQR()
377 nLimit = KGV( nMid, nMax ); in CalcLPQR()
/trunk/main/vcl/source/control/
H A Dilstbox.cxx172 sal_uLong nLow, nHigh, nMid; in InsertEntry() local
207 nMid = (nLow + nHigh) / 2; in InsertEntry()
208 pTemp = (ImplEntryType*)GetObject( nMid ); in InsertEntry()
213 nHigh = nMid-1; in InsertEntry()
217 nLow = nMid + 1; in InsertEntry()
225 nMid++; in InsertEntry()
227 Insert( pNewEntry, nMid ); in InsertEntry()
/trunk/main/editeng/source/items/
H A Dsvxfont.cxx96 long nMid = ( rRect.Top() + rRect.Bottom() ) / 2; in DrawArrow() local
97 long nTop = nMid - rSize.Height() / 2; in DrawArrow()
110 Point aTmp( bLeft ? nLeft : nRight, nMid ); in DrawArrow()
/trunk/main/sc/source/core/tool/
H A Dinterpr1.cxx4500 SCSIZE nMid = nFirst + nLen/2; in ScMatch() local
4506 PushDouble( nMid+1); in ScMatch()
4522 nFirst = nMid; in ScMatch()
4524 nLast = nMid; in ScMatch()
4529 nLast = nMid; in ScMatch()
4531 nFirst = nMid; in ScMatch()
5910 SCSIZE nMid = nFirst + nLen/2; in ScLookup() local
5915 lcl_GetLastMatch( nMid, *pDataMat2, nLenMajor, false); in ScLookup()
5916 nDelta = nMid; in ScLookup()
5930 nFirst = nMid; in ScLookup()
[all …]
H A Dinterpr3.cxx3129 size_t nMid = nSize / 2; in GetMedian() local
3130 vector<double>::iterator iMid = rArray.begin() + nMid; in GetMedian()
3138 iMid = rArray.begin() + nMid - 1; in GetMedian()

Completed in 2489 milliseconds