Lines Matching refs:nWordIndex

33   int32_t nWordIndex = pdfium::clamp(  in AddWord()  local
34 place.nWordIndex, 0, pdfium::CollectionSize<int32_t>(m_WordArray)); in AddWord()
35 m_WordArray.insert(m_WordArray.begin() + nWordIndex, in AddWord()
75 if (place.nWordIndex == pLine->m_LineInfo.nBeginWordIndex) in GetPrevWordPlace()
78 if (place.nWordIndex >= pLine->m_LineInfo.nBeginWordIndex) in GetPrevWordPlace()
95 if (place.nWordIndex < pLine->m_LineInfo.nEndWordIndex) in GetNextWordPlace()
110 if (place.nWordIndex < pLine->m_LineInfo.nBeginWordIndex) { in UpdateWordPlace()
113 } else if (place.nWordIndex > pLine->m_LineInfo.nEndWordIndex) { in UpdateWordPlace()
179 wordplace.nWordIndex = -1; in SearchWordPlace()
181 int32_t nLeft = range.BeginPos.nWordIndex; in SearchWordPlace()
182 int32_t nRight = range.EndPos.nWordIndex + 1; in SearchWordPlace()
205 wordplace.nWordIndex = nMid; in SearchWordPlace()
210 void CSection::ClearLeftWords(int32_t nWordIndex) { in ClearLeftWords() argument
211 for (int32_t i = nWordIndex; i >= 0; i--) { in ClearLeftWords()
217 void CSection::ClearRightWords(int32_t nWordIndex) { in ClearRightWords() argument
219 for (int32_t i = sz - 1; i > nWordIndex; i--) { in ClearRightWords()
237 ClearMidWords(PlaceRange.BeginPos.nWordIndex, in ClearWords()
238 PlaceRange.EndPos.nWordIndex); in ClearWords()
240 ClearRightWords(PlaceRange.BeginPos.nWordIndex); in ClearWords()
243 ClearLeftWords(PlaceRange.EndPos.nWordIndex); in ClearWords()
250 if (pdfium::IndexInBounds(m_WordArray, place.nWordIndex)) in ClearWord()
251 m_WordArray.erase(m_WordArray.begin() + place.nWordIndex); in ClearWord()