Lines Matching refs:entry
117 if (_string_id_hash *entry = _FindString(id))
118 result = entry->data;
181 _string_id_hash *entry = NULL;
183 entry = _AddString(NULL, id, false);
185 entry = _AddString((char*)data, id, false);
186 if (!entry)
255 while (_string_id_hash *entry = fHashTable[i]) {
256 fHashTable[i] = entry->next;
257 delete entry;
284 while (_string_id_hash *entry = fHashTable[i]) {
285 fHashTable[i] = entry->next;
286 int32 newPos = entry->id % newSize;
287 entry->next = newHashTable[newPos];
288 newHashTable[newPos] = entry;
303 /*! \brief Adds an entry to the id->string hash table.
309 \return the hash table entry or \c NULL, if something went wrong
314 _string_id_hash *entry = NULL;
316 entry = new(nothrow) _string_id_hash;
317 if (entry) {
318 entry->assign_string(str, false);
319 entry->id = id;
320 entry->data_alloced = wasMalloced;
322 entry->next = fHashTable[pos];
323 fHashTable[pos] = entry;
325 return entry;
329 /*! \brief Returns the hash table entry for a given ID.
331 \return the hash table entry or \c NULL, if there is no entry with this ID
336 _string_id_hash *entry = NULL;
339 entry = fHashTable[pos];
340 while (entry != NULL && entry->id != id)
341 entry = entry->next;
343 return entry;
359 /*! \brief Creates an uninitialized hash table entry.
380 /*! \brief Sets the string of the hash table entry.
383 will be freed on destruction. If \c false, the entry points to the