LibreOffice Module ucb (master)  1
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ucb_impl::Regexp Class Reference

#include <regexp.hxx>

Public Types

enum  Kind {
  KIND_PREFIX,
  KIND_AUTHORITY,
  KIND_DOMAIN
}
 

Public Member Functions

bool operator== (Regexp const &rOther) const
 
bool isDefault () const
 
Kind getKind () const
 
bool matches (OUString const &rString) const
 
OUString getRegexp () const
 

Static Public Member Functions

static Regexp parse (OUString const &rRegexp)
 

Private Member Functions

 Regexp (Kind eTheKind, OUString const &rThePrefix, bool bTheEmptyDomain, OUString const &rTheInfix, bool bTheTranslation, OUString const &rTheReversePrefix)
 

Private Attributes

Kind m_eKind
 
OUString m_aPrefix
 
OUString m_aInfix
 
OUString m_aReversePrefix
 
bool m_bEmptyDomain
 
bool m_bTranslation
 

Detailed Description

Definition at line 28 of file regexp.hxx.

Member Enumeration Documentation

Enumerator
KIND_PREFIX 
KIND_AUTHORITY 
KIND_DOMAIN 

Definition at line 31 of file regexp.hxx.

Constructor & Destructor Documentation

Regexp::Regexp ( Kind  eTheKind,
OUString const &  rThePrefix,
bool  bTheEmptyDomain,
OUString const &  rTheInfix,
bool  bTheTranslation,
OUString const &  rTheReversePrefix 
)
inlineprivate

Definition at line 37 of file regexp.cxx.

References KIND_DOMAIN, m_aInfix, m_aReversePrefix, m_bEmptyDomain, m_bTranslation, and m_eKind.

Referenced by parse().

Member Function Documentation

Kind ucb_impl::Regexp::getKind ( ) const
inline

Definition at line 43 of file regexp.hxx.

References m_eKind.

Referenced by ucb_impl::RegexpMap< Val >::add(), and ucb_impl::RegexpMap< Val >::find().

OUString Regexp::getRegexp ( ) const
bool ucb_impl::Regexp::isDefault ( ) const
inline

Definition at line 40 of file regexp.hxx.

References KIND_PREFIX, m_aPrefix, and m_eKind.

Referenced by ucb_impl::RegexpMap< Val >::add(), and ucb_impl::RegexpMap< Val >::find().

bool Regexp::matches ( OUString const &  rString) const

Definition at line 80 of file regexp.cxx.

References KIND_AUTHORITY, KIND_DOMAIN, KIND_PREFIX, m_aInfix, m_aPrefix, m_bEmptyDomain, and m_eKind.

bool ucb_impl::Regexp::operator== ( Regexp const &  rOther) const
inline

Definition at line 65 of file regexp.hxx.

References m_aInfix, m_aPrefix, and m_eKind.

Regexp Regexp::parse ( OUString const &  rRegexp)
static

Member Data Documentation

OUString ucb_impl::Regexp::m_aInfix
private

Definition at line 54 of file regexp.hxx.

Referenced by getRegexp(), matches(), operator==(), and Regexp().

OUString ucb_impl::Regexp::m_aPrefix
private

Definition at line 53 of file regexp.hxx.

Referenced by getRegexp(), isDefault(), matches(), and operator==().

OUString ucb_impl::Regexp::m_aReversePrefix
private

Definition at line 55 of file regexp.hxx.

Referenced by getRegexp(), and Regexp().

bool ucb_impl::Regexp::m_bEmptyDomain
private

Definition at line 56 of file regexp.hxx.

Referenced by getRegexp(), matches(), and Regexp().

bool ucb_impl::Regexp::m_bTranslation
private

Definition at line 57 of file regexp.hxx.

Referenced by getRegexp(), and Regexp().

Kind ucb_impl::Regexp::m_eKind
private

Definition at line 52 of file regexp.hxx.

Referenced by getKind(), getRegexp(), isDefault(), matches(), operator==(), and Regexp().


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