LibreOffice Module i18npool (master) 1
|
#include <breakiterator_unicode.hxx>
Classes | |
struct | BI_Data |
struct | BI_ValueData |
Used as map value. More... | |
Public Types | |
typedef std::unordered_map< OString, std::shared_ptr< BI_ValueData > > | BIMap |
Public Member Functions | |
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 |
Protected Member Functions | |
void | loadICUBreakIterator (const css::lang::Locale &rLocale, sal_Int16 rBreakType, sal_Int16 rWordType, const char *name, const OUString &rText) |
Protected Attributes | |
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 |
Additional Inherited Members | |
Static Public Member Functions inherited from i18npool::BreakIteratorImpl | |
static sal_Int16 | getScriptClass (sal_uInt32 currentChar) |
Definition at line 37 of file breakiterator_unicode.hxx.
typedef std::unordered_map< OString, std::shared_ptr< BI_ValueData > > i18npool::BreakIterator_Unicode::BIMap |
Definition at line 103 of file breakiterator_unicode.hxx.
i18npool::BreakIterator_Unicode::BreakIterator_Unicode | ( | ) |
Definition at line 50 of file breakiterator_unicode.cxx.
|
overridevirtual |
Definition at line 57 of file breakiterator_unicode.cxx.
|
overridevirtual |
Reimplemented from i18npool::BreakIteratorImpl.
Definition at line 432 of file breakiterator_unicode.cxx.
References ch, LOAD_SENTENCE_BREAKITERATOR, loadICUBreakIterator(), i18npool::BreakIterator_Unicode::BI_Data::mpValue, sentence, and Text.
|
overridevirtual |
Reimplemented from i18npool::BreakIteratorImpl.
Definition at line 451 of file breakiterator_unicode.cxx.
References LOAD_SENTENCE_BREAKITERATOR, loadICUBreakIterator(), i18npool::BreakIterator_Unicode::BI_Data::mpValue, nPos, sentence, and Text.
|
overridevirtual |
Reimplemented from i18npool::BreakIteratorImpl.
Definition at line 579 of file breakiterator_unicode.cxx.
References cBreakIterator.
|
overridevirtual |
Reimplemented from i18npool::BreakIteratorImpl.
Reimplemented in i18npool::BreakIterator_CJK, and i18npool::BreakIterator_th.
Definition at line 467 of file breakiterator_unicode.cxx.
References getWordBoundary(), line, lineRule, LOAD_LINE_BREAKITERATOR, loadICUBreakIterator(), i18npool::BreakIterator_Unicode::BI_Data::mpValue, nPos, SPACE, Text, and WJ.
Referenced by i18npool::BreakIterator_th::getLineBreak().
|
overridevirtual |
Reimplemented from i18npool::BreakIteratorImpl.
Definition at line 591 of file breakiterator_unicode.cxx.
References cBreakIterator.
|
overridevirtual |
Reimplemented from i18npool::BreakIteratorImpl.
Reimplemented in i18npool::BreakIterator_CJK.
Definition at line 398 of file breakiterator_unicode.cxx.
References icuBI, LOAD_WORD_BREAKITERATOR, loadICUBreakIterator(), i18npool::BreakIterator_Unicode::BI_Data::mpValue, nPos, and Text.
Referenced by getLineBreak(), i18npool::BreakIterator_CJK::getWordBoundary(), i18npool::BreakIterator_CJK::nextWord(), and i18npool::BreakIterator_CJK::previousWord().
|
protected |
css::uno::RuntimeException |
Definition at line 80 of file breakiterator_unicode.cxx.
References character, LanguageTag::convertToBcp47(), i18npool::LocaleDataImpl::get(), LanguageTagIcu::getIcuLocale(), icuBI, line, LOAD_CHARACTER_BREAKITERATOR, LOAD_LINE_BREAKITERATOR, LOAD_SENTENCE_BREAKITERATOR, LOAD_WORD_BREAKITERATOR, i18npool::BreakIterator_Unicode::BI_Data::maBIMapKey, i18npool::BreakIterator_Unicode::BI_Data::mpValue, OpenOffice_dat, OUStringToOString(), sentence, i18npool::theBIMap, and words.
Referenced by beginOfSentence(), endOfSentence(), getLineBreak(), getWordBoundary(), nextCharacters(), nextWord(), previousCharacters(), and previousWord().
|
overridevirtual |
Reimplemented from i18npool::BreakIteratorImpl.
Reimplemented in i18npool::BreakIterator_th.
Definition at line 310 of file breakiterator_unicode.cxx.
References character, LOAD_CHARACTER_BREAKITERATOR, loadICUBreakIterator(), i18npool::BreakIterator_Unicode::BI_Data::mpValue, nCount, and Text.
Referenced by i18npool::BreakIterator_th::nextCharacters().
|
overridevirtual |
Reimplemented from i18npool::BreakIteratorImpl.
Reimplemented in i18npool::BreakIterator_CJK.
Definition at line 349 of file breakiterator_unicode.cxx.
References icuBI, LOAD_WORD_BREAKITERATOR, loadICUBreakIterator(), i18npool::BreakIterator_Unicode::BI_Data::mpValue, i18npool::BreakIteratorImpl::result, and Text.
Referenced by i18npool::BreakIterator_CJK::nextWord().
|
overridevirtual |
Reimplemented from i18npool::BreakIteratorImpl.
Reimplemented in i18npool::BreakIterator_th.
Definition at line 329 of file breakiterator_unicode.cxx.
References character, LOAD_CHARACTER_BREAKITERATOR, loadICUBreakIterator(), i18npool::BreakIterator_Unicode::BI_Data::mpValue, nCount, and Text.
Referenced by i18npool::BreakIterator_th::previousCharacters().
|
overridevirtual |
Reimplemented from i18npool::BreakIteratorImpl.
Reimplemented in i18npool::BreakIterator_CJK.
Definition at line 373 of file breakiterator_unicode.cxx.
References icuBI, LOAD_WORD_BREAKITERATOR, loadICUBreakIterator(), i18npool::BreakIterator_Unicode::BI_Data::mpValue, and Text.
Referenced by i18npool::BreakIterator_CJK::previousWord().
|
overridevirtual |
Reimplemented from i18npool::BreakIteratorImpl.
Definition at line 585 of file breakiterator_unicode.cxx.
References cppu::supportsService().
|
protected |
Definition at line 73 of file breakiterator_unicode.hxx.
Referenced by i18npool::BreakIterator_CJK::BreakIterator_CJK(), i18npool::BreakIterator_ja::BreakIterator_ja(), i18npool::BreakIterator_ko::BreakIterator_ko(), i18npool::BreakIterator_th::BreakIterator_th(), i18npool::BreakIterator_zh::BreakIterator_zh(), i18npool::BreakIterator_zh_TW::BreakIterator_zh_TW(), getImplementationName(), and getSupportedServiceNames().
|
protected |
Referenced by loadICUBreakIterator(), nextCharacters(), and previousCharacters().
|
protected |
Referenced by getWordBoundary(), loadICUBreakIterator(), nextWord(), and previousWord().
|
protected |
Referenced by getLineBreak(), and loadICUBreakIterator().
|
protected |
Definition at line 73 of file breakiterator_unicode.hxx.
Referenced by i18npool::BreakIterator_th::BreakIterator_th(), and getLineBreak().
|
protected |
Referenced by beginOfSentence(), endOfSentence(), and loadICUBreakIterator().
|
protected |
Definition at line 96 of file breakiterator_unicode.hxx.
Referenced by loadICUBreakIterator().