Lines Matching refs:arKey
101 ZEND_API ulong zend_hash_func(const char *arKey, uint nKeyLength) in zend_hash_func() argument
103 return zend_inline_hash_func(arKey, nKeyLength); in zend_hash_func()
195 ZEND_API int _zend_hash_add_or_update(HashTable *ht, const char *arKey, uint nKeyLength, void *pDat… in _zend_hash_add_or_update() argument
215 h = zend_inline_hash_func(arKey, nKeyLength); in _zend_hash_add_or_update()
220 if (p->arKey == arKey || in _zend_hash_add_or_update()
221 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in _zend_hash_add_or_update()
246 if (IS_INTERNED(arKey)) { in _zend_hash_add_or_update()
251 p->arKey = arKey; in _zend_hash_add_or_update()
257 p->arKey = (const char*)(p + 1); in _zend_hash_add_or_update()
258 memcpy((char*)p->arKey, arKey, nKeyLength); in _zend_hash_add_or_update()
278 ZEND_API int _zend_hash_quick_add_or_update(HashTable *ht, const char *arKey, uint nKeyLength, ulon… in _zend_hash_quick_add_or_update() argument
297 if (p->arKey == arKey || in _zend_hash_quick_add_or_update()
298 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in _zend_hash_quick_add_or_update()
323 if (IS_INTERNED(arKey)) { in _zend_hash_quick_add_or_update()
328 p->arKey = arKey; in _zend_hash_quick_add_or_update()
334 p->arKey = (const char*)(p + 1); in _zend_hash_quick_add_or_update()
335 memcpy((char*)p->arKey, arKey, nKeyLength); in _zend_hash_quick_add_or_update()
359 ZEND_API int zend_hash_add_empty_element(HashTable *ht, const char *arKey, uint nKeyLength) in zend_hash_add_empty_element() argument
363 return zend_hash_add(ht, arKey, nKeyLength, &dummy, sizeof(void *), NULL); in zend_hash_add_empty_element()
416 p->arKey = NULL; in _zend_hash_index_update_or_next_insert()
486 ZEND_API int zend_hash_del_key_or_index(HashTable *ht, const char *arKey, uint nKeyLength, ulong h,… in zend_hash_del_key_or_index() argument
497 h = zend_inline_hash_func(arKey, nKeyLength); in zend_hash_del_key_or_index()
506 || !memcmp(p->arKey, arKey, nKeyLength))) { /* String index */ in zend_hash_del_key_or_index()
769 hash_key.arKey = p->arKey; in zend_hash_apply_with_arguments()
830 zend_hash_quick_update(target, p->arKey, p->nKeyLength, p->h, p->pData, size, &new_entry); in zend_hash_copy()
857 …if (_zend_hash_quick_add_or_update(target, p->arKey, p->nKeyLength, p->h, p->pData, size, &t, mode… in _zend_hash_merge()
875 hash_key.arKey = p->arKey; in zend_hash_replace_checker_wrapper()
893 …if (zend_hash_quick_update(target, p->arKey, p->nKeyLength, p->h, p->pData, size, &t)==SUCCESS && … in zend_hash_merge_ex()
903 ZEND_API ulong zend_get_hash_value(const char *arKey, uint nKeyLength) in zend_get_hash_value() argument
905 return zend_inline_hash_func(arKey, nKeyLength); in zend_get_hash_value()
913 ZEND_API int zend_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData) in zend_hash_find() argument
921 h = zend_inline_hash_func(arKey, nKeyLength); in zend_hash_find()
926 if (p->arKey == arKey || in zend_hash_find()
927 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in zend_hash_find()
937 ZEND_API int zend_hash_quick_find(const HashTable *ht, const char *arKey, uint nKeyLength, ulong h,… in zend_hash_quick_find() argument
952 if (p->arKey == arKey || in zend_hash_quick_find()
953 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in zend_hash_quick_find()
963 ZEND_API int zend_hash_exists(const HashTable *ht, const char *arKey, uint nKeyLength) in zend_hash_exists() argument
971 h = zend_inline_hash_func(arKey, nKeyLength); in zend_hash_exists()
976 if (p->arKey == arKey || in zend_hash_exists()
977 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in zend_hash_exists()
986 ZEND_API int zend_hash_quick_exists(const HashTable *ht, const char *arKey, uint nKeyLength, ulong … in zend_hash_quick_exists() argument
1001 if (p->arKey == arKey || in zend_hash_quick_exists()
1002 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in zend_hash_quick_exists()
1158 *str_index = estrndup(p->arKey, p->nKeyLength - 1); in zend_hash_get_current_key_ex()
1160 *str_index = (char*)p->arKey; in zend_hash_get_current_key_ex()
1246 if (p->arKey == str_index || in zend_hash_update_current_key_ex()
1249 memcmp(p->arKey, str_index, str_length) == 0)) { in zend_hash_update_current_key_ex()
1256 if (q->arKey == str_index || in zend_hash_update_current_key_ex()
1258 memcmp(q->arKey, str_index, str_length) == 0)) { in zend_hash_update_current_key_ex()
1359 if ((IS_INTERNED(p->arKey) != IS_INTERNED(str_index)) || in zend_hash_update_current_key_ex()
1360 (!IS_INTERNED(p->arKey) && p->nKeyLength != str_length)) { in zend_hash_update_current_key_ex()
1404 p->arKey = str_index; in zend_hash_update_current_key_ex()
1406 p->arKey = (const char*)(p+1); in zend_hash_update_current_key_ex()
1407 memcpy((char*)p->arKey, str_index, str_length); in zend_hash_update_current_key_ex()
1528 result = memcmp(p1->arKey, p2->arKey, p1->nKeyLength); in zend_hash_compare()
1544 if (zend_hash_quick_find(ht2, p1->arKey, p1->nKeyLength, p1->h, &pData2)==FAILURE) { in zend_hash_compare()
1612 zend_output_debug_string(0, "pListTail has key %s\n", p->arKey); in zend_hash_display_pListTail()
1629 zend_output_debug_string(0, "%s <==> 0x%lX\n", p->arKey, p->h); in zend_hash_display()
1636 zend_output_debug_string(0, "%s <==> 0x%lX\n", p->arKey, p->h); in zend_hash_display()