Lines Matching refs:ec
184 UErrorCode ec = U_ZERO_ERROR;
187 UMessageFormat formatter = umsg_open(testCasePatterns[0],patternLength,"en_US",NULL,&ec);
189 if(U_FAILURE(ec)){
190 log_data_err("umsg_open() failed for testCasePattens[%d]. -> %s (Are you missing data?)\n",i, u_errorName(ec));
203 umsg_applyPattern(formatter,testCasePatterns[i],patternLength,&parseError,&ec);
204 if(U_FAILURE(ec)){
209 resultLength = umsg_format(formatter,result,resultLength,&ec,1,3456.00,d1);
210 if(ec==U_BUFFER_OVERFLOW_ERROR){
211 ec=U_ZERO_ERROR;
213 resultLength = umsg_format(formatter,result,resultLength+2,&ec,1,3456.00,d1);
214 if(U_FAILURE(ec)){
243 umsg_parse(formatter,result,resultLength,&count,&ec,one,two,d2);
244 if(ec!=U_ILLEGAL_ARGUMENT_ERROR){
245 log_err("FAIL: Did not get expected error for umsg_parse(). Expected: U_ILLEGAL_ARGUMENT_ERROR Got: %s \n",u_errorName(ec));
247 ec = U_ZERO_ERROR;
255 umsg_parse(formatter,result,resultLength,&count,&ec,&one,&two,&d2);
256 if(U_FAILURE(ec)){
257 log_err("umsg_parse could not parse the pattern. Error: %s.\n",u_errorName(ec));
261 log_err("FAIL: Expected U_BUFFER_OVERFLOW error while preflighting got: %s for testCasePatterns[%d]",u_errorName(ec),i);