update credits
[LibreOffice.git] / include / svl / sharedstring.hxx
blobfe9e851f045d20f4ad4702646d80df8655e67efc
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 SharedString( const OUString& rStr );
29 SharedString( const SharedString& r );
30 ~SharedString();
32 SharedString& operator= ( const SharedString& r );
34 bool operator== ( const SharedString& r ) const;
35 bool operator!= ( const SharedString& r ) const;
37 OUString getString() const;
39 rtl_uString* getData();
40 const rtl_uString* getData() const;
42 rtl_uString* getDataIgnoreCase();
43 const rtl_uString* getDataIgnoreCase() const;
45 bool isValid() const;
46 bool isEmpty() const;
48 sal_Int32 getLength() const;
53 #endif
55 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */