From 878439cc9293e3f5a00f1ffd8d2a13e4fc1b804f Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Tue, 1 Oct 2013 20:57:56 -0400 Subject: Move this string pool code to svl. Change-Id: I1379fbc377607be8831133d64db2e14f8c75bff8 --- include/svl/stringpool.hxx | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 include/svl/stringpool.hxx (limited to 'include/svl') 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 + +namespace svl { + +class SVL_DLLPUBLIC StringPool +{ + typedef boost::unordered_set StrHashType; + StrHashType maStrPool; +public: + StringPool(); + + rtl_uString* intern( const OUString& rStr ); +}; + +} + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit