• Home
  • Raw
  • Download

Lines Matching refs:nWordIndex

36   int32_t nWordIndex = pdfium::clamp(  in AddWord()  local
37 place.nWordIndex, 0, pdfium::CollectionSize<int32_t>(m_WordArray)); in AddWord()
38 m_WordArray.insert(m_WordArray.begin() + nWordIndex, in AddWord()
78 if (place.nWordIndex == pLine->m_LineInfo.nBeginWordIndex) in GetPrevWordPlace()
81 if (place.nWordIndex >= pLine->m_LineInfo.nBeginWordIndex) in GetPrevWordPlace()
98 if (place.nWordIndex < pLine->m_LineInfo.nEndWordIndex) in GetNextWordPlace()
113 if (place.nWordIndex < pLine->m_LineInfo.nBeginWordIndex) { in UpdateWordPlace()
116 } else if (place.nWordIndex > pLine->m_LineInfo.nEndWordIndex) { in UpdateWordPlace()
183 wordplace.nWordIndex = -1; in SearchWordPlace()
187 int32_t nLeft = range.BeginPos.nWordIndex; in SearchWordPlace()
188 int32_t nRight = range.EndPos.nWordIndex + 1; in SearchWordPlace()
211 wordplace.nWordIndex = nMid; in SearchWordPlace()
216 void CSection::ClearLeftWords(int32_t nWordIndex) { in ClearLeftWords() argument
217 for (int32_t i = nWordIndex; i >= 0; i--) { in ClearLeftWords()
223 void CSection::ClearRightWords(int32_t nWordIndex) { in ClearRightWords() argument
225 for (int32_t i = sz - 1; i > nWordIndex; i--) { in ClearRightWords()
243 ClearMidWords(PlaceRange.BeginPos.nWordIndex, in ClearWords()
244 PlaceRange.EndPos.nWordIndex); in ClearWords()
246 ClearRightWords(PlaceRange.BeginPos.nWordIndex); in ClearWords()
249 ClearLeftWords(PlaceRange.EndPos.nWordIndex); in ClearWords()
256 if (pdfium::IndexInBounds(m_WordArray, place.nWordIndex)) in ClearWord()
257 m_WordArray.erase(m_WordArray.begin() + place.nWordIndex); in ClearWord()