Lines Matching refs:pat
68 const char* pat[] = { "#.#", "#.", ".#", "#" };
73 pat_length = sizeof(pat) / sizeof(pat[0]);
77 u_uastrcpy(upat, pat[i]);
80 log_err_status(status, "FAIL: Number format constructor failed for pattern %s -> %s\n", pat[i], u_errorName(status));
91 log_err("FAIL: Number format extracting the pattern failed for %s\n", pat[i]);
95 log_err("FAIL: Pattern %s should be transmute to %s; %s seen instead\n", pat[i], newpat[i], austrdup(unewp) );
110 log_err("FAIL: Pattern %s should format zero as %s; %s Seen instead\n", pat[i], num[i], austrdup(str) );
124 UChar pat[15];
130 u_uastrcpy(pat, "a'fo''o'b#");
131 fmt =unum_open(UNUM_IGNORE,pat, u_strlen(pat), "en_US",NULL, &status);
146 log_verbose("Pattern \"%s\" \n", u_austrcpy(tempBuf, pat) );
156 u_uastrcpy(pat, "");
157 u_uastrcpy(pat, "a''b#");
160 fmt =unum_open(UNUM_IGNORE,pat, u_strlen(pat), "en_US",NULL, &status);
174 log_verbose("Pattern \"%s\" \n", u_austrcpy(tempBuf, pat) );
204 static const char* pat[] = { "0.####E0", "00.000E00", "##0.######E000", "0.###E0;[0.###E0]" };
246 pat_length = sizeof(pat) / sizeof(pat[0]);
253 upat=(UChar*)malloc(sizeof(UChar) * (strlen(pat[p])+1) );
254 u_uastrcpy(upat, pat[p]);
257 log_err_status(status, "FAIL: Bad status returned by Number format construction with pattern %s -> %s\n", pat[p], u_errorName(status));
343 UChar *pat=NULL;
369 pat=(UChar*)malloc(sizeof(UChar) * (lneed+1) );
370 unum_formatDouble(fmt, FALSE, pat, lneed+1, NULL, &status);
372 log_verbose("Pattern \" %s \" \n", u_austrcpy(tempBuf, pat));
383 free(pat);