Lines Matching refs:hash_arr
781 static int append_key_value(smart_str* loc_name, HashTable* hash_arr, char* key_name) in append_key_value() argument
785 if ((ele_value = zend_hash_str_find(hash_arr , key_name, strlen(key_name))) != NULL ) { in append_key_value()
822 static int append_multiple_key_values(smart_str* loc_name, HashTable* hash_arr, char* key_name) in append_multiple_key_values() argument
830 if ((ele_value = zend_hash_str_find( hash_arr , key_name , strlen(key_name))) != NULL) { in append_multiple_key_values()
872 if ((ele_value = zend_hash_str_find( hash_arr , cur_key_name , strlen(cur_key_name))) != NULL) { in append_multiple_key_values()
921 HashTable* hash_arr = NULL; in PHP_FUNCTION() local
934 hash_arr = Z_ARRVAL_P( arr ); in PHP_FUNCTION()
936 if( !hash_arr || zend_hash_num_elements( hash_arr ) == 0 ) in PHP_FUNCTION()
940 result = append_key_value(loc_name, hash_arr, LOC_GRANDFATHERED_LANG_TAG); in PHP_FUNCTION()
949 result = append_key_value(loc_name, hash_arr , LOC_LANG_TAG); in PHP_FUNCTION()
961 result = append_multiple_key_values(loc_name, hash_arr , LOC_EXTLANG_TAG); in PHP_FUNCTION()
967 result = append_key_value(loc_name, hash_arr , LOC_SCRIPT_TAG); in PHP_FUNCTION()
973 result = append_key_value( loc_name, hash_arr , LOC_REGION_TAG); in PHP_FUNCTION()
979 result = append_multiple_key_values( loc_name, hash_arr , LOC_VARIANT_TAG); in PHP_FUNCTION()
985 result = append_multiple_key_values( loc_name, hash_arr , LOC_PRIVATE_TAG); in PHP_FUNCTION()
1042 static int add_array_entry(const char* loc_name, zval* hash_arr, char* key_name) in add_array_entry() argument
1070 add_assoc_string( hash_arr, cur_key_name , token); in add_array_entry()
1074 add_assoc_string( hash_arr, cur_key_name , token); in add_array_entry()
1086 add_assoc_str( hash_arr, key_name , key_value); in add_array_entry()
1432 static zend_string* lookup_loc_range(const char* loc_range, HashTable* hash_arr, int canonicalize ) in lookup_loc_range() argument
1448 cur_arr = ecalloc(zend_hash_num_elements(hash_arr)*2, sizeof(char *)); in lookup_loc_range()
1449 ZEND_HASH_FOREACH_VAL(hash_arr, ele_value) { in lookup_loc_range()
1551 HashTable* hash_arr = NULL; in PHP_FUNCTION() local
1579 hash_arr = Z_ARRVAL_P(arr); in PHP_FUNCTION()
1583 if( !hash_arr || zend_hash_num_elements( hash_arr ) == 0 ) { in PHP_FUNCTION()
1587 result_str = lookup_loc_range(loc_range, hash_arr, boolCanonical); in PHP_FUNCTION()