• Home
  • Raw
  • Download

Lines Matching refs:errorCode

197     UErrorCode errorCode;  in DataDrivenPrintf()  local
222 errorCode=U_ZERO_ERROR; in DataDrivenPrintf()
223 dataModule=TestDataModule::getTestDataModule("icuio", logger, errorCode); in DataDrivenPrintf()
224 if(U_SUCCESS(errorCode)) { in DataDrivenPrintf()
225 testData=dataModule->createTestData("printf", errorCode); in DataDrivenPrintf()
226 if(U_SUCCESS(errorCode)) { in DataDrivenPrintf()
227 for(i=0; testData->nextCase(testCase, errorCode); ++i) { in DataDrivenPrintf()
228 if(U_FAILURE(errorCode)) { in DataDrivenPrintf()
230 i, u_errorName(errorCode)); in DataDrivenPrintf()
231 errorCode=U_ZERO_ERROR; in DataDrivenPrintf()
242 tempStr=testCase->getString("format", errorCode); in DataDrivenPrintf()
243 tempStr.extract(format, sizeof(format)/sizeof(format[0]), errorCode); in DataDrivenPrintf()
244 tempStr=testCase->getString("result", errorCode); in DataDrivenPrintf()
245 … tempStr.extract(expectedResult, sizeof(expectedResult)/sizeof(expectedResult[0]), errorCode); in DataDrivenPrintf()
246 tempStr=testCase->getString("argument", errorCode); in DataDrivenPrintf()
247 tempStr.extract(argument, sizeof(argument)/sizeof(argument[0]), errorCode); in DataDrivenPrintf()
249 if(U_FAILURE(errorCode)) { in DataDrivenPrintf()
251 i, u_errorName(errorCode)); in DataDrivenPrintf()
252 errorCode=U_ZERO_ERROR; in DataDrivenPrintf()
256 switch (testCase->getString("argumentType", errorCode)[0]) { in DataDrivenPrintf()
294 … log_err("Unknown type %c for test %d\n", testCase->getString("argumentType", errorCode)[0], i); in DataDrivenPrintf()
341 if(U_FAILURE(errorCode)) { in DataDrivenPrintf()
343 i, u_errorName(errorCode)); in DataDrivenPrintf()
344 errorCode=U_ZERO_ERROR; in DataDrivenPrintf()
363 UErrorCode errorCode; in DataDrivenScanf() local
388 errorCode=U_ZERO_ERROR; in DataDrivenScanf()
389 dataModule=TestDataModule::getTestDataModule("icuio", logger, errorCode); in DataDrivenScanf()
390 if(U_SUCCESS(errorCode)) { in DataDrivenScanf()
391 testData=dataModule->createTestData("scanf", errorCode); in DataDrivenScanf()
392 if(U_SUCCESS(errorCode)) { in DataDrivenScanf()
393 for(i=0; testData->nextCase(testCase, errorCode); ++i) { in DataDrivenScanf()
394 if(U_FAILURE(errorCode)) { in DataDrivenScanf()
396 i, u_errorName(errorCode)); in DataDrivenScanf()
397 errorCode=U_ZERO_ERROR; in DataDrivenScanf()
407 tempStr=testCase->getString("format", errorCode); in DataDrivenScanf()
408 tempStr.extract(format, sizeof(format)/sizeof(format[0]), errorCode); in DataDrivenScanf()
409 tempStr=testCase->getString("result", errorCode); in DataDrivenScanf()
410 … tempStr.extract(expectedResult, sizeof(expectedResult)/sizeof(expectedResult[0]), errorCode); in DataDrivenScanf()
411 tempStr=testCase->getString("argument", errorCode); in DataDrivenScanf()
412 tempStr.extract(argument, sizeof(argument)/sizeof(argument[0]), errorCode); in DataDrivenScanf()
414 if(U_FAILURE(errorCode)) { in DataDrivenScanf()
416 i, u_errorName(errorCode)); in DataDrivenScanf()
417 errorCode=U_ZERO_ERROR; in DataDrivenScanf()
421 switch (testCase->getString("argumentType", errorCode)[0]) { in DataDrivenScanf()
495 … log_err("Unknown type %c for test %d\n", testCase->getString("argumentType", errorCode)[0], i); in DataDrivenScanf()
542 if(U_FAILURE(errorCode)) { in DataDrivenScanf()
544 i, u_errorName(errorCode)); in DataDrivenScanf()
545 errorCode=U_ZERO_ERROR; in DataDrivenScanf()
565 UErrorCode errorCode; in DataDrivenPrintfPrecision() local
587 errorCode=U_ZERO_ERROR; in DataDrivenPrintfPrecision()
588 dataModule=TestDataModule::getTestDataModule("icuio", logger, errorCode); in DataDrivenPrintfPrecision()
589 if(U_SUCCESS(errorCode)) { in DataDrivenPrintfPrecision()
590 testData=dataModule->createTestData("printfPrecision", errorCode); in DataDrivenPrintfPrecision()
591 if(U_SUCCESS(errorCode)) { in DataDrivenPrintfPrecision()
592 for(i=0; testData->nextCase(testCase, errorCode); ++i) { in DataDrivenPrintfPrecision()
593 if(U_FAILURE(errorCode)) { in DataDrivenPrintfPrecision()
595 i, u_errorName(errorCode)); in DataDrivenPrintfPrecision()
596 errorCode=U_ZERO_ERROR; in DataDrivenPrintfPrecision()
601 tempStr=testCase->getString("format", errorCode); in DataDrivenPrintfPrecision()
602 tempStr.extract(format, sizeof(format)/sizeof(format[0]), errorCode); in DataDrivenPrintfPrecision()
603 tempStr=testCase->getString("result", errorCode); in DataDrivenPrintfPrecision()
604 … tempStr.extract(expectedResult, sizeof(expectedResult)/sizeof(expectedResult[0]), errorCode); in DataDrivenPrintfPrecision()
605 tempStr=testCase->getString("argument", errorCode); in DataDrivenPrintfPrecision()
606 tempStr.extract(argument, sizeof(argument)/sizeof(argument[0]), errorCode); in DataDrivenPrintfPrecision()
607 precision=testCase->getInt28("precision", errorCode); in DataDrivenPrintfPrecision()
609 if(U_FAILURE(errorCode)) { in DataDrivenPrintfPrecision()
611 i, u_errorName(errorCode)); in DataDrivenPrintfPrecision()
612 errorCode=U_ZERO_ERROR; in DataDrivenPrintfPrecision()
616 switch (testCase->getString("argumentType", errorCode)[0]) { in DataDrivenPrintfPrecision()
646 … log_err("Unknown type %c for test %d\n", testCase->getString("argumentType", errorCode)[0], i); in DataDrivenPrintfPrecision()
670 if(U_FAILURE(errorCode)) { in DataDrivenPrintfPrecision()
672 i, u_errorName(errorCode)); in DataDrivenPrintfPrecision()
673 errorCode=U_ZERO_ERROR; in DataDrivenPrintfPrecision()
812 UErrorCode errorCode = U_ZERO_ERROR; in main() local
826 u_init(&errorCode); in main()
827 if (U_FAILURE(errorCode)) { in main()
832 errorCode = U_ZERO_ERROR; in main()
840 u_init(&errorCode); in main()
841 if (U_FAILURE(errorCode)) { in main()
845 "*** check that the data files are present.\n", argv[0], u_errorName(errorCode)); in main()