• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/ICU-511.35/icuSources/test/intltest/

Lines Matching +defs:val +defs:pos

144     FieldPosition pos;
146 test->format(bla, result, pos, status);
180 virtual UnicodeString& format(int64_t number,UnicodeString& appendTo,FieldPosition& pos) const {
181 return NumberFormat::format(number, appendTo, pos);
203 FieldPosition pos;
205 if (stub.format(num, agent, pos) != UnicodeString("agent3")){
287 double val[] = { 0.01234, 123456789, 1.23e300, -3.141592653e-271 };
288 int32_t val_length = (int32_t)(sizeof(val) / sizeof(val[0]));
308 double val[] = { 0.01234, 123456789, 1.23e70, -3.141592653e-71 };
309 int32_t val_length = sizeof(val) / sizeof(val[0]);
330 double* val = 0;
368 UnicodeString s; (*(NumberFormat*)&fmt).format(val[v], s);
369 logln((UnicodeString)" " + val[v] + " -format-> " + s);
373 ParsePosition pos(0);
375 fmt.parse(s, af, pos);
397 if (pos.getIndex() == s.length())
409 errln((UnicodeString)"FAIL: Partial parse (" + pos.getIndex() + " chars) -> " + a);
421 ParsePosition pos(0);
423 fmt.parse(s, af, pos);
428 if (pos.getIndex() == s.length())
435 errln((UnicodeString)"FAIL: Partial parse (" + pos.getIndex() + " chars) -> " + a);
2445 FieldPosition pos;
2447 fmt.format(n, saw, pos, status);
2464 fmt.format(n2, saw2, pos, status);
2481 FieldPosition pos;
2483 fmt.format(n, saw, pos, status);
2502 fmt.format(n2, saw2, pos, status);
2579 int32_t pos) {
2580 expectPad(fmt, pat, pos, 0, (UnicodeString)"");
2583 int32_t pos, int32_t width, UChar pad) {
2584 expectPad(fmt, pat, pos, width, UnicodeString(pad));
2587 int32_t pos, int32_t width, const UnicodeString& pad) {
2601 if (apos == pos && awidth == width && apadStr == pad) {
2603 if (pos == ILLEGAL) {
2606 logln(UnicodeString("Ok \"") + pat + "\" pos=" + apos + infoStr);
2608 errln(UnicodeString("FAIL \"") + pat + "\" pos=" + apos +
2610 ", expected " + pos + " " + width + " " + pad);
6112 void NumberFormatTest::expectPosition(FieldPosition& pos, int32_t id, int32_t start, int32_t limit,
6115 assertTrue((UnicodeString)"id " + id + " == " + pos.getField(), id == pos.getField());
6116 assertTrue((UnicodeString)"begin " + start + " == " + pos.getBeginIndex(), start == pos.getBeginIndex());
6117 assertTrue((UnicodeString)"end " + limit + " == " + pos.getEndIndex(), limit == pos.getEndIndex());
6125 FieldPosition pos;
6141 iter1.next(pos);
6143 iter2.next(pos);
6159 double val = 12345.67;
6173 decFmt->format(val, result, &posIter, status);
6179 decFmt->format(val, result, fp);
6185 decFmt->format(val, result, fp);
6191 val = -0.0000123;
6206 decFmt->format(val, result, &posIter, status);
6212 decFmt->format(val, result, fp);
6218 decFmt->format(val, result, fp);
6350 FieldPosition pos(NumberFormat::FRACTION_FIELD);
6353 fmtr->format(dl, formattedResult, pos, status);
6356 ASSERT_EQUALS(4, pos.getBeginIndex());
6357 ASSERT_EQUALS(7, pos.getEndIndex());
6602 FieldPosition pos;
6603 df.format(long_number, result, pos);
6621 FieldPosition pos;
6622 df.format(long_number, result, pos);
6640 FieldPosition pos;
6641 df.format(long_number, result, pos);
6659 FieldPosition pos;
6660 df.format(long_number, result, pos);
6673 FieldPosition pos;
6674 df.format(long_number, result, pos);