Home
last modified time | relevance | path

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

1234

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DMessageRegressionTest.java173 if (pos.getErrorIndex() != -1) { in Test4052223()
179 logln("unparsable string , should fail at " + pos.getErrorIndex()); in Test4052223()
180 if (pos.getErrorIndex() == -1) in Test4052223()
183 if (pos.getErrorIndex() != 4) in Test4052223()
184 errln("setErrorIndex failed, got " + pos.getErrorIndex() + " instead of 4"); in Test4052223()
193 if (pos.getErrorIndex() != -1 && obj.doubleValue() == -1.0) in Test4052223()
194 errln("Parse with \"are negative\" failed, at " + pos.getErrorIndex()); in Test4052223()
197 if (pos.getErrorIndex() != -1 && obj.doubleValue() == 0.0) in Test4052223()
198 errln("Parse with \"are no or fraction\" failed, at " + pos.getErrorIndex()); in Test4052223()
201 if (pos.getErrorIndex() == -1 && !Double.isNaN(obj.doubleValue())) in Test4052223()
[all …]
DDateFormatRegressionTest.java885 logln("Parse pos = " + pos.getIndex() + ", error pos = " + pos.getErrorIndex()); in Test4210209()
886 if (pos.getErrorIndex() != -1) { in Test4210209()
1298 if(p.getErrorIndex() != -1) in TestT10239()
1303 if(p.getErrorIndex() != -1) { in TestT10239()
1304 … + " against pattern " + item.pattern + " -- idx["+p.getIndex()+"] errIdx["+p.getErrorIndex()+"]"); in TestT10239()
1365 int errorIdx = pp.getErrorIndex(); in TestT10334()
1434 if(p.getErrorIndex() != -1) in TestT10619()
1439 if(p.getErrorIndex() != -1) { in TestT10619()
1440 … error for string " +item.parseString + " -- idx["+p.getIndex()+"] errIdx["+p.getErrorIndex()+"]"); in TestT10619()
1462 int errorIdx = pp.getErrorIndex(); in TestT10906()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DMessageRegressionTest.java176 if (pos.getErrorIndex() != -1) { in Test4052223()
182 logln("unparsable string , should fail at " + pos.getErrorIndex()); in Test4052223()
183 if (pos.getErrorIndex() == -1) in Test4052223()
186 if (pos.getErrorIndex() != 4) in Test4052223()
187 errln("setErrorIndex failed, got " + pos.getErrorIndex() + " instead of 4"); in Test4052223()
196 if (pos.getErrorIndex() != -1 && obj.doubleValue() == -1.0) in Test4052223()
197 errln("Parse with \"are negative\" failed, at " + pos.getErrorIndex()); in Test4052223()
200 if (pos.getErrorIndex() != -1 && obj.doubleValue() == 0.0) in Test4052223()
201 errln("Parse with \"are no or fraction\" failed, at " + pos.getErrorIndex()); in Test4052223()
204 if (pos.getErrorIndex() == -1 && !Double.isNaN(obj.doubleValue())) in Test4052223()
[all …]
DDateFormatRegressionTest.java888 logln("Parse pos = " + pos.getIndex() + ", error pos = " + pos.getErrorIndex()); in Test4210209()
889 if (pos.getErrorIndex() != -1) { in Test4210209()
1301 if(p.getErrorIndex() != -1) in TestT10239()
1306 if(p.getErrorIndex() != -1) { in TestT10239()
1307 … + " against pattern " + item.pattern + " -- idx["+p.getIndex()+"] errIdx["+p.getErrorIndex()+"]"); in TestT10239()
1368 int errorIdx = pp.getErrorIndex(); in TestT10334()
1437 if(p.getErrorIndex() != -1) in TestT10619()
1442 if(p.getErrorIndex() != -1) { in TestT10619()
1443 … error for string " +item.parseString + " -- idx["+p.getIndex()+"] errIdx["+p.getErrorIndex()+"]"); in TestT10619()
1465 int errorIdx = pp.getErrorIndex(); in TestT10906()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/
DExceptionHandler.java115 if (ifeA.getErrorIndex() != ifeB.getErrorIndex()) { in hasSameBehavior()
135 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 …]
Dnumfmtdatadriventest.cpp343 appendErrorMessage = appendErrorMessage + ppos.getErrorIndex(); in isParsePass()
392 actualString + " (" + ppos.getIndex() + ":" + ppos.getErrorIndex() + ")"); in isParsePass()
419 appendErrorMessage = appendErrorMessage + ppos.getErrorIndex(); in isParseCurrencyPass()
444 resultStr + " (" + ppos.getIndex() + ":" + ppos.getErrorIndex() + ")"); in isParseCurrencyPass()
Ddtfmrgts.cpp1221 ", error pos = " + pos.getErrorIndex()); in Test4210209()
1222 if (pos.getErrorIndex() != -1) { in Test4210209()
1584 if (pp.getErrorIndex() != -1) { in TestT10334()
1647 if(pos.getErrorIndex() > -1) { in TestT10619()
1649 …rln("error: unexpected error - " + itemPtr->parseString + " - error index " + pos.getErrorIndex() + in TestT10619()
1702 if (position.getErrorIndex() != -1 || position.getIndex() == items[x].initialParsePos) { in TestT10855()
1703 …logln("Parse Failed. ErrorIndex is %d - Index is %d", position.getErrorIndex(), position.getIndex(… in TestT10855()
1705 …hould have failed. Index is %d - ErrorIndex is %d", position.getIndex(), position.getErrorIndex()); in TestT10855()
1722 errorIdx = pp.getErrorIndex(); in TestT10906()
/external/icu/icu4j/main/tests/core/src/com/ibm/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/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.java1038 if (tmpPos.getErrorIndex() == -1) { in parse()
1068 if (tmpPos.getErrorIndex() == -1) { in parse()
1083 if (tmpPos.getErrorIndex() == -1) { in parse()
1103 if (tmpPos.getErrorIndex() == -1) { in parse()
1122 if (tmpPos.getErrorIndex() == -1 && hasDigitOffset.value) { in parse()
1213 if (tmpPos.getErrorIndex() == -1) { in parse()
1225 if (tmpPos.getErrorIndex() == -1) { in parse()
1237 if (tmpPos.getErrorIndex() == -1) { in parse()
1274 if (tmpPos.getErrorIndex() == -1) { in parse()
1301 if (tmpPos.getErrorIndex() == -1) { in parse()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DTimeZoneFormat.java1099 if (tmpPos.getErrorIndex() == -1) { in parse()
1129 if (tmpPos.getErrorIndex() == -1) { in parse()
1144 if (tmpPos.getErrorIndex() == -1) { in parse()
1164 if (tmpPos.getErrorIndex() == -1) { in parse()
1183 if (tmpPos.getErrorIndex() == -1 && hasDigitOffset.value) { in parse()
1274 if (tmpPos.getErrorIndex() == -1) { in parse()
1286 if (tmpPos.getErrorIndex() == -1) { in parse()
1298 if (tmpPos.getErrorIndex() == -1) { in parse()
1335 if (tmpPos.getErrorIndex() == -1) { in parse()
1362 if (tmpPos.getErrorIndex() == -1) { in parse()
[all …]
/external/icu/icu4c/source/i18n/
Dnfrule.cpp944 parsePosition.setErrorIndex(pp.getErrorIndex()); in doParse()
1042 int32_t i_temp = pp2.getErrorIndex() + sub1Pos + pp.getIndex(); in doParse()
1043 if (i_temp> parsePosition.getErrorIndex()) { in doParse()
1051 int32_t i_temp = sub1Pos + pp.getErrorIndex(); in doParse()
1052 if (i_temp > parsePosition.getErrorIndex()) { in doParse()
1214 if (tempPP.getErrorIndex() > 0) { in matchToDelimiter()
1215 pp.setErrorIndex(tempPP.getErrorIndex()); in matchToDelimiter()
1265 pp.setErrorIndex(tempPP.getErrorIndex()); in matchToDelimiter()
Dtzfmt.cpp841 if (tmpPos.getErrorIndex() == -1) { in parse()
873 if (tmpPos.getErrorIndex() == -1) { in parse()
890 if (tmpPos.getErrorIndex() == -1) { in parse()
911 if (tmpPos.getErrorIndex() == -1) { in parse()
931 if (tmpPos.getErrorIndex() == -1 && hasDigitOffset) { in parse()
1062 if (tmpPos.getErrorIndex() == -1) { in parse()
1074 if (tmpPos.getErrorIndex() == -1) { in parse()
1086 if (tmpPos.getErrorIndex() == -1) { in parse()
1125 if (tmpPos.getErrorIndex() == -1) { in parse()
1151 if (tmpPos.getErrorIndex() == -1) { in parse()
[all …]
/external/cldr/tools/java/org/unicode/cldr/draft/
DStateMachineTest.java131 … System.out.println("ERROR: " + testLine.substring(0, parsePosition.getErrorIndex()) in main()
132 + "$" + testLine.substring(parsePosition.getErrorIndex())); in main()
/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/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/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/android_icu4j/src/main/java/android/icu/util/
DIllformedLocaleException.java63 public int getErrorIndex() { in getErrorIndex() method in IllformedLocaleException
DULocale.java3444 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setLocale()
3470 throw new IllformedLocaleException(sts.getErrorMessage(), sts.getErrorIndex()); in setLanguageTag()
3494 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setLanguage()
3514 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setScript()
3538 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setRegion()
3563 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setVariant()
3594 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setExtension()
3623 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setUnicodeLocaleKeyword()
3643 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in addUnicodeLocaleAttribute()
3665 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in removeUnicodeLocaleAttribute()
/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
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DIllformedLocaleException.java67 public int getErrorIndex() { in getErrorIndex() method in IllformedLocaleException

1234