Home
last modified time | relevance | path

Searched refs:getErrorIndex (Results 1 – 25 of 43) sorted by relevance

12

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DMessageRegression.java167 if (pos.getErrorIndex() != -1) { in Test4052223()
173 logln("unparsable string , should fail at " + pos.getErrorIndex()); in Test4052223()
174 if (pos.getErrorIndex() == -1) in Test4052223()
177 if (pos.getErrorIndex() != 4) in Test4052223()
178 errln("setErrorIndex failed, got " + pos.getErrorIndex() + " instead of 4"); in Test4052223()
187 if (pos.getErrorIndex() != -1 && obj.doubleValue() == -1.0) in Test4052223()
188 errln("Parse with \"are negative\" failed, at " + pos.getErrorIndex()); in Test4052223()
191 if (pos.getErrorIndex() != -1 && obj.doubleValue() == 0.0) in Test4052223()
192 errln("Parse with \"are no or fraction\" failed, at " + pos.getErrorIndex()); in Test4052223()
195 if (pos.getErrorIndex() == -1 && !Double.isNaN(obj.doubleValue())) in Test4052223()
[all …]
DDateFormatRegressionTest.java856 logln("Parse pos = " + pos.getIndex() + ", error pos = " + pos.getErrorIndex()); in Test4210209()
857 if (pos.getErrorIndex() != -1) { in Test4210209()
1260 if(p.getErrorIndex() != -1) in TestT10239()
1265 if(p.getErrorIndex() != -1) { in TestT10239()
1266 … + " against pattern " + item.pattern + " -- idx["+p.getIndex()+"] errIdx["+p.getErrorIndex()+"]"); in TestT10239()
1326 int errorIdx = pp.getErrorIndex(); in TestT10334()
1394 if(p.getErrorIndex() != -1) in TestT10619()
1399 if(p.getErrorIndex() != -1) { in TestT10619()
1400 … error for string " +item.parseString + " -- idx["+p.getIndex()+"] errIdx["+p.getErrorIndex()+"]"); in TestT10619()
1421 int errorIdx = pp.getErrorIndex(); in TestT10906()
DNumberFormatRegressionTest.java372 if (pos.getErrorIndex() >= 0) { in TestT9293()
373 errln("FAIL: Parsing " + txt + " - error index: " + pos.getErrorIndex()); in TestT9293()
DDateTimeGeneratorTest.java551 if (parsePosition.getErrorIndex() >= 0) { in TestReplacingZoneString()
552 …" + formatted.substring(0,parsePosition.getErrorIndex()) + "{}" + formatted.substring(parsePositio… in TestReplacingZoneString()
DNumberFormatTest.java416 parsePosition.getErrorIndex() != errorIndex) { in TestSpaceParsing()
417 …rse position: " + parsePosition.getIndex() + "; error position: " + parsePosition.getErrorIndex()); in TestSpaceParsing()
419 if (parsePosition.getErrorIndex() == -1 && in TestSpaceParsing()
718 parsePosition.getErrorIndex() != errorIndex) { in TestMiscCurrencyParsing()
719 …se failed. expected error position: " + errorIndex + "; actual: " + parsePosition.getErrorIndex()); in TestMiscCurrencyParsing()
722 if (parsePosition.getErrorIndex() == -1 && in TestMiscCurrencyParsing()
2438 String err = pp.getErrorIndex() == -1 ? "" : "(error at " + pp.getErrorIndex() + ")"; in runStrictParseTests()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
DExceptionTests.java116 if (ifeA.getErrorIndex() != ifeB.getErrorIndex()) { in hasSameBehavior()
136 if (ifeA.getErrorIndex() != ifeB.getErrorIndex()) { in hasSameBehavior()
/external/icu/icu4c/source/test/intltest/
Dmsfmrgts.cpp282 if (pos.getErrorIndex() != -1) { in Test4052223()
294 logln(UnicodeString("unparsable string , should fail at ") + pos.getErrorIndex()); in Test4052223()
295 if (pos.getErrorIndex() == -1) in Test4052223()
298 if (pos.getErrorIndex() != 4) in Test4052223()
299 errln(UnicodeString("setErrorIndex failed, got ") + pos.getErrorIndex() + " instead of 4"); in Test4052223()
308 if (pos.getErrorIndex() != -1 && obj.getDouble() == -1.0) in Test4052223()
309 errln(UnicodeString("Parse with \"are negative\" failed, at ") + pos.getErrorIndex()); in Test4052223()
313 if (pos.getErrorIndex() != -1 && obj.getDouble() == 0.0) in Test4052223()
314 errln(UnicodeString("Parse with \"are no or fraction\" failed, at ") + pos.getErrorIndex()); in Test4052223()
318 if (pos.getErrorIndex() == -1 && ! uprv_isNaN(obj.getDouble())) in Test4052223()
[all …]
Ddtfmrgts.cpp1217 ", error pos = " + pos.getErrorIndex()); in Test4210209()
1218 if (pos.getErrorIndex() != -1) { in Test4210209()
1580 if (pp.getErrorIndex() != -1) { in TestT10334()
1643 if(pos.getErrorIndex() > -1) { in TestT10619()
1645 …rln("error: unexpected error - " + itemPtr->parseString + " - error index " + pos.getErrorIndex() + in TestT10619()
1698 if (position.getErrorIndex() != -1 || position.getIndex() == items[x].initialParsePos) { in TestT10855()
1699 …logln("Parse Failed. ErrorIndex is %d - Index is %d", position.getErrorIndex(), position.getIndex(… in TestT10855()
1701 …hould have failed. Index is %d - ErrorIndex is %d", position.getIndex(), position.getErrorIndex()); in TestT10855()
1718 errorIdx = pp.getErrorIndex(); in TestT10906()
Ddtfmttst.cpp4435 if(pos.getErrorIndex() != -1) { in TestDateFormatLeniency()
4440 " - error index " + pos.getErrorIndex() + in TestDateFormatLeniency()
4445 if(pos.getErrorIndex() != -1) { in TestDateFormatLeniency()
4449 " - error index "+pos.getErrorIndex() + in TestDateFormatLeniency()
4533 if(pos.getErrorIndex() != -1) { in TestParseMultiPatternMatch()
4537 " - error index " + pos.getErrorIndex() + in TestParseMultiPatternMatch()
4542 if(pos.getErrorIndex() != -1) { in TestParseMultiPatternMatch()
4543 …string - " +itemPtr->parseString + " -- idx["+pos.getIndex()+"] errIdx["+pos.getErrorIndex()+"]"); in TestParseMultiPatternMatch()
/external/icu/icu4c/source/common/unicode/
Dparsepos.h150 int32_t getErrorIndex(void) const;
218 ParsePosition::getErrorIndex() const in getErrorIndex() function
/external/icu/icu4c/source/i18n/
Dnfrule.cpp879 parsePosition.setErrorIndex(pp.getErrorIndex()); in doParse()
963 int32_t temp = pp2.getErrorIndex() + sub1->getPos() + pp.getIndex(); in doParse()
964 if (temp> parsePosition.getErrorIndex()) { in doParse()
972 int32_t temp = sub1->getPos() + pp.getErrorIndex(); in doParse()
973 if (temp > parsePosition.getErrorIndex()) { in doParse()
1135 if (tempPP.getErrorIndex() > 0) { in matchToDelimiter()
1136 pp.setErrorIndex(tempPP.getErrorIndex()); in matchToDelimiter()
1181 pp.setErrorIndex(tempPP.getErrorIndex()); in matchToDelimiter()
Dtzfmt.cpp835 if (tmpPos.getErrorIndex() == -1) { in parse()
867 if (tmpPos.getErrorIndex() == -1) { in parse()
884 if (tmpPos.getErrorIndex() == -1) { in parse()
905 if (tmpPos.getErrorIndex() == -1) { in parse()
925 if (tmpPos.getErrorIndex() == -1 && hasDigitOffset) { in parse()
1056 if (tmpPos.getErrorIndex() == -1) { in parse()
1068 if (tmpPos.getErrorIndex() == -1) { in parse()
1080 if (tmpPos.getErrorIndex() == -1) { in parse()
1119 if (tmpPos.getErrorIndex() == -1) { in parse()
1145 if (tmpPos.getErrorIndex() == -1) { in parse()
[all …]
Dunum.cpp340 if(pp.getErrorIndex() != -1) { in parseRes()
343 *parsePos = pp.getErrorIndex(); in parseRes()
438 if (pp.getErrorIndex() != -1) { in unum_parseDoubleCurrency()
440 *parsePos = pp.getErrorIndex(); in unum_parseDoubleCurrency()
Dudat.cpp363 if(pp.getErrorIndex() == -1) in udat_parse()
366 *parsePos = pp.getErrorIndex(); in udat_parse()
395 if(pp.getErrorIndex() == -1) in udat_parseCalendar()
398 *parsePos = pp.getErrorIndex(); in udat_parseCalendar()
Dreldtfmt.cpp317 UBool noError = (pos.getErrorIndex() < 0); in parse()
318 int32_t offset = (noError)? pos.getIndex(): pos.getErrorIndex(); in parse()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DTimeZoneFormat.java1096 if (tmpPos.getErrorIndex() == -1) { in parse()
1126 if (tmpPos.getErrorIndex() == -1) { in parse()
1141 if (tmpPos.getErrorIndex() == -1) { in parse()
1161 if (tmpPos.getErrorIndex() == -1) { in parse()
1180 if (tmpPos.getErrorIndex() == -1 && hasDigitOffset.value) { in parse()
1271 if (tmpPos.getErrorIndex() == -1) { in parse()
1283 if (tmpPos.getErrorIndex() == -1) { in parse()
1295 if (tmpPos.getErrorIndex() == -1) { in parse()
1332 if (tmpPos.getErrorIndex() == -1) { in parse()
1359 if (tmpPos.getErrorIndex() == -1) { in parse()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DLocaleSyntaxException.java24 public int getErrorIndex() { in getErrorIndex() method in LocaleSyntaxException
DParseStatus.java24 public int getErrorIndex() { in getErrorIndex() method in ParseStatus
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DIllformedLocaleException.java65 public int getErrorIndex() { in getErrorIndex() method in IllformedLocaleException
DULocale.java3607 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setLocale()
3635 throw new IllformedLocaleException(sts.getErrorMessage(), sts.getErrorIndex()); in setLanguageTag()
3661 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setLanguage()
3683 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setScript()
3709 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setRegion()
3736 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setVariant()
3769 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setExtension()
3800 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setUnicodeLocaleKeyword()
3822 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in addUnicodeLocaleAttribute()
3846 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in removeUnicodeLocaleAttribute()
/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/
DFractionFormat.java208 parsePosition.getErrorIndex(), in parse()
DBigFractionFormat.java197 parsePosition.getErrorIndex(), in parse()
/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/
DRealVectorFormat.java267 parsePosition.getErrorIndex(), in parse()
/external/apache-commons-math/src/main/java/org/apache/commons/math/geometry/
DVector3DFormat.java262 parsePosition.getErrorIndex(), in parse()
/external/apache-commons-math/src/main/java/org/apache/commons/math/complex/
DComplexFormat.java259 parsePosition.getErrorIndex(), in parse()

12