remove unused Sentence from BreakupUnit
Change-Id: I324d344a9e9154345b8bd7c8653415cfcbfc26cc
This commit is contained in:
parent
fd2ffceefc
commit
c04f7de3d2
@ -260,24 +260,6 @@ namespace drawinglayer
|
||||
}
|
||||
break;
|
||||
}
|
||||
case BreakupUnit::Sentence:
|
||||
{
|
||||
sal_Int32 nNextSentenceBreak(xBreakIterator->endOfSentence(rTxt, nTextPosition, rLocale));
|
||||
sal_Int32 a(nTextPosition);
|
||||
|
||||
for(; a < nTextPosition + nTextLength; a++)
|
||||
{
|
||||
if(a == nNextSentenceBreak)
|
||||
{
|
||||
breakupPortion(aTempResult, nCurrent, a - nCurrent, false);
|
||||
nCurrent = a;
|
||||
nNextSentenceBreak = xBreakIterator->endOfSentence(rTxt, a + 1, rLocale);
|
||||
}
|
||||
}
|
||||
|
||||
breakupPortion(aTempResult, nCurrent, a - nCurrent, false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
mxResult = aTempResult;
|
||||
|
@ -33,8 +33,7 @@ namespace drawinglayer
|
||||
enum class BreakupUnit
|
||||
{
|
||||
Character,
|
||||
Word,
|
||||
Sentence
|
||||
Word
|
||||
};
|
||||
|
||||
class DRAWINGLAYER_DLLPUBLIC TextBreakupHelper
|
||||
|
Loading…
x
Reference in New Issue
Block a user