LibreOffice Module svl (master) 1
|
Storage for pool of shared strings. More...
#include <sharedstringpool.hxx>
Classes | |
struct | Impl |
Public Member Functions | |
SharedStringPool (const CharClass &rCharClass) | |
~SharedStringPool () | |
SharedString | intern (const OUString &rStr) |
Intern a string object into the shared string pool. More... | |
void | purge () |
Go through all string objects in the pool, and clear those that are no longer used outside of the pool. More... | |
size_t | getCount () const |
size_t | getCountIgnoreCase () const |
Private Member Functions | |
SharedStringPool (const SharedStringPool &)=delete | |
SharedStringPool & | operator= (const SharedStringPool &)=delete |
Private Attributes | |
std::unique_ptr< Impl > | mpImpl |
Storage for pool of shared strings.
It also provides mapping from original-cased strings to upper-cased strings for case insensitive operations.
Definition at line 28 of file sharedstringpool.hxx.
|
privatedelete |
svl::SharedStringPool::SharedStringPool | ( | const CharClass & | rCharClass | ) |
Definition at line 70 of file sharedstringpool.cxx.
References svl::SharedString::EMPTY_STRING, svl::SharedString::getEmptyString(), and intern().
svl::SharedStringPool::~SharedStringPool | ( | ) |
Definition at line 78 of file sharedstringpool.cxx.
size_t svl::SharedStringPool::getCount | ( | ) | const |
Definition at line 167 of file sharedstringpool.cxx.
References mpImpl.
size_t svl::SharedStringPool::getCountIgnoreCase | ( | ) | const |
Definition at line 173 of file sharedstringpool.cxx.
References mpImpl.
SharedString svl::SharedStringPool::intern | ( | const OUString & | rStr | ) |
Intern a string object into the shared string pool.
rStr | string object to intern. |
Definition at line 80 of file sharedstringpool.cxx.
References mpImpl.
Referenced by SharedStringPool().
|
privatedelete |
void svl::SharedStringPool::purge | ( | ) |
Go through all string objects in the pool, and clear those that are no longer used outside of the pool.
Definition at line 116 of file sharedstringpool.cxx.
References mpImpl.
|
private |
Definition at line 31 of file sharedstringpool.hxx.
Referenced by getCount(), getCountIgnoreCase(), intern(), and purge().