Home
last modified time | relevance | path

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

1234

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DMessageRegressionTest.java170 if (pos.getErrorIndex() != -1) { in Test4052223()
176 logln("unparsable string , should fail at " + pos.getErrorIndex()); in Test4052223()
177 if (pos.getErrorIndex() == -1) in Test4052223()
180 if (pos.getErrorIndex() != 4) in Test4052223()
181 errln("setErrorIndex failed, got " + pos.getErrorIndex() + " instead of 4"); in Test4052223()
190 if (pos.getErrorIndex() != -1 && obj.doubleValue() == -1.0) in Test4052223()
191 errln("Parse with \"are negative\" failed, at " + pos.getErrorIndex()); in Test4052223()
194 if (pos.getErrorIndex() != -1 && obj.doubleValue() == 0.0) in Test4052223()
195 errln("Parse with \"are no or fraction\" failed, at " + pos.getErrorIndex()); in Test4052223()
198 if (pos.getErrorIndex() == -1 && !Double.isNaN(obj.doubleValue())) in Test4052223()
[all …]
DDateFormatRegressionTest.java884 logln("Parse pos = " + pos.getIndex() + ", error pos = " + pos.getErrorIndex()); in Test4210209()
885 if (pos.getErrorIndex() != -1) { in Test4210209()
1297 if(p.getErrorIndex() != -1) in TestT10239()
1302 if(p.getErrorIndex() != -1) { in TestT10239()
1303 … + " against pattern " + item.pattern + " -- idx["+p.getIndex()+"] errIdx["+p.getErrorIndex()+"]"); in TestT10239()
1364 int errorIdx = pp.getErrorIndex(); in TestT10334()
1433 if(p.getErrorIndex() != -1) in TestT10619()
1438 if(p.getErrorIndex() != -1) { in TestT10619()
1439 … error for string " +item.parseString + " -- idx["+p.getIndex()+"] errIdx["+p.getErrorIndex()+"]"); in TestT10619()
1461 int errorIdx = pp.getErrorIndex(); in TestT10906()
DNumberFormatRegressionTest.java381 if (pos.getErrorIndex() >= 0) { in TestT9293()
382 errln("FAIL: Parsing " + txt + " - error index: " + pos.getErrorIndex()); in TestT9293()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DMessageRegressionTest.java169 if (pos.getErrorIndex() != -1) { in Test4052223()
175 logln("unparsable string , should fail at " + pos.getErrorIndex()); in Test4052223()
176 if (pos.getErrorIndex() == -1) in Test4052223()
179 if (pos.getErrorIndex() != 4) in Test4052223()
180 errln("setErrorIndex failed, got " + pos.getErrorIndex() + " instead of 4"); in Test4052223()
189 if (pos.getErrorIndex() != -1 && obj.doubleValue() == -1.0) in Test4052223()
190 errln("Parse with \"are negative\" failed, at " + pos.getErrorIndex()); in Test4052223()
193 if (pos.getErrorIndex() != -1 && obj.doubleValue() == 0.0) in Test4052223()
194 errln("Parse with \"are no or fraction\" failed, at " + pos.getErrorIndex()); in Test4052223()
197 if (pos.getErrorIndex() == -1 && !Double.isNaN(obj.doubleValue())) in Test4052223()
[all …]
DDateFormatRegressionTest.java883 logln("Parse pos = " + pos.getIndex() + ", error pos = " + pos.getErrorIndex()); in Test4210209()
884 if (pos.getErrorIndex() != -1) { in Test4210209()
1296 if(p.getErrorIndex() != -1) in TestT10239()
1301 if(p.getErrorIndex() != -1) { in TestT10239()
1302 … + " against pattern " + item.pattern + " -- idx["+p.getIndex()+"] errIdx["+p.getErrorIndex()+"]"); in TestT10239()
1363 int errorIdx = pp.getErrorIndex(); in TestT10334()
1432 if(p.getErrorIndex() != -1) in TestT10619()
1437 if(p.getErrorIndex() != -1) { in TestT10619()
1438 … error for string " +item.parseString + " -- idx["+p.getIndex()+"] errIdx["+p.getErrorIndex()+"]"); in TestT10619()
1460 int errorIdx = pp.getErrorIndex(); in TestT10906()
DNumberFormatRegressionTest.java380 if (pos.getErrorIndex() >= 0) { in TestT9293()
381 errln("FAIL: Parsing " + txt + " - error index: " + pos.getErrorIndex()); in TestT9293()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
DExceptionHandler.java113 if (ifeA.getErrorIndex() != ifeB.getErrorIndex()) { in hasSameBehavior()
133 if (ifeA.getErrorIndex() != ifeB.getErrorIndex()) { in hasSameBehavior()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/
DExceptionHandler.java114 if (ifeA.getErrorIndex() != ifeB.getErrorIndex()) { in hasSameBehavior()
134 if (ifeA.getErrorIndex() != ifeB.getErrorIndex()) { in hasSameBehavior()
/external/icu/icu4c/source/test/intltest/
Dmsfmrgts.cpp285 if (pos.getErrorIndex() != -1) { in Test4052223()
297 logln(UnicodeString("unparsable string , should fail at ") + pos.getErrorIndex()); in Test4052223()
298 if (pos.getErrorIndex() == -1) in Test4052223()
301 if (pos.getErrorIndex() != 4) in Test4052223()
302 errln(UnicodeString("setErrorIndex failed, got ") + pos.getErrorIndex() + " instead of 4"); in Test4052223()
311 if (pos.getErrorIndex() != -1 && obj.getDouble() == -1.0) in Test4052223()
312 errln(UnicodeString("Parse with \"are negative\" failed, at ") + pos.getErrorIndex()); in Test4052223()
316 if (pos.getErrorIndex() != -1 && obj.getDouble() == 0.0) in Test4052223()
317 errln(UnicodeString("Parse with \"are no or fraction\" failed, at ") + pos.getErrorIndex()); in Test4052223()
321 if (pos.getErrorIndex() == -1 && ! uprv_isNaN(obj.getDouble())) in Test4052223()
[all …]
Ddtfmrgts.cpp1220 ", error pos = " + pos.getErrorIndex()); in Test4210209()
1221 if (pos.getErrorIndex() != -1) { in Test4210209()
1583 if (pp.getErrorIndex() != -1) { in TestT10334()
1646 if(pos.getErrorIndex() > -1) { in TestT10619()
1648 …rln("error: unexpected error - " + itemPtr->parseString + " - error index " + pos.getErrorIndex() + in TestT10619()
1701 if (position.getErrorIndex() != -1 || position.getIndex() == items[x].initialParsePos) { in TestT10855()
1702 …logln("Parse Failed. ErrorIndex is %d - Index is %d", position.getErrorIndex(), position.getIndex(… in TestT10855()
1704 …hould have failed. Index is %d - ErrorIndex is %d", position.getIndex(), position.getErrorIndex()); in TestT10855()
1721 errorIdx = pp.getErrorIndex(); in TestT10906()
/external/icu/icu4c/source/common/unicode/
Dparsepos.h152 int32_t getErrorIndex(void) const;
220 ParsePosition::getErrorIndex() const in getErrorIndex() function
/external/icu/android_icu4j/src/main/java/android/icu/text/
DTimeZoneFormat.java1037 if (tmpPos.getErrorIndex() == -1) { in parse()
1067 if (tmpPos.getErrorIndex() == -1) { in parse()
1082 if (tmpPos.getErrorIndex() == -1) { in parse()
1102 if (tmpPos.getErrorIndex() == -1) { in parse()
1121 if (tmpPos.getErrorIndex() == -1 && hasDigitOffset.value) { in parse()
1212 if (tmpPos.getErrorIndex() == -1) { in parse()
1224 if (tmpPos.getErrorIndex() == -1) { in parse()
1236 if (tmpPos.getErrorIndex() == -1) { in parse()
1273 if (tmpPos.getErrorIndex() == -1) { in parse()
1300 if (tmpPos.getErrorIndex() == -1) { in parse()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DTimeZoneFormat.java1098 if (tmpPos.getErrorIndex() == -1) { in parse()
1128 if (tmpPos.getErrorIndex() == -1) { in parse()
1143 if (tmpPos.getErrorIndex() == -1) { in parse()
1163 if (tmpPos.getErrorIndex() == -1) { in parse()
1182 if (tmpPos.getErrorIndex() == -1 && hasDigitOffset.value) { in parse()
1273 if (tmpPos.getErrorIndex() == -1) { in parse()
1285 if (tmpPos.getErrorIndex() == -1) { in parse()
1297 if (tmpPos.getErrorIndex() == -1) { in parse()
1334 if (tmpPos.getErrorIndex() == -1) { in parse()
1361 if (tmpPos.getErrorIndex() == -1) { in parse()
[all …]
/external/icu/icu4c/source/i18n/
Dnfrule.cpp936 parsePosition.setErrorIndex(pp.getErrorIndex()); in doParse()
1032 int32_t temp = pp2.getErrorIndex() + sub1Pos + pp.getIndex(); in doParse()
1033 if (temp> parsePosition.getErrorIndex()) { in doParse()
1041 int32_t temp = sub1Pos + pp.getErrorIndex(); in doParse()
1042 if (temp > parsePosition.getErrorIndex()) { in doParse()
1202 if (tempPP.getErrorIndex() > 0) { in matchToDelimiter()
1203 pp.setErrorIndex(tempPP.getErrorIndex()); in matchToDelimiter()
1252 pp.setErrorIndex(tempPP.getErrorIndex()); in matchToDelimiter()
Dtzfmt.cpp837 if (tmpPos.getErrorIndex() == -1) { in parse()
869 if (tmpPos.getErrorIndex() == -1) { in parse()
886 if (tmpPos.getErrorIndex() == -1) { in parse()
907 if (tmpPos.getErrorIndex() == -1) { in parse()
927 if (tmpPos.getErrorIndex() == -1 && hasDigitOffset) { in parse()
1058 if (tmpPos.getErrorIndex() == -1) { in parse()
1070 if (tmpPos.getErrorIndex() == -1) { in parse()
1082 if (tmpPos.getErrorIndex() == -1) { in parse()
1121 if (tmpPos.getErrorIndex() == -1) { in parse()
1147 if (tmpPos.getErrorIndex() == -1) { in parse()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/
DLocaleSyntaxException.java30 public int getErrorIndex() { in getErrorIndex() method in LocaleSyntaxException
DParseStatus.java30 public int getErrorIndex() { in getErrorIndex() method in ParseStatus
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DLocaleSyntaxException.java26 public int getErrorIndex() { in getErrorIndex() method in LocaleSyntaxException
DParseStatus.java26 public int getErrorIndex() { in getErrorIndex() method in ParseStatus
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/impl/locale/
DLocaleSyntaxException.java26 public int getErrorIndex() { in getErrorIndex() method in LocaleSyntaxException
DParseStatus.java26 public int getErrorIndex() { in getErrorIndex() method in ParseStatus
/external/icu/android_icu4j/src/main/java/android/icu/util/
DIllformedLocaleException.java64 public int getErrorIndex() { in getErrorIndex() method in IllformedLocaleException
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/
DIllformedLocaleException.java72 public int getErrorIndex() { in getErrorIndex() method in IllformedLocaleException
DULocale.java2815 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setLocale()
2844 throw new IllformedLocaleException(sts.getErrorMessage(), sts.getErrorIndex()); in setLanguageTag()
2871 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setLanguage()
2894 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setScript()
2921 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setRegion()
2949 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setVariant()
2983 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setExtension()
3015 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setUnicodeLocaleKeyword()
3038 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in addUnicodeLocaleAttribute()
3063 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in removeUnicodeLocaleAttribute()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DIllformedLocaleException.java67 public int getErrorIndex() { in getErrorIndex() method in IllformedLocaleException

1234