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

◆ xdictionary()

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

◆ ~xdictionary()

i18npool::xdictionary::~xdictionary ( )

Definition at line 128 of file xdictionary.cxx.

References cache, and i.

Member Function Documentation

◆ exists()

bool i18npool::xdictionary::exists ( const sal_uInt32  u) const
private

◆ getCache()

WordBreakCache & i18npool::xdictionary::getCache ( const sal_Unicode text,
css::i18n::Boundary const &  boundary 
)
private

◆ getLongestMatch()

sal_Int32 i18npool::xdictionary::getLongestMatch ( const sal_Unicode text,
sal_Int32  len 
) const
private

◆ getWordBoundary()

Boundary const & i18npool::xdictionary::getWordBoundary ( const OUString &  rText,
sal_Int32  nPos,
sal_Int16  wordType,
bool  bDirection 
)

◆ initDictionaryData()

void i18npool::xdictionary::initDictionaryData ( const char *  lang)
private

Definition at line 156 of file xdictionary.cxx.

References data, i, SAL_DLLEXTENSION, SAL_DLLPREFIX, and i18npool::thisModule().

Referenced by xdictionary().

◆ nextWord()

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

◆ previousWord()

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

◆ seekSegment()

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

Definition at line 282 of file xdictionary.cxx.

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

Referenced by getWordBoundary().

◆ setJapaneseWordBreak()

void i18npool::xdictionary::setJapaneseWordBreak ( )

Definition at line 203 of file xdictionary.cxx.

References japaneseWordBreak.

Member Data Documentation

◆ boundary

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

Definition at line 65 of file xdictionary.hxx.

Referenced by getWordBoundary(), and nextWord().

◆ cache

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

Definition at line 82 of file xdictionary.hxx.

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

◆ data

xdictionarydata i18npool::xdictionary::data
private

Definition at line 62 of file xdictionary.hxx.

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

◆ japaneseWordBreak

bool i18npool::xdictionary::japaneseWordBreak
private

Definition at line 66 of file xdictionary.hxx.

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

◆ segmentCachedBoundary

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

Definition at line 84 of file xdictionary.hxx.

Referenced by seekSegment().

◆ segmentCachedString

OUString i18npool::xdictionary::segmentCachedString
private

Definition at line 83 of file xdictionary.hxx.

Referenced by seekSegment().


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