Lines Matching refs:ppos
295 ParsePosition ppos; in TestAPI() local
296 LocalPointer<CurrencyAmount> currAmt(test->parseCurrency("",ppos)); in TestAPI()
298 if (ppos.getIndex()) { in TestAPI()
3111 ParsePosition ppos; in expectParseCurrency() local
3113 LocalPointer<CurrencyAmount> currencyAmount(fmt.parseCurrency(utext, ppos)); in expectParseCurrency()
3114 if (!ppos.getIndex()) { in expectParseCurrency()
3768 ParsePosition ppos; in TestMismatchedCurrencyFormatFail() local
3769 df->parseCurrency(u"1.23\u20AC", ppos); in TestMismatchedCurrencyFormatFail()
3770 assertEquals("Should fail to parse currency", 0, ppos.getIndex()); in TestMismatchedCurrencyFormatFail()
7661 ParsePosition ppos; in TestParseNegativeWithFaLocale() local
7664 test->parse(value, af, ppos); in TestParseNegativeWithFaLocale()
7665 if (ppos.getIndex() == 0) { in TestParseNegativeWithFaLocale()
7677 ParsePosition ppos; in TestParseNegativeWithAlternateMinusSign() local
7680 test->parse(value, af, ppos); in TestParseNegativeWithAlternateMinusSign()
7681 if (ppos.getIndex() == 0) { in TestParseNegativeWithAlternateMinusSign()
7802 ParsePosition ppos; in TestParseSignsAndMarks() local
7803 numfmt->parse(itemPtr->numString, fmtobj, ppos); in TestParseSignsAndMarks()
7804 if (ppos.getIndex() == itemPtr->numString.length()) { in TestParseSignsAndMarks()
7810 … itemPtr->lenient + ", parse of \"" + itemPtr->numString + "\" gives position " + ppos.getIndex()); in TestParseSignsAndMarks()
8560 ParsePosition ppos(0); in Test11739_ParseLongCurrency() local
8561 LocalPointer<CurrencyAmount> result(nf->parseCurrency(u"1.500 амерички долар", ppos)); in Test11739_ParseLongCurrency()
8562 assertEquals("Should parse to 1500 USD", -1, ppos.getErrorIndex()); in Test11739_ParseLongCurrency()
8563 if (ppos.getErrorIndex() != -1) { in Test11739_ParseLongCurrency()
8828 ParsePosition ppos(0); in Test11735_ExceptionIssue() local
8829 fmt.parseCurrency("53.45", ppos); // NPE thrown here in ICU4J. in Test11735_ExceptionIssue()
8830 assertEquals("Issue11735 ppos", 0, ppos.getIndex()); in Test11735_ExceptionIssue()
8886 ParsePosition ppos; in TestParsePercentRegression() local
8888 df1->parse("50%", result, ppos); in TestParsePercentRegression()
8889 assertEquals("df1 should accept a number but not the percent sign", 2, ppos.getIndex()); in TestParsePercentRegression()
8893 ParsePosition ppos; in TestParsePercentRegression() local
8895 df2->parse("50%", result, ppos); in TestParsePercentRegression()
8896 assertEquals("df2 should accept the percent sign", 3, ppos.getIndex()); in TestParsePercentRegression()
8900 ParsePosition ppos; in TestParsePercentRegression() local
8902 df2->parse("50", result, ppos); in TestParsePercentRegression()
9047 ParsePosition ppos; in TestParseCaseSensitive() local
9048 df.parse(u"1e2", result, ppos); in TestParseCaseSensitive()
9049 assertEquals("Should parse only 1 digit", 1, ppos.getIndex()); in TestParseCaseSensitive()
9064 ParsePosition ppos; in TestParseNoExponent() local
9065 df.parse(u"1E2", result, ppos); in TestParseNoExponent()
9066 assertEquals("Should parse only 1 digit", 1, ppos.getIndex()); in TestParseNoExponent()
9556 ParsePosition ppos(0); in Test13804_EmptyStringsWhenParsing() local
9557 df.parse(sample, result, ppos); in Test13804_EmptyStringsWhenParsing()
9558 ppos = ParsePosition(0); in Test13804_EmptyStringsWhenParsing()
9559 LocalPointer<CurrencyAmount> curramt(df.parseCurrency(sample, ppos)); in Test13804_EmptyStringsWhenParsing()
9568 ParsePosition ppos(0); in Test13804_EmptyStringsWhenParsing() local
9569 df.parse(u"1E+2.3", result, ppos); in Test13804_EmptyStringsWhenParsing()
9868 ParsePosition ppos; in Test13734_StrictFlexibleWhitespace() local
9869 df.parse("+ 33", result, ppos); in Test13734_StrictFlexibleWhitespace()
9870 assertEquals("ppos : ", 0, ppos.getIndex()); in Test13734_StrictFlexibleWhitespace()
9877 ParsePosition ppos; in Test13734_StrictFlexibleWhitespace() local
9878 df.parse("+ 33", result, ppos); in Test13734_StrictFlexibleWhitespace()
9879 assertEquals("ppos : ", 0, ppos.getIndex()); in Test13734_StrictFlexibleWhitespace()
10011 ParsePosition ppos; in Test13733_StrictAndLenient() local
10022 LocalPointer<CurrencyAmount> ca_strict(df.parseCurrency(inputString, ppos)); in Test13733_StrictAndLenient()
10029 ppos.setIndex(0); in Test13733_StrictAndLenient()
10031 LocalPointer<CurrencyAmount> ca_lenient(df.parseCurrency(inputString, ppos)); in Test13733_StrictAndLenient()