1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #ifndef INCLUDED_SVL_SHAREDSTRING_HXX
11 #define INCLUDED_SVL_SHAREDSTRING_HXX
13 #include <svl/svldllapi.h>
14 #include <rtl/ustring.hxx>
18 class SVL_DLLPUBLIC SharedString
21 rtl_uString
* mpDataIgnoreCase
;
24 static SharedString
getEmptyString();
27 SharedString( rtl_uString
* pData
, rtl_uString
* pDataIgnoreCase
);
28 explicit SharedString( const OUString
& rStr
);
29 SharedString( const SharedString
& r
);
30 SharedString(SharedString
&& r
) noexcept
;
33 SharedString
& operator= ( const SharedString
& r
);
34 SharedString
& operator=(SharedString
&& r
) noexcept
;
36 bool operator== ( const SharedString
& r
) const;
37 bool operator!= ( const SharedString
& r
) const;
39 OUString
getString() const;
41 rtl_uString
* getData();
42 const rtl_uString
* getData() const;
44 rtl_uString
* getDataIgnoreCase();
45 const rtl_uString
* getDataIgnoreCase() const;
50 sal_Int32
getLength() const;
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */