Lines Matching refs: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")){
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);
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);