Lines Matching refs:arKey
107 ZEND_API ulong zend_hash_func(const char *arKey, uint nKeyLength) in zend_hash_func() argument
109 return zend_inline_hash_func(arKey, nKeyLength); in zend_hash_func()
242 ZEND_API int _zend_hash_add_or_update(HashTable *ht, const char *arKey, uint nKeyLength, void *pDat… in _zend_hash_add_or_update() argument
257 h = zend_inline_hash_func(arKey, nKeyLength); in _zend_hash_add_or_update()
262 if (p->arKey == arKey || in _zend_hash_add_or_update()
263 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in _zend_hash_add_or_update()
282 if (IS_INTERNED(arKey)) { in _zend_hash_add_or_update()
284 p->arKey = arKey; in _zend_hash_add_or_update()
287 p->arKey = (const char*)(p + 1); in _zend_hash_add_or_update()
288 memcpy((char*)p->arKey, arKey, nKeyLength); in _zend_hash_add_or_update()
308 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
325 if (p->arKey == arKey || in _zend_hash_quick_add_or_update()
326 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in _zend_hash_quick_add_or_update()
345 if (IS_INTERNED(arKey)) { in _zend_hash_quick_add_or_update()
347 p->arKey = arKey; in _zend_hash_quick_add_or_update()
350 p->arKey = (const char*)(p + 1); in _zend_hash_quick_add_or_update()
351 memcpy((char*)p->arKey, arKey, nKeyLength); in _zend_hash_quick_add_or_update()
375 ZEND_API int zend_hash_add_empty_element(HashTable *ht, const char *arKey, uint nKeyLength) in zend_hash_add_empty_element() argument
379 return zend_hash_add(ht, arKey, nKeyLength, &dummy, sizeof(void *), NULL); in zend_hash_add_empty_element()
420 p->arKey = NULL; in _zend_hash_index_update_or_next_insert()
508 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
516 h = zend_inline_hash_func(arKey, nKeyLength); in zend_hash_del_key_or_index()
525 || !memcmp(p->arKey, arKey, nKeyLength))) { /* String index */ in zend_hash_del_key_or_index()
698 hash_key.arKey = p->arKey; in zend_hash_apply_with_arguments()
761 zend_hash_quick_update(target, p->arKey, p->nKeyLength, p->h, p->pData, size, &new_entry); in zend_hash_copy()
788 …if (_zend_hash_quick_add_or_update(target, p->arKey, p->nKeyLength, p->h, p->pData, size, &t, mode… in _zend_hash_merge()
806 hash_key.arKey = p->arKey; in zend_hash_replace_checker_wrapper()
824 …if (zend_hash_quick_update(target, p->arKey, p->nKeyLength, p->h, p->pData, size, &t)==SUCCESS && … in zend_hash_merge_ex()
838 ZEND_API int zend_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData) in zend_hash_find() argument
846 h = zend_inline_hash_func(arKey, nKeyLength); in zend_hash_find()
851 if (p->arKey == arKey || in zend_hash_find()
852 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in zend_hash_find()
862 ZEND_API int zend_hash_quick_find(const HashTable *ht, const char *arKey, uint nKeyLength, ulong h,… in zend_hash_quick_find() argument
875 if (p->arKey == arKey || in zend_hash_quick_find()
876 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in zend_hash_quick_find()
886 ZEND_API int zend_hash_exists(const HashTable *ht, const char *arKey, uint nKeyLength) in zend_hash_exists() argument
894 h = zend_inline_hash_func(arKey, nKeyLength); in zend_hash_exists()
899 if (p->arKey == arKey || in zend_hash_exists()
900 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in zend_hash_exists()
909 ZEND_API int zend_hash_quick_exists(const HashTable *ht, const char *arKey, uint nKeyLength, ulong … in zend_hash_quick_exists() argument
922 if (p->arKey == arKey || in zend_hash_quick_exists()
923 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in zend_hash_quick_exists()
1079 *str_index = estrndup(p->arKey, p->nKeyLength - 1); in zend_hash_get_current_key_ex()
1081 *str_index = (char*)p->arKey; in zend_hash_get_current_key_ex()
1106 Z_STRVAL_P(key) = IS_INTERNED(p->arKey) ? (char*)p->arKey : estrndup(p->arKey, p->nKeyLength - 1); in zend_hash_get_current_key_zval_ex()
1185 if (p->arKey == str_index || in zend_hash_update_current_key_ex()
1188 memcmp(p->arKey, str_index, str_length) == 0)) { in zend_hash_update_current_key_ex()
1195 if (q->arKey == str_index || in zend_hash_update_current_key_ex()
1197 memcmp(q->arKey, str_index, str_length) == 0)) { in zend_hash_update_current_key_ex()
1240 if ((IS_INTERNED(p->arKey) != IS_INTERNED(str_index)) || in zend_hash_update_current_key_ex()
1241 (!IS_INTERNED(p->arKey) && p->nKeyLength != str_length)) { in zend_hash_update_current_key_ex()
1279 p->arKey = str_index; in zend_hash_update_current_key_ex()
1281 p->arKey = (const char*)(p+1); in zend_hash_update_current_key_ex()
1282 memcpy((char*)p->arKey, str_index, str_length); in zend_hash_update_current_key_ex()
1320 …zend_hash_quick_update(removed, p->arKey, p->nKeyLength, p->h, p->pData, sizeof(zval *), &new_entr… in _zend_hash_splice()
1344 q->arKey = NULL; in _zend_hash_splice()
1461 result = memcmp(p1->arKey, p2->arKey, p1->nKeyLength); in zend_hash_compare()
1477 if (zend_hash_quick_find(ht2, p1->arKey, p1->nKeyLength, p1->h, &pData2)==FAILURE) { in zend_hash_compare()
1545 zend_output_debug_string(0, "pListTail has key %s\n", p->arKey); in zend_hash_display_pListTail()
1562 zend_output_debug_string(0, "%s <==> 0x%lX\n", p->arKey, p->h); in zend_hash_display()
1569 zend_output_debug_string(0, "%s <==> 0x%lX\n", p->arKey, p->h); in zend_hash_display()