diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-07 12:15:28 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-08 15:44:33 -0400 |
commit | f4bda54cdaf13cf96ff7c9327036568825c8c323 (patch) | |
tree | 8fa25fe11fdc329e3a8a9b6a2750b75a7dd63577 /include/svl/sharedstring.hxx | |
parent | 6ddcbf4b2fddbb1bad2da05fc6ced1046493d058 (diff) |
Re-implement interning in order to return both string arrays.
One is for the cased string and the other one for the non-cased one.
Change-Id: I798687f2efecaaea73a09e0b3348f85a9d9e8c07
Diffstat (limited to 'include/svl/sharedstring.hxx')
-rw-r--r-- | include/svl/sharedstring.hxx | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/include/svl/sharedstring.hxx b/include/svl/sharedstring.hxx new file mode 100644 index 000000000000..062d0649679c --- /dev/null +++ b/include/svl/sharedstring.hxx @@ -0,0 +1,41 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef SVL_SHAREDSTRING_HXX +#define SVL_SHAREDSTRING_HXX + +#include "svl/svldllapi.h" +#include "rtl/ustring.hxx" + +namespace svl { + +class SVL_DLLPUBLIC SharedString +{ + rtl_uString* mpData; + rtl_uString* mpDataIgnoreCase; +public: + SharedString(); + SharedString( rtl_uString* pData, rtl_uString* pDataIgnoreCase ); + SharedString( const SharedString& r ); + ~SharedString(); + + SharedString& operator= ( const SharedString& r ); + + rtl_uString* getData(); + const rtl_uString* getData() const; + + rtl_uString* getDataIgnoreCase(); + const rtl_uString* getDataIgnoreCase() const; +}; + +} + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |