Lines Matching refs:Key

63     void SetObject(ByteString const Key, void *pObject)  in SetObject()  argument
64 { m_Tag = TAG_USED; m_Key = Key; m_pObject = pObject; } in SetObject()
135 sal_uIntPtr HashTable::Hash(ByteString const& Key) const in Hash()
156 for (i=0,n=Key.Len(); i<n; i++) in Hash()
158 h = (h<<4) + (sal_uIntPtr)(sal_uInt16)Key.GetBuffer()[i]; in Hash()
171 sal_uIntPtr HashTable::DHash(ByteString const& Key, sal_uIntPtr lOldHash) const in DHash() argument
176 for (i=0,n=Key.Len(); i<n; i++) in DHash()
179 lHash += (sal_uIntPtr)(sal_uInt16)Key.GetBuffer()[i]; in DHash()
207 sal_Bool HashTable::Insert(ByteString const& Key, void* pObject) in Insert() argument
220 if (FindPos(Key) != NULL ) in Insert()
223 sal_uIntPtr lPos = Hash(Key); in Insert()
230 pItem->SetObject(Key, pObject); in Insert()
242 lPos = DHash(Key,lPos); in Insert()
247 pItem->SetObject(Key, pObject); in Insert()
270 pItem->SetObject(Key, pObject); in Insert()
275 HashItem* HashTable::FindPos(ByteString const& Key) const in FindPos()
284 sal_uIntPtr lPos = Hash(Key); in FindPos()
288 && pItem->GetKey() == Key) in FindPos()
297 lPos = DHash(Key,lPos); in FindPos()
301 && pItem->GetKey() == Key) in FindPos()
321 && pItem->GetKey() == Key; in FindPos()
336 void* HashTable::Find(ByteString const& Key) const in Find()
343 HashItem *pItem = FindPos(Key); in Find()
346 && pItem->GetKey() == Key) in Find()
352 void* HashTable::Delete(ByteString const& Key) in Delete() argument
361 HashItem *pItem = FindPos(Key); in Delete()
364 && pItem->GetKey() == Key) in Delete()