Lines Matching refs:result

126 	char* result = NULL;  in getPreferredTag()  local
135 result = estrdup( LOC_PREFERRED_GRANDFATHERED[grOffset] ); in getPreferredTag()
138 result = estrdup( LOC_GRANDFATHERED[grOffset] ); in getPreferredTag()
140 return result; in getPreferredTag()
150 int result =-1; in getStrrtokenPos() local
158 result = i-2; in getStrrtokenPos()
160 result = i; in getStrrtokenPos()
165 if(result < 1){ in getStrrtokenPos()
167 result =-1; in getStrrtokenPos()
169 return result; in getStrrtokenPos()
180 int result =-1; in getSingletonPos() local
189 result =0; in getSingletonPos()
195 result = i+1; in getSingletonPos()
203 return result; in getSingletonPos()
254 static char* get_icu_value_internal( const char* loc_name , char* tag_name, int* result , int fromP… in get_icu_value_internal() argument
334 *result = 0; in get_icu_value_internal()
347 *result = -1; in get_icu_value_internal()
356 *result = 1; in get_icu_value_internal()
379 int result = 0; in get_icu_value_src_php() local
400 tag_value = get_icu_value_internal( loc_name , tag_name , &result ,0); in get_icu_value_src_php()
403 if( result == -1 ) { in get_icu_value_src_php()
416 if( result ==0) { in get_icu_value_src_php()
880 static int handleAppendResult( int result, smart_str* loc_name TSRMLS_DC) in handleAppendResult() argument
883 if( result == FAILURE) { in handleAppendResult()
906 int result = 0; in PHP_FUNCTION() local
924 result = append_key_value(loc_name, hash_arr, LOC_GRANDFATHERED_LANG_TAG); in PHP_FUNCTION()
925 if( result == SUCCESS){ in PHP_FUNCTION()
928 if( !handleAppendResult( result, loc_name TSRMLS_CC)){ in PHP_FUNCTION()
933 result = append_key_value(loc_name, hash_arr , LOC_LANG_TAG); in PHP_FUNCTION()
934 if( result == LOC_NOT_FOUND ){ in PHP_FUNCTION()
940 if( !handleAppendResult( result, loc_name TSRMLS_CC)){ in PHP_FUNCTION()
945 result = append_multiple_key_values(loc_name, hash_arr , LOC_EXTLANG_TAG TSRMLS_CC); in PHP_FUNCTION()
946 if( !handleAppendResult( result, loc_name TSRMLS_CC)){ in PHP_FUNCTION()
951 result = append_key_value(loc_name, hash_arr , LOC_SCRIPT_TAG); in PHP_FUNCTION()
952 if( !handleAppendResult( result, loc_name TSRMLS_CC)){ in PHP_FUNCTION()
957 result = append_key_value( loc_name, hash_arr , LOC_REGION_TAG); in PHP_FUNCTION()
958 if( !handleAppendResult( result, loc_name TSRMLS_CC)){ in PHP_FUNCTION()
963 result = append_multiple_key_values( loc_name, hash_arr , LOC_VARIANT_TAG TSRMLS_CC); in PHP_FUNCTION()
964 if( !handleAppendResult( result, loc_name TSRMLS_CC)){ in PHP_FUNCTION()
969 result = append_multiple_key_values( loc_name, hash_arr , LOC_PRIVATE_TAG TSRMLS_CC); in PHP_FUNCTION()
970 if( !handleAppendResult( result, loc_name TSRMLS_CC)){ in PHP_FUNCTION()
987 char* result =NULL; in get_private_subtags() local
1005 result = estrndup(mod_loc_name + singletonPos+2 , (len -( singletonPos +2) ) ); in get_private_subtags()
1024 return result; in get_private_subtags()
1037 int result = 0; in add_array_entry() local
1044 result = 1; in add_array_entry()
1046 key_value = get_icu_value_internal( loc_name , key_name , &result,1 ); in add_array_entry()
1050 if( result > 0 && key_value){ in add_array_entry()
1070 if( result == 1 ){ in add_array_entry()
1142 int result = 0; in PHP_FUNCTION() local
1171 variant = get_icu_value_internal( loc_name , LOC_VARIANT_TAG , &result ,0); in PHP_FUNCTION()
1172 if( result > 0 && variant){ in PHP_FUNCTION()
1197 int result = 0; in strToMatch() local
1200 return result; in strToMatch()
1216 result = 1; in strToMatch()
1219 return(result); in strToMatch()
1237 int result = 0; in PHP_FUNCTION() local
1272 can_loc_range=get_icu_value_internal( loc_range , LOC_CANONICALIZE_TAG , &result , 0); in PHP_FUNCTION()
1273 if( result ==0) { in PHP_FUNCTION()
1280 can_lang_tag = get_icu_value_internal( lang_tag , LOC_CANONICALIZE_TAG , &result , 0); in PHP_FUNCTION()
1281 if( result ==0) { in PHP_FUNCTION()
1291 result = strToMatch( can_lang_tag , cur_lang_tag); in PHP_FUNCTION()
1292 if( result == 0) { in PHP_FUNCTION()
1299 result = strToMatch( can_loc_range , cur_loc_range ); in PHP_FUNCTION()
1300 if( result == 0) { in PHP_FUNCTION()
1351 result = strToMatch( lang_tag , cur_lang_tag); in PHP_FUNCTION()
1352 if( result == 0) { in PHP_FUNCTION()
1357 result = strToMatch( loc_range , cur_loc_range ); in PHP_FUNCTION()
1358 if( result == 0) { in PHP_FUNCTION()
1414 int result = 0; in lookup_loc_range() local
1442 result = strToMatch(Z_STRVAL_PP(ele_value), cur_arr[cur_arr_len*2]); in lookup_loc_range()
1443 if(result == 0) { in lookup_loc_range()
1454 lang_tag = get_icu_value_internal(cur_arr[i*2], LOC_CANONICALIZE_TAG, &result, 0); in lookup_loc_range()
1455 if(result != 1 || lang_tag == NULL || !lang_tag[0]) { in lookup_loc_range()
1463 result = strToMatch(lang_tag, cur_arr[i*2]); in lookup_loc_range()
1465 if(result == 0) { in lookup_loc_range()
1475 can_loc_range = get_icu_value_internal(loc_range, LOC_CANONICALIZE_TAG, &result , 0); in lookup_loc_range()
1476 if( result != 1 || can_loc_range == NULL || !can_loc_range[0]) { in lookup_loc_range()
1490 result = strToMatch(loc_range, cur_loc_range); in lookup_loc_range()
1494 if(result == 0) { in lookup_loc_range()
1538 char* result =NULL; in PHP_FUNCTION() local
1558 result = lookup_loc_range(loc_range, hash_arr, boolCanonical TSRMLS_CC); in PHP_FUNCTION()
1559 if(result == NULL || result[0] == '\0') { in PHP_FUNCTION()
1561 result = estrndup(fallback_loc, fallback_loc_len); in PHP_FUNCTION()
1567 RETVAL_STRINGL(result, strlen(result), 0); in PHP_FUNCTION()