24#include <unordered_map>
28typedef std::unordered_map< const char*, PPPOptimizerTokenEnum, rtl::CStringHash, rtl::CStringEqual>
TypeNameHashMap;
32 static std::mutex s_aHashMapProtection;
33 return s_aHashMapProtection;
123 for ( ; pPtr < pEnd; pPtr++ )
124 (*pH)[ pPtr->pS ] = pPtr->pE;
129 size_t i, nLen = rToken.size();
130 std::unique_ptr<char[]> pBuf(
new char[ nLen + 1 ]);
131 for (
i = 0;
i < nLen;
i++ )
132 pBuf[
i ] =
static_cast<char>(rToken[
i ]);
134 TypeNameHashMap::iterator aHashIter(
pHashMap->find( pBuf.get() ) );
136 eRetValue = (*aHashIter).second;
std::unordered_map< OUString, MSO_SPT > TypeNameHashMap
#define SAL_N_ELEMENTS(arr)
std::unordered_map< const char *, PPPOptimizerTokenEnum, rtl::CStringHash, rtl::CStringEqual > TypeNameHashMap
static TypeNameHashMap * pHashMap
PPPOptimizerTokenEnum TKGet(std::u16string_view rToken)
const TokenTable pTokenTableArray[]
static std::mutex & getHashMapMutex()
@ STR_WARN_UNSAVED_PRESENTATION
@ STR_SUN_OPTIMIZATION_WIZARD2
@ STR_OPTIMIZING_GRAPHICS
@ STR_CREATING_OLE_REPLACEMENTS
@ TK_DeleteUnusedMasterPages
@ STR_DUPLICATING_PRESENTATION
@ STR_NO_OLE_OBJECTS_DESC