Lines Matching refs:parse
179 virtual void parse(const UnicodeString& ,
182 virtual void parse( const UnicodeString& ,
368 fmt.parse(s, af, pos);
378 //| -parse-> -3.1416e-271
392 logln((UnicodeString)" -parse-> " + a);
402 errln((UnicodeString)"FAIL: Partial parse (" + pos.getIndex() + " chars) -> " + a);
416 fmt.parse(s, af, pos);
423 logln((UnicodeString)" -parse-> " + a);
428 errln((UnicodeString)"FAIL: Partial parse (" + pos.getIndex() + " chars) -> " + a);
835 Formattable n; format->parse(arg, n, status);
836 logln((UnicodeString)"parse(" + arg + ") = " + n.getLong());
996 expect(fmt1, "1.234E+3", n); // Either format should parse "E+3"
1830 /*0*/ "ref=", // <reference pattern to parse numbers>
1858 * Parse a CurrencyAmount using the given NumberFormat, with
1871 fmt.parse(num, n, ec);
1941 ref->parse(num, n, ec);
1942 assertSuccess("parse", ec);
1948 ref->parse(num, n, ec);
1949 assertSuccess("parse", ec);
1953 fmt->parse(str, m, ec);
1954 assertSuccess("parse", ec);
1955 assertEquals(where + "\"" + pat + "\".parse(\"" + str + "\")",
1959 // p: <pattern or '-'> <string to parse> <exp. number>
1965 ref->parse(expstr, exp, ec);
1966 assertSuccess("parse", ec);
1967 fmt->parse(str, n, ec);
1968 assertSuccess("parse", ec);
1969 assertEquals(where + "\"" + pat + "\".parse(\"" + str + "\")",
2006 assertEquals(where + "getCurrencyFormat(" + mloc + ").parse(\"" + str + "\")",
2139 fmt.parse(str, num, status);
2141 dataerrln(UnicodeString("FAIL: Parse failed for \"") + str + "\" - " + u_errorName(status));
2160 fmt.parse(str, num, status);
2162 errln(UnicodeString("FAIL: Parse failed for \"") + str + "\"");
2190 fmt.parse(exp, n2, status);
2192 errln(UnicodeString("FAIL: Parse failed for \"") + exp + "\"");
2228 fmt.parse(exp, n2, status);
2230 errln(UnicodeString("FAIL: Parse failed for \"") + exp + "\" - " + u_errorName(status));
2390 full->parse(result1, formattable, status);
2392 errln("FAIL: Can't parse for host");
2544 df->parse(formattedDecimal, result, status);
2653 foo->parse(stringToBeParsed, result, parsePosition);
2656 errln("FAILED parse " + stringToBeParsed + "; wrong position, expected: (" + parsedPosition + ", " + errorIndex + "); got (" + parsePosition.getIndex() + ", " + parsePosition.getErrorIndex() + ")");
2661 errln("FAILED parse " + stringToBeParsed + "; wrong number, expect: 124, got " + result.getLong());
2827 fmt->parse(oneCurrencyFormat, parseRes, status);
2833 errln("FAILED parse " + oneCurrencyFormat + "; (i, j, k): " +
2919 fmt->parse(stringToBeParsed, result, status);
2925 errln((UnicodeString)"FAIL parse: Expected " + parsedResult);
3014 numFmt->parse(oneCurrencyFormatResult, parseResult, status);
3124 numFmt->parse(oneCurrencyFormatResult, parseResult, status);
5783 numFmt->parse(formatted, parseResult, status);
5804 numFmt->parse(formatted, parseResult, status);
6129 // Check a parse with a formatter with a multiplier.
6138 fmtr->parse(input, result, status);
6147 // Check that a parse returns a decimal number with full accuracy
6156 fmtr->parse(input, result, status);
6214 // parse the text
6215 fmt.parse("123E4", result, parsePos);
6221 errln("ERROR: parse failed - expected 123.0, 3 - returned %d, %i",