Lines Matching refs:ec
180 UErrorCode ec = U_ZERO_ERROR;
183 UMessageFormat formatter = umsg_open(testCasePatterns[0],patternLength,"en_US",NULL,&ec);
185 if(U_FAILURE(ec)){
186 log_data_err("umsg_open() failed for testCasePattens[%d]. -> %s (Are you missing data?)\n",i, u_errorName(ec));
199 umsg_applyPattern(formatter,testCasePatterns[i],patternLength,&parseError,&ec);
200 if(U_FAILURE(ec)){
205 resultLength = umsg_format(formatter,result,resultLength,&ec,1,3456.00,d1);
206 if(ec==U_BUFFER_OVERFLOW_ERROR){
207 ec=U_ZERO_ERROR;
209 resultLength = umsg_format(formatter,result,resultLength+2,&ec,1,3456.00,d1);
210 if(U_FAILURE(ec)){
239 umsg_parse(formatter,result,resultLength,&count,&ec,one,two,d2);
240 if(ec!=U_ILLEGAL_ARGUMENT_ERROR){
241 log_err("FAIL: Did not get expected error for umsg_parse(). Expected: U_ILLEGAL_ARGUMENT_ERROR Got: %s \n",u_errorName(ec));
243 ec = U_ZERO_ERROR;
251 umsg_parse(formatter,result,resultLength,&count,&ec,&one,&two,&d2);
252 if(U_FAILURE(ec)){
253 log_err("umsg_parse could not parse the pattern. Error: %s.\n",u_errorName(ec));
257 log_err("FAIL: Expected U_BUFFER_OVERFLOW error while preflighting got: %s for testCasePatterns[%d]",u_errorName(ec),i);