Home | History | Annotate | Download | only in cintltst

Lines Matching refs:str

34 #define CHECK(status,str) if (U_FAILURE(status)) { log_err("FAIL: %s\n", str); return; }
66 UChar *str=NULL;
101 str=(UChar*)malloc(sizeof(UChar) * (lneed+1) );
102 unum_format(fmt, 0, str, lneed+1, NULL, &status);
108 if (u_strcmp(str, unum) != 0)
110 log_err("FAIL: Pattern %s should format zero as %s; %s Seen instead\n", pat[i], num[i], austrdup(str) );
114 free(str);
126 UChar *str=NULL;
139 str=(UChar*)malloc(sizeof(UChar) * (lneed+1) );
140 unum_format(fmt, 123, str, lneed+1, NULL, &status);
142 if(U_FAILURE(status) || !str) {
147 log_verbose("Format 123 -> %s\n", u_austrcpy(tempBuf, str) );
149 if(u_strcmp(str, res) != 0)
152 free(str);
168 str=(UChar*)malloc(sizeof(UChar) * (lneed+1) );
169 unum_format(fmt, 123, str, lneed+1, NULL, &status);
175 log_verbose("Format 123 -> %s\n", u_austrcpy(tempBuf, str) );
178 if(u_strcmp(str, res) != 0)
181 free(str);
194 UChar *str=NULL;
270 str=(UChar*)malloc(sizeof(UChar) * (lneed+1) );
271 unum_formatDouble(fmt, val[v], str, lneed+1, NULL, &status);
280 if(u_strcmp(str, uvalfor) != 0)
285 a=unum_parseDouble(fmt, str, u_strlen(str), &ppos, &status);
286 if (ppos== u_strlen(str)) {
293 free(str);
302 str=(UChar*)malloc(sizeof(UChar) * (lneed+1) );
303 unum_formatDouble(fmt, lval[v], str, lneed+1, NULL, &status);
308 /*printf(" Format %e -> %s\n", lval[v], austrdup(str) );*/
310 if(u_strcmp(str, ulvalfor) != 0)
315 a=unum_parseDouble(fmt, str, u_strlen(str), &ppos, &status);
316 if (ppos== u_strlen(str)) {
324 free(str);
342 UChar *str=NULL;
359 str=(UChar*)malloc(sizeof(UChar) * (lneed+1) );
360 unum_formatDouble(fmt, 1234.56, str, lneed+1, NULL, &status);
373 log_verbose("Format 1234.56 -> %s\n", u_austrcpy(tempBuf, str) );
374 if(U_SUCCESS(status) && str) {
377 if (u_strcmp(str, res) !=0) log_data_err("FAIL: Expected $1,234.56\n");
381 free(str);
389 str=(UChar*)malloc(sizeof(UChar) * (lneed+1) );
390 unum_formatDouble(fmt, -1234.56, str, lneed+1, NULL, &status);
395 if(str) {
398 if (u_strcmp(str, res) != 0) log_data_err("FAIL: Expected -$1,234.56\n");
399 free(str);
413 UChar *str;
423 str=NULL;
434 str=(UChar*)malloc(sizeof(UChar) * (lneed+1) );
436 unum_formatDouble(currencyFmt, 1.50, str, lneed+1, &pos, &status);
444 str, res) != 0){
445 log_err("FAIL: Expected %s Got: %s for locale: %s\n", result[i], aescstrdup(str, -1), locale[i]);
451 free(str);
460 UChar *str=NULL, *res=NULL;
499 str=(UChar*)malloc(sizeof(UChar) * (lneed+1) );
501 unum_formatDouble(currencyFmt, 1.50, str, lneed+1, &pos, &status);
510 if (u_strcmp(str, res) != 0){
511 log_err("FAIL: Expected %s Got: %s for locale: %s\n", result[i],aescstrdup(str, -1),locale[i]);
517 free(str);
530 UChar *str=NULL, *res=NULL;
587 str=(UChar*)malloc(sizeof(UChar) * (lneed+1) );
589 unum_formatDouble(currencyFmt, 1234.56, str, lneed+1, &pos, &status);
596 if (u_strcmp(str, res) != 0){
597 log_err("FAIL: Expected %s Got: %s for locale: %s\n", result[i],aescstrdup(str, -1),locale[i]);
603 free(str);