Home
last modified time | relevance | path

Searched refs:status (Results 1 – 25 of 5687) sorted by relevance

12345678910>>...228

/third_party/icu/icu4c/source/test/intltest/
Dmeasfmttest.cpp239 UErrorCode status = U_ZERO_ERROR; in TestCompatible53() local
241 measureUnit.adoptInstead(MeasureUnit::createGForce(status)); in TestCompatible53()
242 measureUnit.adoptInstead(MeasureUnit::createArcMinute(status)); in TestCompatible53()
243 measureUnit.adoptInstead(MeasureUnit::createArcSecond(status)); in TestCompatible53()
244 measureUnit.adoptInstead(MeasureUnit::createDegree(status)); in TestCompatible53()
245 measureUnit.adoptInstead(MeasureUnit::createAcre(status)); in TestCompatible53()
246 measureUnit.adoptInstead(MeasureUnit::createHectare(status)); in TestCompatible53()
247 measureUnit.adoptInstead(MeasureUnit::createSquareFoot(status)); in TestCompatible53()
248 measureUnit.adoptInstead(MeasureUnit::createSquareKilometer(status)); in TestCompatible53()
249 measureUnit.adoptInstead(MeasureUnit::createSquareMeter(status)); in TestCompatible53()
[all …]
Dv32test.cpp60 #define TEST_CHECK_STATUS(status) UPRV_BLOCK_MACRO_BEGIN {\ argument
61 if (U_FAILURE(status)) {\
62 errln("UVector32Test failure at line %d. status=%s\n", __LINE__, u_errorName(status));\
80 UErrorCode status = U_ZERO_ERROR; in UVector32_API() local
84 a = new UVector32(status); in UVector32_API()
85 TEST_CHECK_STATUS(status); in UVector32_API()
88 status = U_ZERO_ERROR; in UVector32_API()
89 a = new UVector32(2000, status); in UVector32_API()
90 TEST_CHECK_STATUS(status); in UVector32_API()
96 status = U_ZERO_ERROR; in UVector32_API()
[all …]
Dcalregts.cpp129 CalendarRegressionTest::failure(UErrorCode status, const char* msg) in failure() argument
131 if(U_FAILURE(status)) { in failure()
132 errcheckln(status, UnicodeString("FAIL: ") + msg + " failed, error " + u_errorName(status)); in failure()
145 UErrorCode status = U_ZERO_ERROR; in test4100311() local
146 GregorianCalendar *cal = (GregorianCalendar*)Calendar::createInstance(status); in test4100311()
147 if(U_FAILURE(status)) { in test4100311()
148 dataerrln("Error creating Calendar: %s", u_errorName(status)); in test4100311()
152 failure(status, "Calendar::createInstance(status)"); in test4100311()
155 UDate d = cal->getTime(status); // Should be Jan 1 in test4100311()
156 failure(status, "cal->getTime"); in test4100311()
[all …]
Dregextst.cpp119 …xt* regextst_openUTF8FromInvariant(UText* ut, const char *inv, int64_t length, UErrorCode *status);
189 if (U_FAILURE(status)) { \
191 __FILE__, __LINE__, u_errorName(status)); \
203 UErrorCode status=U_ZERO_ERROR; \
205 if (status!=errcode) { \
207 __LINE__, u_errorName(errcode), u_errorName(status)); \
212 if (U_FAILURE(status)) { \
213 errln("RegexTest failure at line %d, from %d. status=%d\n",__LINE__, (line), status); \
254 UErrorCode status = U_ZERO_ERROR; in assertUText() local
256 utext_openUTF8(&expectedText, expected, -1, &status); in assertUText()
[all …]
Dnumrgts.cpp39 UErrorCode& status) const override in format()
41 return NumberFormat::format(number, toAppendTo, posIter, status); in format()
48 UErrorCode& status) const override in format()
50 return NumberFormat::format(obj, toAppendTo, pos, status); in format()
77 UErrorCode& status) const override in parse()
79 NumberFormat::parse(text, result, status); in parse()
188 NumberFormatRegressionTest::failure(UErrorCode status, const UnicodeString& msg, const Locale& l, U… in failure() argument
190 if(U_FAILURE(status)) { in failure()
193 …+ UnicodeString(" failed, error ", "") + UnicodeString(u_errorName(status), "") + UnicodeString(l.… in failure()
195 errcheckln(status, UnicodeString("FAIL: ", "") + msg in failure()
[all …]
Ddcfmapts.cpp40 UErrorCode status = U_ZERO_ERROR; in runIndexedTest() local
42 Locale::setDefault(Locale::getEnglish(), status); in runIndexedTest()
43 if(U_FAILURE(status)) { in runIndexedTest()
47 Locale::setDefault(saveLocale, status); in runIndexedTest()
114 UErrorCode status = U_ZERO_ERROR; in testAPI() local
120 DecimalFormat def(status); in testAPI()
121 if(U_FAILURE(status)) { in testAPI()
122 … errcheckln(status, "ERROR: Could not create DecimalFormat (default) - %s", u_errorName(status)); in testAPI()
127 status = U_ZERO_ERROR; in testAPI()
128 DecimalFormat noGrouping("###0.##", status); in testAPI()
[all …]
Ddadrcal.cpp33 UErrorCode status = U_ZERO_ERROR; in DataDrivenCalendarTest() local
34 driver = TestDataModule::getTestDataModule("calendar", *this, status); in DataDrivenCalendarTest()
48 UErrorCode status= U_ZERO_ERROR; in runIndexedTest() local
49 TestData *testData = driver->createTestData(index, status); in runIndexedTest()
50 if (U_SUCCESS(status)) { in runIndexedTest()
52 if (testData->getInfo(info, status)) { in runIndexedTest()
53 log(info->getString("Description", status)); in runIndexedTest()
75 UErrorCode status = U_ZERO_ERROR; in testOps() local
91 status); in testOps()
92 if (U_FAILURE(status)) { in testOps()
[all …]
/third_party/icu/icu4c/source/test/cintltst/
Dreapits.c37 #define TEST_ASSERT_SUCCESS(status) UPRV_BLOCK_MACRO_BEGIN { \ argument
38 if (U_FAILURE(status)) { \
39 … at file %s:%d - error = %s (Are you missing data?)\n", __FILE__, __LINE__, u_errorName(status)); \
62 status = U_ZERO_ERROR; \
63 re = uregex_openC(pattern, flags, NULL, &status); \
64 TEST_ASSERT_SUCCESS(status); \
68 uregex_setText(re, srcString, -1, &status); \
69 TEST_ASSERT_SUCCESS(status); \
70 if (U_SUCCESS(status)) { \
75 TEST_ASSERT_SUCCESS(status); \
[all …]
Dcreststn.c278 static void checkStatus(int32_t line, UErrorCode expected, UErrorCode status) { in checkStatus() argument
279 if(U_FAILURE(status)) { in checkStatus()
282 if(status != expected) { in checkStatus()
283 …log_err_status(status, "%s:%d: Expected error code %s, got error code %s\n", __FILE__, line, u_err… in checkStatus()
288 UErrorCode status = U_USING_DEFAULT_WARNING; in TestErrorCodes() local
294 r = ures_open(NULL, "ti_ER_ASSAB", &status); in TestErrorCodes()
295 checkStatus(__LINE__, U_USING_FALLBACK_WARNING, status); in TestErrorCodes()
299 status = U_USING_DEFAULT_WARNING; in TestErrorCodes()
300 r = ures_open(NULL, "ti_ER", &status); in TestErrorCodes()
301 checkStatus(__LINE__, U_USING_DEFAULT_WARNING, status); in TestErrorCodes()
[all …]
Dccaltst.c115 UErrorCode status = U_ZERO_ERROR; in TestCalendar() local
141 ucal_getAvailableTZIDs(offset, i, &status); in TestCalendar()
142 if(U_FAILURE(status)){ in TestCalendar()
143 log_err("FAIL: ucal_getAvailableTZIDs returned %s\n", u_errorName(status)); in TestCalendar()
145 log_verbose("%s\n", u_austrcpy(tempMsgBuf, ucal_getAvailableTZIDs(offset, i, &status))); in TestCalendar()
148 ucal_getAvailableTZIDs(offset, i, &status); in TestCalendar()
149 if(status != U_INDEX_OUTOFBOUNDS_ERROR){ in TestCalendar()
150 …err("FAIL:for TZID index >= count Expected INDEX_OUTOFBOUNDS_ERROR Got %s\n", u_errorName(status)); in TestCalendar()
152 status=U_ZERO_ERROR; in TestCalendar()
162 uenum = ucal_openTimeZones(&status); in TestCalendar()
[all …]
Dcnumtst.c134 UErrorCode* status = &st; in TestInt64Parse() local
146 nf = unum_open(UNUM_DEFAULT, NULL, -1, NULL, NULL, status); in TestInt64Parse()
148 if(U_FAILURE(*status)) in TestInt64Parse()
150 log_data_err("Error in unum_open() %s \n", myErrorName(*status)); in TestInt64Parse()
156 a = unum_parseInt64(nf, text, size, 0, status); in TestInt64Parse()
160 if(!U_FAILURE(*status)) in TestInt64Parse()
162 log_err("Error in unum_parseInt64(): %s \n", myErrorName(*status)); in TestInt64Parse()
201 UErrorCode status=U_ZERO_ERROR; in TestNumberFormat() local
208 status = U_ZERO_ERROR; in TestNumberFormat()
210 def=unum_open(style, NULL,0,NULL, NULL,&status); in TestNumberFormat()
[all …]
Dspooftest.c35 #define TEST_ASSERT_SUCCESS(status) UPRV_BLOCK_MACRO_BEGIN { \ argument
36 if (U_FAILURE(status)) { \
37 …log_err_status(status, "Failure at file %s, line %d, error = %s\n", __FILE__, __LINE__, u_errorNam…
69 UErrorCode status = U_ZERO_ERROR; \
71 sc = uspoof_open(&status); \
72 TEST_ASSERT_SUCCESS(status); \
73 if (U_SUCCESS(status)){
77 TEST_ASSERT_SUCCESS(status); \
127 UErrorCode status = U_ZERO_ERROR; in TestOpenFromSource() local
164 &errType, &pe, &status); in TestOpenFromSource()
[all …]
Dcitertst.c69 UErrorCode status = U_ZERO_ERROR; in TestBug672() local
79 UCollator *coll = ucol_open(LOCALES[i], &status); in TestBug672()
81 &status); in TestBug672()
83 &status); in TestBug672()
84 if (U_FAILURE(status)) { in TestBug672()
85 …log_err_status(status, "ERROR: in creation of either the collator or the collation iterator :%s\n", in TestBug672()
86 myErrorName(status)); in TestBug672()
92 while (ucol_next(pitr, &status) != UCOL_NULLORDER && in TestBug672()
93 U_SUCCESS(status)) { in TestBug672()
95 if (U_FAILURE(status)) { in TestBug672()
[all …]
Dusrchtst.c55 static void open(UErrorCode* status) in open() argument
60 *status = U_ZERO_ERROR; in open()
62 EN_US_ = ucol_open("en_US", status); in open()
63 if(U_FAILURE(*status)) { in open()
64 log_err_status(*status, "Error opening collator\n"); in open()
67 FR_FR_ = ucol_open("fr_FR", status); in open()
68 DE_ = ucol_open("de_DE", status); in open()
69 ES_ = ucol_open("es_ES", status); in open()
77 (UParseError *)NULL, status); in open()
83 NULL, status); in open()
[all …]
/third_party/python/Modules/_decimal/libmpdec/
Dmpsignal.c42 uint32_t status = 0; in mpd_format() local
43 ret = mpd_qformat(dec, fmt, ctx, &status); in mpd_format()
44 mpd_addstatus_raise(ctx, status); in mpd_format()
52 uint32_t status = 0; in mpd_import_u16() local
53 mpd_qimport_u16(result, srcdata, srclen, srcsign, base, ctx, &status); in mpd_import_u16()
54 mpd_addstatus_raise(ctx, status); in mpd_import_u16()
61 uint32_t status = 0; in mpd_import_u32() local
62 mpd_qimport_u32(result, srcdata, srclen, srcsign, base, ctx, &status); in mpd_import_u32()
63 mpd_addstatus_raise(ctx, status); in mpd_import_u32()
71 uint32_t status = 0; in mpd_export_u16() local
[all …]
/third_party/node/deps/icu-small/source/i18n/
Dmeasunit.cpp594 MeasureUnit *MeasureUnit::createGForce(UErrorCode &status) { in createGForce() argument
595 return MeasureUnit::create(0, 0, status); in createGForce()
602 MeasureUnit *MeasureUnit::createMeterPerSecondSquared(UErrorCode &status) { in createMeterPerSecondSquared() argument
603 return MeasureUnit::create(0, 1, status); in createMeterPerSecondSquared()
610 MeasureUnit *MeasureUnit::createArcMinute(UErrorCode &status) { in createArcMinute() argument
611 return MeasureUnit::create(1, 0, status); in createArcMinute()
618 MeasureUnit *MeasureUnit::createArcSecond(UErrorCode &status) { in createArcSecond() argument
619 return MeasureUnit::create(1, 1, status); in createArcSecond()
626 MeasureUnit *MeasureUnit::createDegree(UErrorCode &status) { in createDegree() argument
627 return MeasureUnit::create(1, 2, status); in createDegree()
[all …]
Dmeasunit_extra.cpp189 …void put(const char * /*key*/, ResourceValue &value, UBool /*noFallback*/, UErrorCode &status) ove… in put() argument
190 ResourceTable table = value.getTable(status); in put()
191 if (U_FAILURE(status)) return; in put()
194 status = U_INDEX_OUTOFBOUNDS_ERROR; in put()
213 trieBuilder.add(simpleUnitID, trieValueOffset + outIndex, status); in put()
216 ResourceTable table = value.getTable(status); in put()
217 if (U_FAILURE(status)) { return; } in put()
219 status = U_INVALID_FORMAT_ERROR; in put()
223 const char16_t* uTarget = value.getString(len, status); in put()
225 target.appendInvariantChars(uTarget, len, status); in put()
[all …]
/third_party/icu/icu4c/source/i18n/
Dmeasunit.cpp593 MeasureUnit *MeasureUnit::createGForce(UErrorCode &status) { in createGForce() argument
594 return MeasureUnit::create(0, 0, status); in createGForce()
601 MeasureUnit *MeasureUnit::createMeterPerSecondSquared(UErrorCode &status) { in createMeterPerSecondSquared() argument
602 return MeasureUnit::create(0, 1, status); in createMeterPerSecondSquared()
609 MeasureUnit *MeasureUnit::createArcMinute(UErrorCode &status) { in createArcMinute() argument
610 return MeasureUnit::create(1, 0, status); in createArcMinute()
617 MeasureUnit *MeasureUnit::createArcSecond(UErrorCode &status) { in createArcSecond() argument
618 return MeasureUnit::create(1, 1, status); in createArcSecond()
625 MeasureUnit *MeasureUnit::createDegree(UErrorCode &status) { in createDegree() argument
626 return MeasureUnit::create(1, 2, status); in createDegree()
[all …]
Dmeasunit_extra.cpp189 …void put(const char * /*key*/, ResourceValue &value, UBool /*noFallback*/, UErrorCode &status) ove… in put() argument
190 ResourceTable table = value.getTable(status); in put()
191 if (U_FAILURE(status)) return; in put()
194 status = U_INDEX_OUTOFBOUNDS_ERROR; in put()
213 trieBuilder.add(simpleUnitID, trieValueOffset + outIndex, status); in put()
216 ResourceTable table = value.getTable(status); in put()
217 if (U_FAILURE(status)) { return; } in put()
219 status = U_INVALID_FORMAT_ERROR; in put()
223 const UChar* uTarget = value.getString(len, status); in put()
225 target.appendInvariantChars(uTarget, len, status); in put()
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/
Dmeasunit.cpp588 MeasureUnit *MeasureUnit::createGForce(UErrorCode &status) { in createGForce() argument
589 return MeasureUnit::create(0, 0, status); in createGForce()
596 MeasureUnit *MeasureUnit::createMeterPerSecondSquared(UErrorCode &status) { in createMeterPerSecondSquared() argument
597 return MeasureUnit::create(0, 1, status); in createMeterPerSecondSquared()
604 MeasureUnit *MeasureUnit::createArcMinute(UErrorCode &status) { in createArcMinute() argument
605 return MeasureUnit::create(1, 0, status); in createArcMinute()
612 MeasureUnit *MeasureUnit::createArcSecond(UErrorCode &status) { in createArcSecond() argument
613 return MeasureUnit::create(1, 1, status); in createArcSecond()
620 MeasureUnit *MeasureUnit::createDegree(UErrorCode &status) { in createDegree() argument
621 return MeasureUnit::create(1, 2, status); in createDegree()
[all …]
Dmeasunit_extra.cpp190 void put(const char * /*key*/, ResourceValue &value, UBool /*noFallback*/, UErrorCode &status) { in put() argument
191 ResourceTable table = value.getTable(status); in put()
192 if (U_FAILURE(status)) return; in put()
195 status = U_INDEX_OUTOFBOUNDS_ERROR; in put()
214 trieBuilder.add(simpleUnitID, trieValueOffset + outIndex, status); in put()
217 ResourceTable table = value.getTable(status); in put()
218 if (U_FAILURE(status)) { return; } in put()
220 status = U_INVALID_FORMAT_ERROR; in put()
224 const UChar* uTarget = value.getString(len, status); in put()
226 target.appendInvariantChars(uTarget, len, status); in put()
[all …]
/third_party/icu/icu4c/source/test/perf/convperf/
Dconvperf.cpp24 UErrorCode status = U_ZERO_ERROR; in main() local
25 ConverterPerformanceTest test(argc, argv, status); in main()
26 if(U_FAILURE(status)){ in main()
27 return status; in main()
37 …rterPerformanceTest::ConverterPerformanceTest(int32_t argc, const char* argv[], UErrorCode& status) in ConverterPerformanceTest() argument
38 : UPerfTest(argc,argv,status){ in ConverterPerformanceTest()
128 UErrorCode status = U_ZERO_ERROR; in TestICU_CleanOpenAllConverters() local
129 UPerfFunction* pf = new ICUOpenAllConvertersFunction(true, status); in TestICU_CleanOpenAllConverters()
130 if(U_FAILURE(status)){ in TestICU_CleanOpenAllConverters()
137 UErrorCode status = U_ZERO_ERROR; in TestICU_OpenAllConverters() local
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/unicode/
Dmeasunit.h404 static MeasureUnit forIdentifier(StringPiece identifier, UErrorCode& status);
480 UMeasureUnitComplexity getComplexity(UErrorCode& status) const;
497 MeasureUnit withPrefix(UMeasurePrefix prefix, UErrorCode& status) const;
513 UMeasurePrefix getPrefix(UErrorCode& status) const;
530 MeasureUnit withDimensionality(int32_t dimensionality, UErrorCode& status) const;
545 int32_t getDimensionality(UErrorCode& status) const;
559 MeasureUnit reciprocal(UErrorCode& status) const;
578 MeasureUnit product(const MeasureUnit& other, UErrorCode& status) const;
596 inline std::pair<LocalArray<MeasureUnit>, int32_t> splitToSingleUnits(UErrorCode& status) const;
693 static MeasureUnit *createGForce(UErrorCode &status);
[all …]
/third_party/node/deps/icu-small/source/i18n/unicode/
Dmeasunit.h404 static MeasureUnit forIdentifier(StringPiece identifier, UErrorCode& status);
480 UMeasureUnitComplexity getComplexity(UErrorCode& status) const;
496 MeasureUnit withPrefix(UMeasurePrefix prefix, UErrorCode& status) const;
512 UMeasurePrefix getPrefix(UErrorCode& status) const;
528 MeasureUnit withDimensionality(int32_t dimensionality, UErrorCode& status) const;
543 int32_t getDimensionality(UErrorCode& status) const;
557 MeasureUnit reciprocal(UErrorCode& status) const;
576 MeasureUnit product(const MeasureUnit& other, UErrorCode& status) const;
593 inline std::pair<LocalArray<MeasureUnit>, int32_t> splitToSingleUnits(UErrorCode& status) const;
689 static MeasureUnit *createGForce(UErrorCode &status);
[all …]
/third_party/icu/icu4c/source/i18n/unicode/
Dmeasunit.h403 static MeasureUnit forIdentifier(StringPiece identifier, UErrorCode& status);
479 UMeasureUnitComplexity getComplexity(UErrorCode& status) const;
495 MeasureUnit withPrefix(UMeasurePrefix prefix, UErrorCode& status) const;
511 UMeasurePrefix getPrefix(UErrorCode& status) const;
527 MeasureUnit withDimensionality(int32_t dimensionality, UErrorCode& status) const;
542 int32_t getDimensionality(UErrorCode& status) const;
556 MeasureUnit reciprocal(UErrorCode& status) const;
575 MeasureUnit product(const MeasureUnit& other, UErrorCode& status) const;
592 inline std::pair<LocalArray<MeasureUnit>, int32_t> splitToSingleUnits(UErrorCode& status) const;
688 static MeasureUnit *createGForce(UErrorCode &status);
[all …]

12345678910>>...228