45 [
nPos](
const sal_Int32& rPos) { return rPos >= nPos; });
46 const sal_Int32 nEnd = nDiff < 0 ?
nPos-nDiff :
nPos;
63 [nSplitPos](
const sal_Int32& rPos) { return rPos >= nSplitPos; });
70 pNew->maSentence.insert( pNew->maSentence.begin(),
maSentence.begin(), pIter );
98 std::vector< sal_Int32 >::iterator pIter =
maSentence.begin();
105 auto pLast = std::find_if(pIter,
maSentence.end(),
106 [nSentenceEnd](
const sal_Int32& rPos) { return rPos > nSentenceEnd; });
116 [nStart](
const sal_Int32& rPos) { return rPos >= nStart; });
117 if( pIter ==
maSentence.end() || *pIter > nStart )
126 [
nPos](
const sal_Int32& rPos) { return rPos >= nPos; });
139 [
nPos](
const sal_Int32& rPos) { return rPos > nPos; });
std::vector< sal_Int32 > maSentence
virtual ~SwGrammarMarkUp() override
void MoveGrammar(sal_Int32 nPos, sal_Int32 nDiff)
virtual SwWrongList * Clone() override
void ClearGrammarList(sal_Int32 nSentenceEnd=COMPLETE_STRING)
void setSentence(sal_Int32 nStart)
virtual void CopyFrom(const SwWrongList &rCopy) override
void JoinGrammarList(SwGrammarMarkUp *pNext, sal_Int32 nInsertPos)
sal_Int32 getSentenceEnd(sal_Int32 nPos)
sal_Int32 getSentenceStart(sal_Int32 nPos)
std::unique_ptr< SwGrammarMarkUp > SplitGrammarList(sal_Int32 nSplitPos)
void RemoveEntry(sal_Int32 nBegin, sal_Int32 nEnd)
std::unique_ptr< SwWrongList > SplitList(sal_Int32 nSplitPos)
void JoinList(SwWrongList *pNext, sal_Int32 nInsertPos)
virtual void CopyFrom(const SwWrongList &rCopy)
void SetInvalid(sal_Int32 nBegin, sal_Int32 nEnd)
void Move(sal_Int32 nPos, sal_Int32 nDiff)
Change all values after the given position.
sal_Int32 GetBeginInv() const
constexpr sal_Int32 COMPLETE_STRING