LibreOffice Module i18npool (master) 1
|
#include <breakiterator_th.hxx>
Public Member Functions | |
BreakIterator_th () | |
Constructor. More... | |
virtual | ~BreakIterator_th () override |
Deconstructor. More... | |
virtual sal_Int32 SAL_CALL | previousCharacters (const OUString &text, sal_Int32 start, const css::lang::Locale &nLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 count, sal_Int32 &nDone) override |
virtual sal_Int32 SAL_CALL | nextCharacters (const OUString &text, sal_Int32 start, const css::lang::Locale &rLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 count, sal_Int32 &nDone) override |
virtual css::i18n::LineBreakResults SAL_CALL | getLineBreak (const OUString &Text, sal_Int32 nStartPos, const css::lang::Locale &nLocale, sal_Int32 nMinBreakPos, const css::i18n::LineBreakHyphenationOptions &hOptions, const css::i18n::LineBreakUserOptions &bOptions) override |
Public Member Functions inherited from i18npool::BreakIterator_Unicode | |
BreakIterator_Unicode () | |
virtual | ~BreakIterator_Unicode () override |
virtual sal_Int32 SAL_CALL | previousCharacters (const OUString &Text, sal_Int32 nStartPos, const css::lang::Locale &nLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 nCount, sal_Int32 &nDone) override |
virtual sal_Int32 SAL_CALL | nextCharacters (const OUString &Text, sal_Int32 nStartPos, const css::lang::Locale &rLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 nCount, sal_Int32 &nDone) override |
virtual css::i18n::Boundary SAL_CALL | previousWord (const OUString &Text, sal_Int32 nStartPos, const css::lang::Locale &nLocale, sal_Int16 WordType) override |
virtual css::i18n::Boundary SAL_CALL | nextWord (const OUString &Text, sal_Int32 nStartPos, const css::lang::Locale &nLocale, sal_Int16 WordType) override |
virtual css::i18n::Boundary SAL_CALL | getWordBoundary (const OUString &Text, sal_Int32 nPos, const css::lang::Locale &nLocale, sal_Int16 WordType, sal_Bool bDirection) override |
virtual sal_Int32 SAL_CALL | beginOfSentence (const OUString &Text, sal_Int32 nStartPos, const css::lang::Locale &nLocale) override |
virtual sal_Int32 SAL_CALL | endOfSentence (const OUString &Text, sal_Int32 nStartPos, const css::lang::Locale &nLocale) override |
virtual css::i18n::LineBreakResults SAL_CALL | getLineBreak (const OUString &Text, sal_Int32 nStartPos, const css::lang::Locale &nLocale, sal_Int32 nMinBreakPos, const css::i18n::LineBreakHyphenationOptions &hOptions, const css::i18n::LineBreakUserOptions &bOptions) override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Public Member Functions inherited from i18npool::BreakIteratorImpl | |
BreakIteratorImpl (const css::uno::Reference< css::uno::XComponentContext > &rxContext) | |
BreakIteratorImpl () | |
virtual | ~BreakIteratorImpl () override |
virtual sal_Int32 SAL_CALL | nextCharacters (const OUString &Text, sal_Int32 nStartPos, const css::lang::Locale &rLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 nCount, sal_Int32 &nDone) override |
virtual sal_Int32 SAL_CALL | previousCharacters (const OUString &Text, sal_Int32 nStartPos, const css::lang::Locale &nLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 nCount, sal_Int32 &nDone) override |
virtual css::i18n::Boundary SAL_CALL | previousWord (const OUString &Text, sal_Int32 nStartPos, const css::lang::Locale &nLocale, sal_Int16 WordType) override |
virtual css::i18n::Boundary SAL_CALL | nextWord (const OUString &Text, sal_Int32 nStartPos, const css::lang::Locale &nLocale, sal_Int16 WordType) override |
virtual css::i18n::Boundary SAL_CALL | getWordBoundary (const OUString &Text, sal_Int32 nPos, const css::lang::Locale &nLocale, sal_Int16 WordType, sal_Bool bDirection) override |
virtual sal_Bool SAL_CALL | isBeginWord (const OUString &Text, sal_Int32 nPos, const css::lang::Locale &nLocale, sal_Int16 WordType) override |
virtual sal_Bool SAL_CALL | isEndWord (const OUString &Text, sal_Int32 nPos, const css::lang::Locale &nLocale, sal_Int16 WordType) override |
virtual sal_Int16 SAL_CALL | getWordType (const OUString &Text, sal_Int32 nPos, const css::lang::Locale &nLocale) override |
virtual sal_Int32 SAL_CALL | beginOfSentence (const OUString &Text, sal_Int32 nStartPos, const css::lang::Locale &nLocale) override |
virtual sal_Int32 SAL_CALL | endOfSentence (const OUString &Text, sal_Int32 nStartPos, const css::lang::Locale &nLocale) override |
virtual css::i18n::LineBreakResults SAL_CALL | getLineBreak (const OUString &Text, sal_Int32 nStartPos, const css::lang::Locale &nLocale, sal_Int32 nMinBreakPos, const css::i18n::LineBreakHyphenationOptions &hOptions, const css::i18n::LineBreakUserOptions &bOptions) override |
virtual sal_Int16 SAL_CALL | getScriptType (const OUString &Text, sal_Int32 nPos) override |
virtual sal_Int32 SAL_CALL | beginOfScript (const OUString &Text, sal_Int32 nStartPos, sal_Int16 ScriptType) override |
virtual sal_Int32 SAL_CALL | endOfScript (const OUString &Text, sal_Int32 nStartPos, sal_Int16 ScriptType) override |
virtual sal_Int32 SAL_CALL | previousScript (const OUString &Text, sal_Int32 nStartPos, sal_Int16 ScriptType) override |
virtual sal_Int32 SAL_CALL | nextScript (const OUString &Text, sal_Int32 nStartPos, sal_Int16 ScriptType) override |
virtual sal_Int32 SAL_CALL | beginOfCharBlock (const OUString &Text, sal_Int32 nStartPos, const css::lang::Locale &nLocale, sal_Int16 CharType) override |
virtual sal_Int32 SAL_CALL | endOfCharBlock (const OUString &Text, sal_Int32 nStartPos, const css::lang::Locale &nLocale, sal_Int16 CharType) override |
virtual sal_Int32 SAL_CALL | previousCharBlock (const OUString &Text, sal_Int32 nStartPos, const css::lang::Locale &nLocale, sal_Int16 CharType) override |
virtual sal_Int32 SAL_CALL | nextCharBlock (const OUString &Text, sal_Int32 nStartPos, const css::lang::Locale &nLocale, sal_Int16 CharType) override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Private Member Functions | |
void | makeIndex (const OUString &text, sal_Int32 pos) |
Private Attributes | |
OUString | cachedText |
std::vector< sal_Int32 > | m_aNextCellIndex |
std::vector< sal_Int32 > | m_aPreviousCellIndex |
Additional Inherited Members | |
Public Types inherited from i18npool::BreakIterator_Unicode | |
typedef std::unordered_map< OString, std::shared_ptr< BI_ValueData > > | BIMap |
Static Public Member Functions inherited from i18npool::BreakIteratorImpl | |
static sal_Int16 | getScriptClass (sal_uInt32 currentChar) |
Protected Member Functions inherited from i18npool::BreakIterator_Unicode | |
void | loadICUBreakIterator (const css::lang::Locale &rLocale, sal_Int16 rBreakType, sal_Int16 rWordType, const char *name, const OUString &rText) |
Protected Attributes inherited from i18npool::BreakIterator_Unicode | |
const char * | cBreakIterator |
const char * | lineRule |
struct i18npool::BreakIterator_Unicode::BI_Data | character |
struct i18npool::BreakIterator_Unicode::BI_Data | sentence |
struct i18npool::BreakIterator_Unicode::BI_Data | line |
struct i18npool::BreakIterator_Unicode::BI_Data * | icuBI |
BI_Data | words [4] |
Protected Attributes inherited from i18npool::BreakIteratorImpl | |
css::i18n::Boundary | result |
Definition at line 27 of file breakiterator_th.hxx.
i18npool::BreakIterator_th::BreakIterator_th | ( | ) |
Constructor.
Definition at line 36 of file breakiterator_th.cxx.
References i18npool::BreakIterator_Unicode::cBreakIterator, i18npool::BreakIterator_Unicode::lineRule, m_aNextCellIndex, and m_aPreviousCellIndex.
|
overridevirtual |
Deconstructor.
Definition at line 48 of file breakiterator_th.cxx.
|
overridevirtual |
Reimplemented from i18npool::BreakIterator_Unicode.
Definition at line 114 of file breakiterator_th.cxx.
References i18npool::BreakIterator_Unicode::getLineBreak(), m_aPreviousCellIndex, makeIndex(), and Text.
|
private |
Definition at line 192 of file breakiterator_th.cxx.
References cachedText, end, i18npool::getACell(), is_Thai, m_aNextCellIndex, m_aPreviousCellIndex, o3tl::make_unsigned(), pos, start, and Text.
Referenced by getLineBreak(), nextCharacters(), and previousCharacters().
|
overridevirtual |
Reimplemented from i18npool::BreakIterator_Unicode.
Definition at line 82 of file breakiterator_th.cxx.
References m_aNextCellIndex, makeIndex(), nCount, i18npool::BreakIterator_Unicode::nextCharacters(), and Text.
|
overridevirtual |
Reimplemented from i18npool::BreakIterator_Unicode.
Definition at line 52 of file breakiterator_th.cxx.
References m_aNextCellIndex, m_aPreviousCellIndex, makeIndex(), nCount, i18npool::BreakIterator_Unicode::previousCharacters(), and Text.
|
private |
Definition at line 44 of file breakiterator_th.hxx.
Referenced by makeIndex().
|
private |
Definition at line 45 of file breakiterator_th.hxx.
Referenced by BreakIterator_th(), makeIndex(), nextCharacters(), and previousCharacters().
|
private |
Definition at line 46 of file breakiterator_th.hxx.
Referenced by BreakIterator_th(), getLineBreak(), makeIndex(), and previousCharacters().