Lines Matching refs:parse
227 appendErrorMessage.append("Error setting parse no exponent flag.");
386 fmtPtr->parse(tuple.parse, result, ppos);
389 appendErrorMessage.append("Parse failed but was expected to succeed.");
396 appendErrorMessage.append(UnicodeString("Parse succeeded: ") + resultStr + ", but was expected to fail.");
431 fmtPtr->parseCurrency(tuple.parse, ppos));
434 appendErrorMessage.append("Parse failed but was expected to succeed.");
443 appendErrorMessage.append(UnicodeString("Parse succeeded: ") + resultStr + ", but was expected to fail.");
646 virtual void parse(const UnicodeString& ,
649 virtual void parse( const UnicodeString& ,
835 fmt.parse(s, af, pos);
845 //| -parse-> -3.1416e-271
859 logln((UnicodeString)" -parse-> " + a);
869 errln((UnicodeString)"FAIL: Partial parse (" + pos.getIndex() + " chars) -> " + a);
883 fmt.parse(s, af, pos);
890 logln((UnicodeString)" -parse-> " + a);
895 errln((UnicodeString)"FAIL: Partial parse (" + pos.getIndex() + " chars) -> " + a);
1307 Formattable n; format->parse(arg, n, status);
1308 logln((UnicodeString)"parse(" + arg + ") = " + n.getLong());
1404 format->parse(testCase, n, status);
1405 logln((UnicodeString)"parse(" + testCase + ") = " + n.getLong());
1409 errln((UnicodeString)"Lenient parse failed for \"" + (UnicodeString) lenientAffixTestCases[t] + (UnicodeString) "\"");
1428 mFormat->parse(testCase, n, status);
1429 logln((UnicodeString)"parse(" + testCase + ") = " + n.getLong());
1432 errln((UnicodeString)"Lenient parse failed for \"" + (UnicodeString) lenientMinusTestCases[t] + (UnicodeString) "\"");
1448 mFormat->parse(testCase, n, status);
1449 logln((UnicodeString)"parse(" + testCase + ") = " + n.getLong());
1452 errln((UnicodeString)"Lenient parse failed for \"" + (UnicodeString) lenientMinusTestCases[t] + (UnicodeString) "\"");
1468 cFormat->parse(testCase, n, status);
1469 logln((UnicodeString)"parse(" + testCase + ") = " + n.getLong());
1473 errln((UnicodeString)"Lenient parse failed for \"" + (UnicodeString) lenientCurrencyTestCases[t] + (UnicodeString) "\"");
1481 cFormat->parse(testCase, n, status);
1482 logln((UnicodeString)"parse(" + testCase + ") = " + n.getLong());
1486 errln((UnicodeString)"Lenient parse failed for \"" + (UnicodeString) lenientNegativeCurrencyTestCases[t] + (UnicodeString) "\"");
1503 pFormat->parse(testCase, n, status);
1504 logln((UnicodeString)"parse(" + testCase + ") = " + n.getDouble());
1508 errln((UnicodeString)"Lenient parse failed for \"" + (UnicodeString) lenientPercentTestCases[t] + (UnicodeString) "\"");
1516 pFormat->parse(testCase, n, status);
1517 logln((UnicodeString)"parse(" + testCase + ") = " + n.getDouble());
1521 errln((UnicodeString)"Lenient parse failed for \"" + (UnicodeString) lenientNegativePercentTestCases[t] + (UnicodeString) "\"");
1529 // Test cases that should fail with a strict parse and pass with a
1530 // lenient parse.
1536 // first, make sure that they fail with a strict parse
1540 nFormat->parse(testCase, n, status);
1541 logln((UnicodeString)"parse(" + testCase + ") = " + n.getLong());
1544 errln((UnicodeString)"Strict Parse succeeded for \"" + (UnicodeString) strictFailureTestCases[t] + (UnicodeString) "\"");
1550 // then, make sure that they pass with a lenient parse
1555 nFormat->parse(testCase, n, status);
1556 logln((UnicodeString)"parse(" + testCase + ") = " + n.getLong());
1560 errln((UnicodeString)"Lenient parse failed for \"" + (UnicodeString) strictFailureTestCases[t] + (UnicodeString) "\"");
1718 expect(fmt1, "1.234E+3", n); // Either format should parse "E+3"
2583 /*0*/ "ref=", // <reference pattern to parse numbers>
2611 * Parse a CurrencyAmount using the given NumberFormat, with
2624 fmt.parse(num, n, ec);
2694 ref->parse(num, n, ec);
2695 assertSuccess("parse", ec);
2701 ref->parse(num, n, ec);
2702 assertSuccess("parse", ec);
2706 fmt->parse(str, m, ec);
2707 assertSuccess("parse", ec);
2708 assertEquals(where + "\"" + pat + "\".parse(\"" + str + "\")",
2712 // p: <pattern or '-'> <string to parse> <exp. number>
2718 ref->parse(expstr, exp, ec);
2719 assertSuccess("parse", ec);
2720 fmt->parse(str, n, ec);
2721 assertSuccess("parse", ec);
2722 assertEquals(where + "\"" + pat + "\".parse(\"" + str + "\")",
2765 assertEquals(where + "getCurrencyFormat(" + mloc + ").parse(\"" + str + "\")",
2898 fmt.parse(str, num, status);
2900 dataerrln(UnicodeString("FAIL: Parse failed for \"") + str + "\" - " + u_errorName(status));
2919 fmt.parse(str, num, status);
2921 errln(UnicodeString("FAIL: Parse failed for \"") + str + "\"");
2949 fmt.parse(exp, n2, status);
2951 errln(UnicodeString("FAIL: Parse failed for \"") + exp + "\"");
2987 fmt.parse(exp, n2, status);
2989 errln(UnicodeString("FAIL: Parse failed for \"") + exp + "\" - " + u_errorName(status));
3117 logln("%s:%d - testing parse of halfwidth yen sign\n", __FILE__, __LINE__);
3119 logln("%s:%d - testing parse of fullwidth yen sign\n", __FILE__, __LINE__);
3121 logln("%s:%d - testing parse of halfwidth yen sign\n", __FILE__, __LINE__);
3127 logln("%s:%d - testing parse of halfwidth yen sign in TW\n", __FILE__, __LINE__);
3129 logln("%s:%d - testing parse of fullwidth yen sign in TW\n", __FILE__, __LINE__);
3135 logln("%s:%d - testing parse
3137 logln("%s:%d - testing parse of fullwidth yen sign in JP\n", __FILE__, __LINE__);
3149 errln(UnicodeString("Parse of ") + utext + " should have succeeded.");
3225 full->parse(result1, formattable, status);
3227 errln("FAIL: Can't parse for host");
3415 df->parse(formattedDecimal, result, status);
3544 foo->parse(stringToBeParsed, result, parsePosition);
3547 errln("FAILED parse " + stringToBeParsed + "; lenient: " + DATA[i].lenient + "; wrong position, expected: (" + parsedPosition + ", " + errorIndex + "); got (" + parsePosition.getIndex() + ", " + parsePosition.getErrorIndex() + ")");
3552 errln("FAILED parse " + stringToBeParsed + "; wrong number, expect: 124, got " + result.getLong());
3720 fmt->parse(oneCurrencyFormat, parseRes, status);
3726 errln("FAILED parse " + oneCurrencyFormat + "; (i, j, k): " +
3812 fmt->parse(stringToBeParsed, result, status);
3818 errln((UnicodeString)"FAIL parse: Expected " + parsedResult);
3900 numFmt->parse(oneCurrencyFormatResult, parseResult, status);
4014 logln("parse(%s)", DATA[i][j]);
4015 numFmt->parse(oneCurrencyFormatResult, parseResult, status);
4022 "), Currency="+currencyISOCode+", parse("+DATA[i][j]+") returned error " + (UnicodeString)u_errorName(status)+". Testcase: data[" + i + "][" + currencyStyleNames[j-3] +"="+j+"]");
6599 errln("Failed to parse as currency: " + formatted);
6936 // Check a parse with a formatter with a multiplier.
6944 fmtr->parse(input, result, status);
6958 // Check that a parse returns a decimal number with full accuracy
6966 fmtr->parse(input, result, status);
7024 // parse the text
7025 fmt.parse("5.06e-27", result, parsePos);
7031 errln("ERROR: parse failed - expected 5.06E-27, 8 - returned %d, %i",
7631 test->parse(value, af, ppos);
7633 errln("Expected -0,5 to parse for Farsi.");
7647 test->parse(value, af, ppos);
7649 errln(UnicodeString("Expected ") + value + UnicodeString(" to parse."));
7770 numfmt->parse(itemPtr->numString, fmtobj, ppos);
7774 errln((UnicodeString)"FAIL: locale " + itemPtr->locale + ", lenient " + itemPtr->lenient + ", parse of \"" + itemPtr->numString + "\" gives value " + parsedValue);
7777 errln((UnicodeString)"FAIL: locale " + itemPtr->locale + ", lenient " + itemPtr->lenient + ", parse of \"" + itemPtr->numString + "\" gives position " + ppos.getIndex());