Lines Matching refs:nMid
107 int32_t nMid = (nLeft + nRight) / 2; in UpdateWordPlace() local
109 CLine* pLine = m_LineArray[nMid].get(); in UpdateWordPlace()
111 nRight = nMid - 1; in UpdateWordPlace()
112 nMid = (nLeft + nRight) / 2; in UpdateWordPlace()
114 nLeft = nMid + 1; in UpdateWordPlace()
115 nMid = (nLeft + nRight) / 2; in UpdateWordPlace()
117 place.nLineIndex = nMid; in UpdateWordPlace()
129 int32_t nMid = pdfium::CollectionSize<int32_t>(m_LineArray) / 2; in SearchWordPlace() local
131 CLine* pLine = m_LineArray[nMid].get(); in SearchWordPlace()
140 nRight = nMid - 1; in SearchWordPlace()
141 nMid = (nLeft + nRight) / 2; in SearchWordPlace()
145 nLeft = nMid + 1; in SearchWordPlace()
146 nMid = (nLeft + nRight) / 2; in SearchWordPlace()
153 place.nLineIndex = nMid; in SearchWordPlace()
183 int32_t nMid = (nLeft + nRight) / 2; in SearchWordPlace() local
185 if (nMid == nLeft) in SearchWordPlace()
187 if (nMid == nRight) { in SearchWordPlace()
188 nMid--; in SearchWordPlace()
191 if (!pdfium::IndexInBounds(m_WordArray, nMid)) in SearchWordPlace()
193 CPVT_WordInfo* pWord = m_WordArray[nMid].get(); in SearchWordPlace()
195 nLeft = nMid; in SearchWordPlace()
196 nMid = (nLeft + nRight) / 2; in SearchWordPlace()
199 nRight = nMid; in SearchWordPlace()
200 nMid = (nLeft + nRight) / 2; in SearchWordPlace()
202 if (pdfium::IndexInBounds(m_WordArray, nMid)) { in SearchWordPlace()
203 CPVT_WordInfo* pWord = m_WordArray[nMid].get(); in SearchWordPlace()
205 wordplace.nWordIndex = nMid; in SearchWordPlace()