Lines Matching refs:parse
57 public Number parse(String text, ParsePosition parsePosition)
61 /* Just use one of the parse functions */
62 virtual void parse( const UnicodeString& /* text */,
69 virtual void parse( const UnicodeString& text,
73 NumberFormat::parse(text, result, status);
409 nfcommon->parse(stringValue, result, status);
410 failure(status, "nfcommon->parse", Locale::getUS());
433 format->parse(UnicodeString("0"), result, status);
434 failure(status, "format->parse", Locale::getUS());
569 * DecimalFormat.parse returns wrong value
586 //Double d = (Double)df.parse("123.55456", pos=new ParsePosition(0));
587 df->parse(UnicodeString("123.55456"), d, pos);
724 * DecimalFormat.parse(String str, ParsePosition pp) loses precision
739 //Double d2 = (Double) df.parse(str, new ParsePosition(0));
742 df->parse(str, d2, pp);
750 * DecimalFormat.parse() fails when multiplier is not set to 1
767 logln("Long.MIN_VALUE : " + df.parse(str, new ParsePosition(0)).toString());
769 Number num = df.parse(str, new ParsePosition(0));
1255 * [1] DecimalFormat.parse API documentation is more than just one line.
1259 * [4] NumberFormat.parse(String, ParsePosition) : If parsing fails,
1260 * a null object will be returned. The unchanged parse position also
1262 * NumberFormat.parse(String) : If parsing fails, an ParseException
1325 fmt->parse(UnicodeString("abc3"), num, status);
1327 errln(UnicodeString("Bug 4052223 failed : can't parse string \"a\". Got ") /*+ num*/);
1394 * DecimalFormat.parse incorrectly works with a group separator.
1411 df->parse(text, num, pp);
1424 df->parse(text, num, pp);
1471 * DecimalFormat.parse returns 0 if string parameter is incorrect.
1489 df->parse(text, num, pos1);
1496 df->parse(UnicodeString("$"), num, pos2);
1505 * NumberFormat.parse doesn't return null
1520 format->parse(text, result, pos);
1940 nf->parse(out, num, pp);
1950 nf->parse(out2, num, pp);
2082 f->parse(s, n, status);
2084 errln("Couldn't parse!");
2106 * NumberFormat does not parse negative zero.
2124 f->parse(s, n, status);
2126 errln("Couldn't parse!");
2136 logln("Failed to parse negative zero");
2161 fmt->parse(s, num, status);
2162 failure(status, "Parse");
2183 * DecimalFormat.parse() fails when ParseIntegerOnly set to true
2200 df->parse("-0.0", n, pos);
2203 errln(UnicodeString("FAIL: parse(\"-0.0\") returns ") + toString(n));
2470 * DecimalFormat.parse() fails for mulipliers 2^n.
2486 fmt->parse(str, num, status);
2487 failure(status, "parse", Locale::getUS());
2496 errln(UnicodeString("\"") + str + "\" parse(x " +
2588 * format(0.0) gives "0.1" if preceded by parse("99.99").
2614 fmt.parse(str, val, status);
2615 failure(status, "DecimalFormat.parse(99.99)", Locale::getUS());
2674 // set parsing to lenient & parse
2676 UDate ulocdat = df->parse(udt, status);