10#ifndef INCLUDED_SVL_SHAREDSTRING_HXX
11#define INCLUDED_SVL_SHAREDSTRING_HXX
14#include <rtl/ustring.hxx>
22 rtl_uString* mpData =
nullptr;
23 rtl_uString* mpDataIgnoreCase =
nullptr;
30 SharedString( rtl_uString* pData, rtl_uString* pDataIgnoreCase );
43 const OUString & getIgnoreCaseString()
const;
45 rtl_uString* getData();
46 const rtl_uString* getData()
const;
48 rtl_uString* getDataIgnoreCase();
49 const rtl_uString* getDataIgnoreCase()
const;
58 mpData(
pData), mpDataIgnoreCase(pDataIgnoreCase)
61 rtl_uString_acquire(
mpData);
68 rtl_uString_acquire(
mpData);
74 rtl_uString_acquire(
mpData);
80 : mpData(std::exchange(r.mpData,
nullptr))
81 , mpDataIgnoreCase(std::exchange(r.mpDataIgnoreCase,
nullptr))
88 rtl_uString_release(
mpData);
98 rtl_uString_release(mpData);
100 rtl_uString_release(mpDataIgnoreCase);
102 mpData = std::exchange(r.mpData,
nullptr);
103 mpDataIgnoreCase = std::exchange(r.mpDataIgnoreCase,
nullptr);
rtl_uString * mpDataIgnoreCase
static const OUString EMPTY_STRING
const OUString & getString() const
SharedString & operator=(const SharedString &r)
rtl_uString * getDataIgnoreCase()
const OUString & getIgnoreCaseString() const
bool operator==(const SharedString &r) const
sal_Int32 getLength() const
bool operator!=(const SharedString &r) const
std::unique_ptr< sal_Int32[]> pData
double getLength(const B2DPolygon &rCandidate)
OUString getString(const Any &_rAny)
constexpr bool operator!=(TypedWhichId< T > const &lhs, TypedWhichId< T > rhs)
constexpr bool operator==(TypedWhichId< T > const &lhs, TypedWhichId< T > rhs)