LibreOffice Module i18npool (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
i18npool::xdictionary Class Reference

#include <xdictionary.hxx>

Collaboration diagram for i18npool::xdictionary:
[legend]

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)
 
WordBreakCachegetCache (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
 

Detailed Description

Definition at line 59 of file xdictionary.hxx.

Constructor & Destructor Documentation

i18npool::xdictionary::xdictionary ( const char *  lang)
i18npool::xdictionary::~xdictionary ( )

Definition at line 126 of file xdictionary.cxx.

References cache, and i.

Member Function Documentation

bool i18npool::xdictionary::exists ( const sal_uInt32  u) const
private
WordBreakCache & i18npool::xdictionary::getCache ( const sal_Unicode text,
css::i18n::Boundary const &  boundary 
)
private
sal_Int32 i18npool::xdictionary::getLongestMatch ( const sal_Unicode text,
sal_Int32  len 
) const
private
Boundary const & i18npool::xdictionary::getWordBoundary ( const OUString &  rText,
sal_Int32  nPos,
sal_Int16  wordType,
bool  bDirection 
)
void i18npool::xdictionary::initDictionaryData ( const char *  lang)
private

Definition at line 146 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 417 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 405 of file xdictionary.cxx.

References ch, and getWordBoundary().

bool i18npool::xdictionary::seekSegment ( const OUString &  rText,
sal_Int32  pos,
css::i18n::Boundary &  boundary 
)
private

Definition at line 272 of file xdictionary.cxx.

References ch, exists(), segmentCachedBoundary, and segmentCachedString.

Referenced by getWordBoundary().

void i18npool::xdictionary::setJapaneseWordBreak ( )

Definition at line 193 of file xdictionary.cxx.

References japaneseWordBreak.

Member Data Documentation

css::i18n::Boundary i18npool::xdictionary::boundary
private

Definition at line 65 of file xdictionary.hxx.

Referenced by getWordBoundary(), and nextWord().

WordBreakCache i18npool::xdictionary::cache[CACHE_MAX]
private

Definition at line 77 of file xdictionary.hxx.

Referenced by getCache(), xdictionary(), and ~xdictionary().

xdictionarydata i18npool::xdictionary::data
private

Definition at line 62 of file xdictionary.hxx.

Referenced by exists(), getLongestMatch(), initDictionaryData(), and xdictionary().

bool i18npool::xdictionary::japaneseWordBreak
private

Definition at line 66 of file xdictionary.hxx.

Referenced by exists(), getCache(), setJapaneseWordBreak(), and xdictionary().

css::i18n::Boundary i18npool::xdictionary::segmentCachedBoundary
private

Definition at line 79 of file xdictionary.hxx.

Referenced by seekSegment().

OUString i18npool::xdictionary::segmentCachedString
private

Definition at line 78 of file xdictionary.hxx.

Referenced by seekSegment().


The documentation for this class was generated from the following files: