Bump version to 6.4-15
[LibreOffice.git] / include / svl / sharedstring.hxx
blob71aad67ba2c6951043b4eb000f3c95be86493beb
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #ifndef INCLUDED_SVL_SHAREDSTRING_HXX
11 #define INCLUDED_SVL_SHAREDSTRING_HXX
13 #include <svl/svldllapi.h>
14 #include <rtl/ustring.hxx>
16 namespace svl {
18 class SVL_DLLPUBLIC SharedString
20 rtl_uString* mpData;
21 rtl_uString* mpDataIgnoreCase;
22 public:
24 static SharedString getEmptyString();
26 SharedString();
27 SharedString( rtl_uString* pData, rtl_uString* pDataIgnoreCase );
28 explicit SharedString( const OUString& rStr );
29 SharedString( const SharedString& r );
30 SharedString(SharedString&& r) noexcept;
31 ~SharedString();
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;
47 bool isValid() const;
48 bool isEmpty() const;
50 sal_Int32 getLength() const;
55 #endif
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */