LibreOffice Module svl (master) 1
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes | List of all members
svl::SharedString Class Reference

#include <sharedstring.hxx>

Public Member Functions

 SharedString ()=default
 
 SharedString (rtl_uString *pData, rtl_uString *pDataIgnoreCase)
 
 SharedString (const OUString &rStr)
 
 SharedString (const SharedString &r)
 
 SharedString (SharedString &&r) noexcept
 
 ~SharedString ()
 
SharedStringoperator= (const SharedString &r)
 
SharedStringoperator= (SharedString &&r) noexcept
 
bool operator== (const SharedString &r) const
 
bool operator!= (const SharedString &r) const
 
const OUString & getString () const
 
const OUString & getIgnoreCaseString () const
 
rtl_uString * getData ()
 
const rtl_uString * getData () const
 
rtl_uString * getDataIgnoreCase ()
 
const rtl_uString * getDataIgnoreCase () const
 
bool isValid () const
 
bool isEmpty () const
 
sal_Int32 getLength () const
 

Static Public Member Functions

static const SharedStringgetEmptyString ()
 

Static Public Attributes

static const OUString EMPTY_STRING
 

Private Attributes

rtl_uString * mpData = nullptr
 
rtl_uString * mpDataIgnoreCase = nullptr
 

Detailed Description

Definition at line 20 of file sharedstring.hxx.

Constructor & Destructor Documentation

◆ SharedString() [1/5]

svl::SharedString::SharedString ( )
default

References getLength(), and getString().

◆ SharedString() [2/5]

svl::SharedString::SharedString ( rtl_uString *  pData,
rtl_uString *  pDataIgnoreCase 
)
inline

Definition at line 57 of file sharedstring.hxx.

References mpData, mpDataIgnoreCase, and pData.

◆ SharedString() [3/5]

svl::SharedString::SharedString ( const OUString &  rStr)
inlineexplicit

Definition at line 66 of file sharedstring.hxx.

References mpData, and pData.

◆ SharedString() [4/5]

svl::SharedString::SharedString ( const SharedString r)
inline

Definition at line 71 of file sharedstring.hxx.

References mpData, and mpDataIgnoreCase.

◆ SharedString() [5/5]

svl::SharedString::SharedString ( SharedString &&  r)
inlinenoexcept

Definition at line 79 of file sharedstring.hxx.

◆ ~SharedString()

svl::SharedString::~SharedString ( )
inline

Definition at line 85 of file sharedstring.hxx.

References mpData, and mpDataIgnoreCase.

Member Function Documentation

◆ getData() [1/2]

rtl_uString * svl::SharedString::getData ( )
inline

Definition at line 123 of file sharedstring.hxx.

References mpData.

◆ getData() [2/2]

const rtl_uString * svl::SharedString::getData ( ) const
inline

Definition at line 128 of file sharedstring.hxx.

References mpData.

◆ getDataIgnoreCase() [1/2]

rtl_uString * svl::SharedString::getDataIgnoreCase ( )
inline

Definition at line 133 of file sharedstring.hxx.

References mpDataIgnoreCase.

◆ getDataIgnoreCase() [2/2]

const rtl_uString * svl::SharedString::getDataIgnoreCase ( ) const
inline

Definition at line 138 of file sharedstring.hxx.

References mpDataIgnoreCase.

◆ getEmptyString()

const SharedString & svl::SharedString::getEmptyString ( )
static

Definition at line 16 of file sharedstring.cxx.

References EMPTY_STRING.

Referenced by svl::SharedStringPool::SharedStringPool().

◆ getIgnoreCaseString()

const OUString & svl::SharedString::getIgnoreCaseString ( ) const
inline

Definition at line 118 of file sharedstring.hxx.

References EMPTY_STRING, and mpDataIgnoreCase.

◆ getLength()

sal_Int32 svl::SharedString::getLength ( ) const
inline

Definition at line 153 of file sharedstring.hxx.

References mpData.

◆ getString()

const OUString & svl::SharedString::getString ( ) const
inline

Definition at line 113 of file sharedstring.hxx.

References EMPTY_STRING, and mpData.

◆ isEmpty()

bool svl::SharedString::isEmpty ( ) const
inline

Definition at line 148 of file sharedstring.hxx.

References mpData.

◆ isValid()

bool svl::SharedString::isValid ( ) const
inline

Definition at line 143 of file sharedstring.hxx.

References mpData.

◆ operator!=()

bool svl::SharedString::operator!= ( const SharedString r) const
inline

Definition at line 108 of file sharedstring.hxx.

References operator==().

◆ operator=() [1/2]

SharedString & svl::SharedString::operator= ( const SharedString r)

Definition at line 26 of file sharedstring.cxx.

References mpData, and mpDataIgnoreCase.

◆ operator=() [2/2]

SharedString & svl::SharedString::operator= ( SharedString &&  r)
inlinenoexcept

Definition at line 93 of file sharedstring.hxx.

◆ operator==()

bool svl::SharedString::operator== ( const SharedString r) const

Definition at line 47 of file sharedstring.cxx.

References mpData.

Referenced by operator!=().

Member Data Documentation

◆ EMPTY_STRING

const OUString svl::SharedString::EMPTY_STRING
static

◆ mpData

rtl_uString* svl::SharedString::mpData = nullptr
private

◆ mpDataIgnoreCase

rtl_uString* svl::SharedString::mpDataIgnoreCase = nullptr
private

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