20 #include <rtl/ustring.hxx>
23 #include <boost/functional/hash.hpp>
25 #include <unordered_map>
35 std::size_t
operator()(
const std::pair<sal_uInt16,OUString> &pair)
const
38 boost::hash_combine(seed, pair.first);
39 boost::hash_combine(seed, pair.second.hashCode());
43 std::unordered_map< std::pair<sal_uInt16, OUString>,
48 sal_uInt16
get( sal_uInt16 nKeyPrefix,
const OUString& rLName )
const;
55 assert(inserted &&
"duplicate token");
63 return (*aIter).second;
83 const OUString& rLName )
const
85 return m_pImpl->get( nKeyPrefix, rLName );
sal_uInt16 get(sal_uInt16 nKeyPrefix, const OUString &rLName) const
std::unordered_map< std::pair< sal_uInt16, OUString >, sal_uInt16, PairHash > m_aPrefixAndNameToTokenMap
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
DECL_LISTENERMULTIPLEXER_END void SAL_CALL inserted(::sal_Int32 ID) override
void insert(const SvXMLTokenMapEntry &rEntry)
sal_uInt16 Get(sal_uInt16 nPrefix, const OUString &rLName) const
SvXMLTokenMap(const SvXMLTokenMapEntry *pMap)
std::unique_ptr< SvXMLTokenMap_Impl > m_pImpl
enum xmloff::token::XMLTokenEnum eLocalName
std::size_t operator()(const std::pair< sal_uInt16, OUString > &pair) const
const OUString & GetXMLToken(enum XMLTokenEnum eToken)
return the OUString representation for eToken
Handling of tokens in XML: