Lines Matching refs:result

215 	char* result = NULL;  in getPreferredTag()  local
224 result = estrdup( LOC_PREFERRED_GRANDFATHERED[grOffset] ); in getPreferredTag()
227 result = estrdup( LOC_GRANDFATHERED[grOffset] ); in getPreferredTag()
229 return result; in getPreferredTag()
239 zend_off_t result =-1; in getStrrtokenPos() local
247 result = i-2; in getStrrtokenPos()
249 result = i; in getStrrtokenPos()
254 if(result < 1){ in getStrrtokenPos()
256 result =-1; in getStrrtokenPos()
258 return result; in getStrrtokenPos()
269 zend_off_t result =-1; in getSingletonPos() local
278 result =0; in getSingletonPos()
284 result = i+1; in getSingletonPos()
292 return result; in getSingletonPos()
345 static zend_string* get_icu_value_internal( const char* loc_name , char* tag_name, int* result , in… in get_icu_value_internal() argument
432 *result = 0; in get_icu_value_internal()
445 *result = -1; in get_icu_value_internal()
454 *result = 1; in get_icu_value_internal()
479 int result = 0; in get_icu_value_src_php() local
499 tag_value = get_icu_value_internal( loc_name , tag_name , &result ,0); in get_icu_value_src_php()
502 if( result == -1 ) { in get_icu_value_src_php()
516 if( result ==0) { in get_icu_value_src_php()
927 static int handleAppendResult( int result, smart_str* loc_name) in handleAppendResult() argument
930 if( result == FAILURE) { in handleAppendResult()
951 int result = 0; in PHP_FUNCTION() local
967 result = append_key_value(loc_name, hash_arr, LOC_GRANDFATHERED_LANG_TAG); in PHP_FUNCTION()
968 if( result == SUCCESS){ in PHP_FUNCTION()
971 if( !handleAppendResult( result, loc_name)){ in PHP_FUNCTION()
976 result = append_key_value(loc_name, hash_arr , LOC_LANG_TAG); in PHP_FUNCTION()
977 if( result == LOC_NOT_FOUND ){ in PHP_FUNCTION()
982 if( !handleAppendResult( result, loc_name)){ in PHP_FUNCTION()
987 result = append_multiple_key_values(loc_name, hash_arr , LOC_EXTLANG_TAG); in PHP_FUNCTION()
988 if( !handleAppendResult( result, loc_name)){ in PHP_FUNCTION()
993 result = append_key_value(loc_name, hash_arr , LOC_SCRIPT_TAG); in PHP_FUNCTION()
994 if( !handleAppendResult( result, loc_name)){ in PHP_FUNCTION()
999 result = append_key_value( loc_name, hash_arr , LOC_REGION_TAG); in PHP_FUNCTION()
1000 if( !handleAppendResult( result, loc_name)){ in PHP_FUNCTION()
1005 result = append_multiple_key_values( loc_name, hash_arr , LOC_VARIANT_TAG); in PHP_FUNCTION()
1006 if( !handleAppendResult( result, loc_name)){ in PHP_FUNCTION()
1011 result = append_multiple_key_values( loc_name, hash_arr , LOC_PRIVATE_TAG); in PHP_FUNCTION()
1012 if( !handleAppendResult( result, loc_name)){ in PHP_FUNCTION()
1029 zend_string* result = NULL; in get_private_subtags() local
1044 result = zend_string_init(mod_loc_name + singletonPos+2 , (len -( singletonPos +2) ), 0); in get_private_subtags()
1061 return result; in get_private_subtags()
1073 int result = 0; in add_array_entry() local
1079 result = 1; in add_array_entry()
1081 key_value = get_icu_value_internal( loc_name , key_name , &result,1 ); in add_array_entry()
1085 if( result > 0 && key_value){ in add_array_entry()
1109 if( result == 1 ){ in add_array_entry()
1169 int result = 0; in PHP_FUNCTION() local
1197 variant = get_icu_value_internal( loc_name , LOC_VARIANT_TAG , &result ,0); in PHP_FUNCTION()
1198 if( result > 0 && variant){ in PHP_FUNCTION()
1221 int result = 0; in strToMatch() local
1224 return result; in strToMatch()
1240 result = 1; in strToMatch()
1243 return(result); in strToMatch()
1257 int result = 0; in PHP_FUNCTION() local
1293 can_loc_range=get_icu_value_internal( loc_range , LOC_CANONICALIZE_TAG , &result , 0); in PHP_FUNCTION()
1294 if( result <=0) { in PHP_FUNCTION()
1301 can_lang_tag = get_icu_value_internal( lang_tag , LOC_CANONICALIZE_TAG , &result , 0); in PHP_FUNCTION()
1302 if( result <=0) { in PHP_FUNCTION()
1312 result = strToMatch( can_lang_tag->val , cur_lang_tag); in PHP_FUNCTION()
1313 if( result == 0) { in PHP_FUNCTION()
1320 result = strToMatch( can_loc_range->val , cur_loc_range ); in PHP_FUNCTION()
1321 if( result == 0) { in PHP_FUNCTION()
1368 result = strToMatch( lang_tag , cur_lang_tag); in PHP_FUNCTION()
1369 if( result == 0) { in PHP_FUNCTION()
1374 result = strToMatch( loc_range , cur_loc_range ); in PHP_FUNCTION()
1375 if( result == 0) { in PHP_FUNCTION()
1427 int result = 0; in lookup_loc_range() local
1447 result = strToMatch(Z_STRVAL_P(ele_value), cur_arr[cur_arr_len*2]); in lookup_loc_range()
1448 if(result == 0) { in lookup_loc_range()
1459 lang_tag = get_icu_value_internal(cur_arr[i*2], LOC_CANONICALIZE_TAG, &result, 0); in lookup_loc_range()
1460 if(result != 1 || lang_tag == NULL || !lang_tag->val[0]) { in lookup_loc_range()
1468 result = strToMatch(lang_tag->val, cur_arr[i*2]); in lookup_loc_range()
1470 if(result == 0) { in lookup_loc_range()
1480 can_loc_range = get_icu_value_internal(loc_range, LOC_CANONICALIZE_TAG, &result , 0); in lookup_loc_range()
1481 if( result != 1 || can_loc_range == NULL || !can_loc_range->val[0]) { in lookup_loc_range()
1495 result = strToMatch(loc_range, cur_loc_range); in lookup_loc_range()
1499 if(result == 0) { in lookup_loc_range()