• Home
  • Raw
  • Download

Lines Matching refs:place

34 CPVT_WordPlace CSection::AddWord(const CPVT_WordPlace& place,  in AddWord()  argument
37 place.nWordIndex, 0, pdfium::CollectionSize<int32_t>(m_WordArray)); in AddWord()
40 return place; in AddWord()
70 CPVT_WordPlace CSection::GetPrevWordPlace(const CPVT_WordPlace& place) const { in GetPrevWordPlace()
71 if (place.nLineIndex < 0) in GetPrevWordPlace()
74 if (place.nLineIndex >= pdfium::CollectionSize<int32_t>(m_LineArray)) in GetPrevWordPlace()
77 CLine* pLine = m_LineArray[place.nLineIndex].get(); in GetPrevWordPlace()
78 if (place.nWordIndex == pLine->m_LineInfo.nBeginWordIndex) in GetPrevWordPlace()
79 return CPVT_WordPlace(place.nSecIndex, place.nLineIndex, -1); in GetPrevWordPlace()
81 if (place.nWordIndex >= pLine->m_LineInfo.nBeginWordIndex) in GetPrevWordPlace()
82 return pLine->GetPrevWordPlace(place); in GetPrevWordPlace()
84 if (!pdfium::IndexInBounds(m_LineArray, place.nLineIndex - 1)) in GetPrevWordPlace()
85 return place; in GetPrevWordPlace()
87 return m_LineArray[place.nLineIndex - 1]->GetEndWordPlace(); in GetPrevWordPlace()
90 CPVT_WordPlace CSection::GetNextWordPlace(const CPVT_WordPlace& place) const { in GetNextWordPlace()
91 if (place.nLineIndex < 0) in GetNextWordPlace()
94 if (place.nLineIndex >= pdfium::CollectionSize<int32_t>(m_LineArray)) in GetNextWordPlace()
97 CLine* pLine = m_LineArray[place.nLineIndex].get(); in GetNextWordPlace()
98 if (place.nWordIndex < pLine->m_LineInfo.nEndWordIndex) in GetNextWordPlace()
99 return pLine->GetNextWordPlace(place); in GetNextWordPlace()
101 if (!pdfium::IndexInBounds(m_LineArray, place.nLineIndex + 1)) in GetNextWordPlace()
102 return place; in GetNextWordPlace()
104 return m_LineArray[place.nLineIndex + 1]->GetBeginWordPlace(); in GetNextWordPlace()
107 void CSection::UpdateWordPlace(CPVT_WordPlace& place) const { in UpdateWordPlace()
113 if (place.nWordIndex < pLine->m_LineInfo.nBeginWordIndex) { in UpdateWordPlace()
116 } else if (place.nWordIndex > pLine->m_LineInfo.nEndWordIndex) { in UpdateWordPlace()
120 place.nLineIndex = nMid; in UpdateWordPlace()
128 CPVT_WordPlace place = GetBeginWordPlace(); in SearchWordPlace() local
153 place = SearchWordPlace( in SearchWordPlace()
157 place.nLineIndex = nMid; in SearchWordPlace()
158 return place; in SearchWordPlace()
161 place = GetBeginWordPlace(); in SearchWordPlace()
163 place = GetEndWordPlace(); in SearchWordPlace()
164 return place; in SearchWordPlace()
255 void CSection::ClearWord(const CPVT_WordPlace& place) { in ClearWord() argument
256 if (pdfium::IndexInBounds(m_WordArray, place.nWordIndex)) in ClearWord()
257 m_WordArray.erase(m_WordArray.begin() + place.nWordIndex); in ClearWord()