Home | History | Annotate | Download | only in intltest

Lines Matching refs:parse

58     public Number parse(String text, ParsePosition parsePosition) 
62 /* Just use one of the parse functions */
63 virtual void parse( const UnicodeString& /* text */,
70 virtual void parse( const UnicodeString& text,
74 NumberFormat::parse(text, result, status);
421 nfcommon->parse(stringValue, result, status);
422 failure(status, "nfcommon->parse", Locale::getUS());
445 format->parse(UnicodeString("0"), result, status);
446 failure(status, "format->parse", Locale::getUS());
581 * DecimalFormat.parse returns wrong value
598 //Double d = (Double)df.parse("123.55456", pos=new ParsePosition(0));
599 df->parse(UnicodeString("123.55456"), d, pos);
736 * DecimalFormat.parse(String str, ParsePosition pp) loses precision
751 //Double d2 = (Double) df.parse(str, new ParsePosition(0));
754 df->parse(str, d2, pp);
762 * DecimalFormat.parse() fails when multiplier is not set to 1
779 logln("Long.MIN_VALUE : " + df.parse(str, new ParsePosition(0)).toString());
781 Number num = df.parse(str, new ParsePosition(0));
1268 * [1] DecimalFormat.parse API documentation is more than just one line.
1272 * [4] NumberFormat.parse(String, ParsePosition) : If parsing fails,
1273 * a null object will be returned. The unchanged parse position also
1275 * NumberFormat.parse(String) : If parsing fails, an ParseException
1338 fmt->parse(UnicodeString("abc3"), num, status);
1340 errln(UnicodeString("Bug 4052223 failed : can't parse string \"a\". Got ") /*+ num*/);
1413 * DecimalFormat.parse incorrectly works with a group separator.
1430 df->parse(text, num, pp);
1443 df->parse(text, num, pp);
1490 * DecimalFormat.parse returns 0 if string parameter is incorrect.
1508 df->parse(text, num, pos1);
1515 df->parse(UnicodeString("$"), num, pos2);
1524 * NumberFormat.parse doesn't return null
1539 format->parse(text, result, pos);
1959 nf->parse(out, num, pp);
1969 nf->parse(out2, num, pp);
2101 f->parse(s, n, status);
2103 errln("Couldn't parse!");
2125 * NumberFormat does not parse negative zero.
2143 f->parse(s, n, status);
2145 errln("Couldn't parse!");
2155 logln("Failed to parse negative zero");
2180 fmt->parse(s, num, status);
2181 failure(status, "Parse");
2202 * DecimalFormat.parse() fails when ParseIntegerOnly set to true
2219 df->parse("-0.0", n, pos);
2222 errln(UnicodeString("FAIL: parse(\"-0.0\") returns ") + toString(n));
2491 * DecimalFormat.parse() fails for mulipliers 2^n.
2507 fmt->parse(str, num, status);
2508 failure(status, "parse", Locale::getUS());
2517 errln(UnicodeString("\"") + str + "\" parse(x " +
2609 * format(0.0) gives "0.1" if preceded by parse("99.99").
2635 fmt.parse(str, val, status);
2636 failure(status, "DecimalFormat.parse(99.99)", Locale::getUS());
2695 // set parsing to lenient & parse
2697 UDate ulocdat = df->parse(udt, status);
2737 // Ticket 8199: Parse failure for numbers in the range of 1E10 - 1E18
2753 nf->parse(numStr, val, status);
2764 nf->parse(numStr, val, status);
2773 nf->parse(numStr, val, status);
2781 nf->parse(numStr, val, status);
2793 nf->parse(numStr, val, status);
2802 nf->parse(numStr, val, status);
2812 nf->parse(numStr, val, status);
2830 nf->parse(numStr, val, status);
2840 nf->parse(numStr, val, status);
2849 nf->parse(numStr, val, status); // the ones digit, putting it up to ...994
2874 fmt.parse(text, val, pos);
2876 errln(UnicodeString("Parse failure at ") + pos.getErrorIndex());
2878 errln(UnicodeString("Incorrect parse result: ") + val.getLong() + " expected: " + expected);
2880 errln(UnicodeString("Incorrect parse position: ") + pos.getIndex() + " expected: " + expos);
2903 df->parse(toParse, n, pos);
2906 errln(UnicodeString("FAIL: parse(\"") + toParse + UnicodeString("\") returns ") + toString(n));
2915 df->parse(toParse, n, pos);
2918 errln(UnicodeString("FAIL: parse(\"") + toParse + UnicodeString("\") returns ") + toString(n));
2950 logln("Got expected parse error %s\n", u_errorName(status));
2968 errln("FAIL: with pos prefix removed, parse error %s\n", u_errorName(status));
2984 logln("text2: Got expected parse error %s\n", u_errorName(status));
3002 errln("FAIL: with different neg prefix , parse error %s\n", u_errorName(status));