Lines Matching refs:place
44 CPVT_WordPlace CSection::AddWord(const CPVT_WordPlace& place, in AddWord() argument
48 std::max(std::min(place.nWordIndex, m_WordArray.GetSize()), 0); in AddWord()
54 return place; in AddWord()
86 CPVT_WordPlace CSection::GetPrevWordPlace(const CPVT_WordPlace& place) const { in GetPrevWordPlace()
87 if (place.nLineIndex < 0) { in GetPrevWordPlace()
90 if (place.nLineIndex >= m_LineArray.GetSize()) { in GetPrevWordPlace()
93 if (CLine* pLine = m_LineArray.GetAt(place.nLineIndex)) { in GetPrevWordPlace()
94 if (place.nWordIndex == pLine->m_LineInfo.nBeginWordIndex) { in GetPrevWordPlace()
95 return CPVT_WordPlace(place.nSecIndex, place.nLineIndex, -1); in GetPrevWordPlace()
97 if (place.nWordIndex < pLine->m_LineInfo.nBeginWordIndex) { in GetPrevWordPlace()
98 if (CLine* pPrevLine = m_LineArray.GetAt(place.nLineIndex - 1)) { in GetPrevWordPlace()
102 return pLine->GetPrevWordPlace(place); in GetPrevWordPlace()
105 return place; in GetPrevWordPlace()
108 CPVT_WordPlace CSection::GetNextWordPlace(const CPVT_WordPlace& place) const { in GetNextWordPlace()
109 if (place.nLineIndex < 0) { in GetNextWordPlace()
112 if (place.nLineIndex >= m_LineArray.GetSize()) { in GetNextWordPlace()
115 if (CLine* pLine = m_LineArray.GetAt(place.nLineIndex)) { in GetNextWordPlace()
116 if (place.nWordIndex >= pLine->m_LineInfo.nEndWordIndex) { in GetNextWordPlace()
117 if (CLine* pNextLine = m_LineArray.GetAt(place.nLineIndex + 1)) { in GetNextWordPlace()
121 return pLine->GetNextWordPlace(place); in GetNextWordPlace()
124 return place; in GetNextWordPlace()
127 void CSection::UpdateWordPlace(CPVT_WordPlace& place) const { in UpdateWordPlace()
133 if (place.nWordIndex < pLine->m_LineInfo.nBeginWordIndex) { in UpdateWordPlace()
136 } else if (place.nWordIndex > pLine->m_LineInfo.nEndWordIndex) { in UpdateWordPlace()
140 place.nLineIndex = nMid; in UpdateWordPlace()
151 CPVT_WordPlace place = GetBeginWordPlace(); in SearchWordPlace() local
179 place = SearchWordPlace( in SearchWordPlace()
183 place.nLineIndex = nMid; in SearchWordPlace()
184 return place; in SearchWordPlace()
189 place = GetBeginWordPlace(); in SearchWordPlace()
192 place = GetEndWordPlace(); in SearchWordPlace()
194 return place; in SearchWordPlace()
288 void CSection::ClearWord(const CPVT_WordPlace& place) { in ClearWord() argument
289 delete m_WordArray.GetAt(place.nWordIndex); in ClearWord()
290 m_WordArray.RemoveAt(place.nWordIndex); in ClearWord()