diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-01 20:57:56 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-04 19:15:21 -0400 |
commit | 878439cc9293e3f5a00f1ffd8d2a13e4fc1b804f (patch) | |
tree | 3f486ae2c83dea424096517b12ad3bbe048f1ec1 /include | |
parent | 6cea76189fb8d9fbb358f757157df66c7ea31c85 (diff) |
Move this string pool code to svl.
Change-Id: I1379fbc377607be8831133d64db2e14f8c75bff8
Diffstat (limited to 'include')
-rw-r--r-- | include/svl/stringpool.hxx | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/svl/stringpool.hxx b/include/svl/stringpool.hxx new file mode 100644 index 000000000000..643c8466c0bc --- /dev/null +++ b/include/svl/stringpool.hxx @@ -0,0 +1,34 @@ +/* -*- 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_STRINGPOOL_HXX +#define SVL_STRINGPOOL_HXX + +#include "svl/svldllapi.h" +#include "rtl/ustring.hxx" + +#include <boost/unordered_set.hpp> + +namespace svl { + +class SVL_DLLPUBLIC StringPool +{ + typedef boost::unordered_set<OUString, OUStringHash> StrHashType; + StrHashType maStrPool; +public: + StringPool(); + + rtl_uString* intern( const OUString& rStr ); +}; + +} + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |