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

#include <breakiteratorImpl.hxx>

Inheritance diagram for i18npool::BreakIteratorImpl:
[legend]
Collaboration diagram for i18npool::BreakIteratorImpl:
[legend]

Classes

struct  lookupTableItem
 

Public Member Functions

 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
 

Static Public Member Functions

static sal_Int16 getScriptClass (sal_uInt32 currentChar)
 

Protected Attributes

css::i18n::Boundary result
 

Private Member Functions

bool createLocaleSpecificBreakIterator (const OUString &aLocaleName)
 
const css::uno::Reference< XBreakIterator > & getLocaleSpecificBreakIterator (const css::lang::Locale &rLocale)
 

Private Attributes

std::vector< lookupTableItemlookupTable
 
css::lang::Locale aLocale
 
css::uno::Reference< XBreakIterator > xBI
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 

Detailed Description

Definition at line 34 of file breakiteratorImpl.hxx.

Constructor & Destructor Documentation

i18npool::BreakIteratorImpl::BreakIteratorImpl ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext)
i18npool::BreakIteratorImpl::BreakIteratorImpl ( )

Definition at line 42 of file breakiteratorImpl.cxx.

i18npool::BreakIteratorImpl::~BreakIteratorImpl ( )
overridevirtual

Definition at line 46 of file breakiteratorImpl.cxx.

Member Function Documentation

sal_Int32 SAL_CALL i18npool::BreakIteratorImpl::beginOfCharBlock ( const OUString &  Text,
sal_Int32  nStartPos,
const css::lang::Locale &  nLocale,
sal_Int16  CharType 
)
overridevirtual

Definition at line 397 of file breakiteratorImpl.cxx.

References nPos.

sal_Int32 SAL_CALL i18npool::BreakIteratorImpl::beginOfScript ( const OUString &  Text,
sal_Int32  nStartPos,
sal_Int16  ScriptType 
)
overridevirtual

Definition at line 317 of file breakiteratorImpl.cxx.

References ch, getScriptClass(), and i18npool::iterateCodePoints().

sal_Int32 SAL_CALL i18npool::BreakIteratorImpl::beginOfSentence ( const OUString &  Text,
sal_Int32  nStartPos,
const css::lang::Locale &  nLocale 
)
overridevirtual

Reimplemented in i18npool::BreakIterator_Unicode.

Definition at line 258 of file breakiteratorImpl.cxx.

References LBI.

bool i18npool::BreakIteratorImpl::createLocaleSpecificBreakIterator ( const OUString &  aLocaleName)
private
Exceptions
css::uno::RuntimeException

Definition at line 568 of file breakiteratorImpl.cxx.

References Locale, lookupTable, m_xContext, and xBI.

Referenced by getLocaleSpecificBreakIterator().

sal_Int32 SAL_CALL i18npool::BreakIteratorImpl::endOfCharBlock ( const OUString &  Text,
sal_Int32  nStartPos,
const css::lang::Locale &  nLocale,
sal_Int16  CharType 
)
overridevirtual

Definition at line 409 of file breakiteratorImpl.cxx.

References ch, and i18npool::iterateCodePoints().

sal_Int32 SAL_CALL i18npool::BreakIteratorImpl::endOfScript ( const OUString &  Text,
sal_Int32  nStartPos,
sal_Int16  ScriptType 
)
overridevirtual

Definition at line 335 of file breakiteratorImpl.cxx.

References ch, getScriptClass(), and i18npool::iterateCodePoints().

sal_Int32 SAL_CALL i18npool::BreakIteratorImpl::endOfSentence ( const OUString &  Text,
sal_Int32  nStartPos,
const css::lang::Locale &  nLocale 
)
overridevirtual

Reimplemented in i18npool::BreakIterator_Unicode.

Definition at line 267 of file breakiteratorImpl.cxx.

References LBI.

OUString SAL_CALL i18npool::BreakIteratorImpl::getImplementationName ( )
overridevirtual

Reimplemented in i18npool::BreakIterator_Unicode.

Definition at line 657 of file breakiteratorImpl.cxx.

LineBreakResults SAL_CALL i18npool::BreakIteratorImpl::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 
)
overridevirtual
const Reference< XBreakIterator > & i18npool::BreakIteratorImpl::getLocaleSpecificBreakIterator ( const css::lang::Locale &  rLocale)
private
Exceptions
css::uno::RuntimeException

Definition at line 609 of file breakiteratorImpl.cxx.

References aLocale, createLocaleSpecificBreakIterator(), lookupTable, m_xContext, u, v, and xBI.

sal_Int16 i18npool::BreakIteratorImpl::getScriptClass ( sal_uInt32  currentChar)
static
sal_Int16 SAL_CALL i18npool::BreakIteratorImpl::getScriptType ( const OUString &  Text,
sal_Int32  nPos 
)
overridevirtual
Sequence< OUString > SAL_CALL i18npool::BreakIteratorImpl::getSupportedServiceNames ( )
overridevirtual

Reimplemented in i18npool::BreakIterator_Unicode.

Definition at line 669 of file breakiteratorImpl.cxx.

Boundary SAL_CALL i18npool::BreakIteratorImpl::getWordBoundary ( const OUString &  Text,
sal_Int32  nPos,
const css::lang::Locale &  nLocale,
sal_Int16  WordType,
sal_Bool  bDirection 
)
overridevirtual

Reimplemented in i18npool::BreakIterator_Unicode, and i18npool::BreakIterator_CJK.

Definition at line 193 of file breakiteratorImpl.cxx.

References LBI, result, and i18npool::skipSpace().

Referenced by isBeginWord(), and isEndWord().

sal_Int16 SAL_CALL i18npool::BreakIteratorImpl::getWordType ( const OUString &  Text,
sal_Int32  nPos,
const css::lang::Locale &  nLocale 
)
overridevirtual

Definition at line 461 of file breakiteratorImpl.cxx.

sal_Bool SAL_CALL i18npool::BreakIteratorImpl::isBeginWord ( const OUString &  Text,
sal_Int32  nPos,
const css::lang::Locale &  nLocale,
sal_Int16  WordType 
)
overridevirtual

Definition at line 226 of file breakiteratorImpl.cxx.

References getWordBoundary(), result, and i18npool::skipSpace().

sal_Bool SAL_CALL i18npool::BreakIteratorImpl::isEndWord ( const OUString &  Text,
sal_Int32  nPos,
const css::lang::Locale &  nLocale,
sal_Int16  WordType 
)
overridevirtual

Definition at line 242 of file breakiteratorImpl.cxx.

References getWordBoundary(), result, and i18npool::skipSpace().

sal_Int32 SAL_CALL i18npool::BreakIteratorImpl::nextCharacters ( const OUString &  Text,
sal_Int32  nStartPos,
const css::lang::Locale &  rLocale,
sal_Int16  nCharacterIteratorMode,
sal_Int32  nCount,
sal_Int32 &  nDone 
)
overridevirtual

Reimplemented in i18npool::BreakIterator_Unicode, and i18npool::BreakIterator_th.

Definition at line 52 of file breakiteratorImpl.cxx.

References LBI.

sal_Int32 SAL_CALL i18npool::BreakIteratorImpl::nextCharBlock ( const OUString &  Text,
sal_Int32  nStartPos,
const css::lang::Locale &  nLocale,
sal_Int16  CharType 
)
overridevirtual

Definition at line 423 of file breakiteratorImpl.cxx.

References ch, and i18npool::iterateCodePoints().

sal_Int32 SAL_CALL i18npool::BreakIteratorImpl::nextScript ( const OUString &  Text,
sal_Int32  nStartPos,
sal_Int16  ScriptType 
)
overridevirtual

Definition at line 375 of file breakiteratorImpl.cxx.

References ch, getScriptClass(), and i18npool::iterateCodePoints().

Boundary SAL_CALL i18npool::BreakIteratorImpl::nextWord ( const OUString &  Text,
sal_Int32  nStartPos,
const css::lang::Locale &  nLocale,
sal_Int16  WordType 
)
overridevirtual

Reimplemented in i18npool::BreakIterator_Unicode, and i18npool::BreakIterator_CJK.

Definition at line 137 of file breakiteratorImpl.cxx.

References LBI, result, and i18npool::skipSpace().

sal_Int32 SAL_CALL i18npool::BreakIteratorImpl::previousCharacters ( const OUString &  Text,
sal_Int32  nStartPos,
const css::lang::Locale &  nLocale,
sal_Int16  nCharacterIteratorMode,
sal_Int32  nCount,
sal_Int32 &  nDone 
)
overridevirtual

Reimplemented in i18npool::BreakIterator_Unicode, and i18npool::BreakIterator_th.

Definition at line 62 of file breakiteratorImpl.cxx.

References LBI.

sal_Int32 SAL_CALL i18npool::BreakIteratorImpl::previousCharBlock ( const OUString &  Text,
sal_Int32  nStartPos,
const css::lang::Locale &  nLocale,
sal_Int16  CharType 
)
overridevirtual

Definition at line 440 of file breakiteratorImpl.cxx.

References ch, and i18npool::iterateCodePoints().

sal_Int32 SAL_CALL i18npool::BreakIteratorImpl::previousScript ( const OUString &  Text,
sal_Int32  nStartPos,
sal_Int16  ScriptType 
)
overridevirtual

Definition at line 354 of file breakiteratorImpl.cxx.

References ch, getScriptClass(), and i18npool::iterateCodePoints().

Boundary SAL_CALL i18npool::BreakIteratorImpl::previousWord ( const OUString &  Text,
sal_Int32  nStartPos,
const css::lang::Locale &  nLocale,
sal_Int16  WordType 
)
overridevirtual
sal_Bool SAL_CALL i18npool::BreakIteratorImpl::supportsService ( const OUString &  ServiceName)
overridevirtual

Reimplemented in i18npool::BreakIterator_Unicode.

Definition at line 663 of file breakiteratorImpl.cxx.

References cppu::supportsService().

Member Data Documentation

css::lang::Locale i18npool::BreakIteratorImpl::aLocale
private

Definition at line 112 of file breakiteratorImpl.hxx.

Referenced by getLocaleSpecificBreakIterator().

std::vector<lookupTableItem> i18npool::BreakIteratorImpl::lookupTable
private
css::uno::Reference< css::uno::XComponentContext > i18npool::BreakIteratorImpl::m_xContext
private
css::i18n::Boundary i18npool::BreakIteratorImpl::result
protected
css::uno::Reference< XBreakIterator > i18npool::BreakIteratorImpl::xBI
private

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