LibreOffice Module i18npool (master) 1
|
#include <xdictionary.hxx>
Public Member Functions | |
xdictionary (const char *lang) | |
~xdictionary () | |
css::i18n::Boundary | nextWord (const OUString &rText, sal_Int32 nPos, sal_Int16 wordType) |
css::i18n::Boundary | previousWord (const OUString &rText, sal_Int32 nPos, sal_Int16 wordType) |
css::i18n::Boundary const & | getWordBoundary (const OUString &rText, sal_Int32 nPos, sal_Int16 wordType, bool bDirection) |
void | setJapaneseWordBreak () |
Private Member Functions | |
void | initDictionaryData (const char *lang) |
bool | seekSegment (const OUString &rText, sal_Int32 pos, css::i18n::Boundary &boundary) |
WordBreakCache & | getCache (const sal_Unicode *text, css::i18n::Boundary const &boundary) |
bool | exists (const sal_uInt32 u) const |
sal_Int32 | getLongestMatch (const sal_Unicode *text, sal_Int32 len) const |
Private Attributes | |
xdictionarydata | data |
css::i18n::Boundary | boundary |
bool | japaneseWordBreak |
WordBreakCache | cache [CACHE_MAX] |
OUString | segmentCachedString |
css::i18n::Boundary | segmentCachedBoundary |
Definition at line 59 of file xdictionary.hxx.
i18npool::xdictionary::xdictionary | ( | const char * | lang | ) |
Definition at line 63 of file xdictionary.cxx.
References cache, data, i18npool::xdictionarydata::dataArea, i18npool::xdictionarydata::existMark, i, i18npool::xdictionarydata::index1, i18npool::xdictionarydata::index2, initDictionaryData(), japaneseWordBreak, and i18npool::xdictionarydata::lenArray.
i18npool::xdictionary::~xdictionary | ( | ) |
Definition at line 128 of file xdictionary.cxx.
|
private |
Definition at line 208 of file xdictionary.cxx.
References data, i18npool::xdictionarydata::existMark, i18npool::BreakIteratorImpl::getScriptClass(), and japaneseWordBreak.
Referenced by seekSegment().
|
private |
Definition at line 347 of file xdictionary.cxx.
References cache, i18npool::WordBreakCache::contents, count, DEFAULT_SIZE, i18npool::WordBreakCache::equals(), getLongestMatch(), i, i18npool::JapaneseCharType(), japaneseWordBreak, i18npool::WordBreakCache::length, i18npool::WordBreakCache::size, text(), type, and i18npool::WordBreakCache::wordboundary.
Referenced by getWordBoundary().
|
private |
Definition at line 218 of file xdictionary.cxx.
References begin, data, i18npool::xdictionarydata::dataArea, end, i, idx, i18npool::xdictionarydata::index1, i18npool::xdictionarydata::index2, i18npool::xdictionarydata::lenArray, and pos.
Referenced by getCache().
Boundary const & i18npool::xdictionary::getWordBoundary | ( | const OUString & | rText, |
sal_Int32 | nPos, | ||
sal_Int16 | wordType, | ||
bool | bDirection | ||
) |
Definition at line 443 of file xdictionary.cxx.
References boundary, ch, getCache(), i, seekSegment(), o3tl::temporary(), text(), and i18npool::WordBreakCache::wordboundary.
Referenced by nextWord(), and previousWord().
|
private |
Definition at line 156 of file xdictionary.cxx.
References data, i, SAL_DLLEXTENSION, SAL_DLLPREFIX, and i18npool::thisModule().
Referenced by xdictionary().
Boundary i18npool::xdictionary::nextWord | ( | const OUString & | rText, |
sal_Int32 | nPos, | ||
sal_Int16 | wordType | ||
) |
Definition at line 427 of file xdictionary.cxx.
References boundary, ch, and getWordBoundary().
Boundary i18npool::xdictionary::previousWord | ( | const OUString & | rText, |
sal_Int32 | nPos, | ||
sal_Int16 | wordType | ||
) |
Definition at line 415 of file xdictionary.cxx.
References ch, and getWordBoundary().
|
private |
Definition at line 282 of file xdictionary.cxx.
References ch, exists(), pos, segmentCachedBoundary, and segmentCachedString.
Referenced by getWordBoundary().
void i18npool::xdictionary::setJapaneseWordBreak | ( | ) |
Definition at line 203 of file xdictionary.cxx.
References japaneseWordBreak.
|
private |
Definition at line 65 of file xdictionary.hxx.
Referenced by getWordBoundary(), and nextWord().
|
private |
Definition at line 82 of file xdictionary.hxx.
Referenced by getCache(), xdictionary(), and ~xdictionary().
|
private |
Definition at line 62 of file xdictionary.hxx.
Referenced by exists(), getLongestMatch(), initDictionaryData(), and xdictionary().
|
private |
Definition at line 66 of file xdictionary.hxx.
Referenced by exists(), getCache(), setJapaneseWordBreak(), and xdictionary().
|
private |
Definition at line 84 of file xdictionary.hxx.
Referenced by seekSegment().
|
private |
Definition at line 83 of file xdictionary.hxx.
Referenced by seekSegment().