diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-02 11:29:42 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-04 19:15:22 -0400 |
commit | 4d076d4ceeb05061b6b0699c19af9ba5ed0fcd00 (patch) | |
tree | 1cca2e9da7b436a91addc3590d5a209e61129be7 /include | |
parent | 5d3ea0cde3f4c61832c48281e75dabd22621a893 (diff) |
Write some rudimentary tests for the new shared string pool class.
Change-Id: Ie66de46d69f664839aa0a2d056cd3b8df4d4989b
Diffstat (limited to 'include')
-rw-r--r-- | include/svl/stringpool.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/svl/stringpool.hxx b/include/svl/stringpool.hxx index 25415684c9fd..26785e3d31aa 100644 --- a/include/svl/stringpool.hxx +++ b/include/svl/stringpool.hxx @@ -34,11 +34,11 @@ class SVL_DLLPUBLIC StringPool StrHashType maStrPool; StrHashType maStrPoolUpper; StrIdMapType maToUpperMap; - CharClass* mpCharClass; + const CharClass* mpCharClass; public: StringPool(); - StringPool( CharClass* pCharClass ); + StringPool( const CharClass* pCharClass ); /** * Intern a string object into the shared string pool. @@ -60,6 +60,8 @@ public: */ const rtl_uString* getIdentifier( const OUString& rStr ) const; + const rtl_uString* getIdentifierIgnoreCase( const OUString& rStr ) const; + private: InsertResultType findOrInsert( StrHashType& rPool, const OUString& rStr ) const; }; |