Lines Matching refs:hash_arr
769 static int append_key_value(smart_str* loc_name, HashTable* hash_arr, char* key_name) in append_key_value() argument
773 if(zend_hash_find(hash_arr , key_name , strlen(key_name) + 1 ,(void **)&ele_value ) == SUCCESS ) { in append_key_value()
810 static int append_multiple_key_values(smart_str* loc_name, HashTable* hash_arr, char* key_name TSRM… in append_multiple_key_values() argument
818 …if( zend_hash_find( hash_arr , key_name , strlen(key_name) + 1 ,(void **)&ele_value ) == SUCCESS )… in append_multiple_key_values()
863 …if( zend_hash_find( hash_arr , cur_key_name , strlen(cur_key_name) + 1,(void **)&ele_value ) == SU… in append_multiple_key_values()
912 HashTable* hash_arr = NULL; in PHP_FUNCTION() local
925 hash_arr = HASH_OF( arr ); in PHP_FUNCTION()
927 if( !hash_arr || zend_hash_num_elements( hash_arr ) == 0 ) in PHP_FUNCTION()
931 result = append_key_value(loc_name, hash_arr, LOC_GRANDFATHERED_LANG_TAG); in PHP_FUNCTION()
940 result = append_key_value(loc_name, hash_arr , LOC_LANG_TAG); in PHP_FUNCTION()
952 result = append_multiple_key_values(loc_name, hash_arr , LOC_EXTLANG_TAG TSRMLS_CC); in PHP_FUNCTION()
958 result = append_key_value(loc_name, hash_arr , LOC_SCRIPT_TAG); in PHP_FUNCTION()
964 result = append_key_value( loc_name, hash_arr , LOC_REGION_TAG); in PHP_FUNCTION()
970 result = append_multiple_key_values( loc_name, hash_arr , LOC_VARIANT_TAG TSRMLS_CC); in PHP_FUNCTION()
976 result = append_multiple_key_values( loc_name, hash_arr , LOC_PRIVATE_TAG TSRMLS_CC); in PHP_FUNCTION()
1037 static int add_array_entry(const char* loc_name, zval* hash_arr, char* key_name TSRMLS_DC) in add_array_entry() argument
1065 add_assoc_string( hash_arr, cur_key_name , token ,TRUE ); in add_array_entry()
1069 add_assoc_string( hash_arr, cur_key_name , token , TRUE ); in add_array_entry()
1078 add_assoc_string( hash_arr, key_name , key_value , TRUE ); in add_array_entry()
1423 static char* lookup_loc_range(const char* loc_range, HashTable* hash_arr, int canonicalize TSRMLS_… in lookup_loc_range() argument
1439 cur_arr = ecalloc(zend_hash_num_elements(hash_arr)*2, sizeof(char *)); in lookup_loc_range()
1441 for(zend_hash_internal_pointer_reset(hash_arr); in lookup_loc_range()
1442 zend_hash_has_more_elements(hash_arr) == SUCCESS; in lookup_loc_range()
1443 zend_hash_move_forward(hash_arr)) { in lookup_loc_range()
1445 if (zend_hash_get_current_data(hash_arr, (void**)&ele_value) == FAILURE) { in lookup_loc_range()
1549 HashTable* hash_arr = NULL; in PHP_FUNCTION() local
1567 hash_arr = HASH_OF(arr); in PHP_FUNCTION()
1569 if( !hash_arr || zend_hash_num_elements( hash_arr ) == 0 ) { in PHP_FUNCTION()
1573 result = lookup_loc_range(loc_range, hash_arr, boolCanonical TSRMLS_CC); in PHP_FUNCTION()