Lines Matching refs:cfpos

27         const ConstrainedFieldPosition& cfpos,
50 ConstrainedFieldPosition cfpos; in testBasic() local
53 cfpos, in testBasic()
64 ConstrainedFieldPosition cfpos; in testSetters() local
66 cfpos.constrainCategory(UFIELD_CATEGORY_DATE); in testSetters()
69 cfpos, in testSetters()
77 cfpos.constrainField(UFIELD_CATEGORY_NUMBER, UNUM_COMPACT_FIELD); in testSetters()
80 cfpos, in testSetters()
88 cfpos.setInt64IterationContext(42424242424242LL); in testSetters()
91 cfpos, in testSetters()
99 cfpos.setState(UFIELD_CATEGORY_NUMBER, UNUM_COMPACT_FIELD, 5, 10); in testSetters()
102 cfpos, in testSetters()
110 cfpos.reset(); in testSetters()
113 cfpos, in testSetters()
140 const ConstrainedFieldPosition& cfpos, in assertAllPartsEqual() argument
148 category, cfpos.getCategory()); in assertAllPartsEqual()
150 field, cfpos.getField()); in assertAllPartsEqual()
152 start, cfpos.getStart()); in assertAllPartsEqual()
154 limit, cfpos.getLimit()); in assertAllPartsEqual()
156 context, cfpos.getInt64IterationContext()); in assertAllPartsEqual()
159 … (UBool) ((matching & 1) != 0), cfpos.matchesField(UFIELD_CATEGORY_NUMBER, UNUM_INTEGER_FIELD)); in assertAllPartsEqual()
161 … (UBool) ((matching & 2) != 0), cfpos.matchesField(UFIELD_CATEGORY_NUMBER, UNUM_COMPACT_FIELD)); in assertAllPartsEqual()
163 (UBool) ((matching & 4) != 0), cfpos.matchesField(UFIELD_CATEGORY_DATE, UDAT_AM_PM_FIELD)); in assertAllPartsEqual()
185 UnicodeString CFPosToUnicodeString(const ConstrainedFieldPosition& cfpos) { in CFPosToUnicodeString() argument
188 sb.append(Int64ToUnicodeString(cfpos.getStart())); in CFPosToUnicodeString()
190 sb.append(Int64ToUnicodeString(cfpos.getLimit())); in CFPosToUnicodeString()
192 sb.append(Int64ToUnicodeString(cfpos.getCategory())); in CFPosToUnicodeString()
194 sb.append(Int64ToUnicodeString(cfpos.getField())); in CFPosToUnicodeString()
221 ConstrainedFieldPosition cfpos; in checkMixedFormattedValue() local
224 fv.nextPosition(cfpos, status)); in checkMixedFormattedValue()
230 expectedCategory, cfpos.getCategory()); in checkMixedFormattedValue()
232 expectedField, cfpos.getField()); in checkMixedFormattedValue()
234 expectedStart, cfpos.getStart()); in checkMixedFormattedValue()
236 expectedLimit, cfpos.getLimit()); in checkMixedFormattedValue()
238 UBool afterLoopResult = fv.nextPosition(cfpos, status); in checkMixedFormattedValue()
239 assertFalse(baseMessage + u"A after loop: " + CFPosToUnicodeString(cfpos), afterLoopResult); in checkMixedFormattedValue()
240 afterLoopResult = fv.nextPosition(cfpos, status); in checkMixedFormattedValue()
241 … assertFalse(baseMessage + u"A after loop again: " + CFPosToUnicodeString(cfpos), afterLoopResult); in checkMixedFormattedValue()
248 cfpos.reset(); in checkMixedFormattedValue()
249 cfpos.constrainCategory(static_cast<UFieldCategory>(category)); in checkMixedFormattedValue()
255 fv.nextPosition(cfpos, status)); in checkMixedFormattedValue()
261 expectedCategory, cfpos.getCategory()); in checkMixedFormattedValue()
263 expectedField, cfpos.getField()); in checkMixedFormattedValue()
265 expectedStart, cfpos.getStart()); in checkMixedFormattedValue()
267 expectedLimit, cfpos.getLimit()); in checkMixedFormattedValue()
269 UBool afterLoopResult = fv.nextPosition(cfpos, status); in checkMixedFormattedValue()
270 … assertFalse(baseMessage + u"B after loop @ " + CFPosToUnicodeString(cfpos), afterLoopResult); in checkMixedFormattedValue()
271 afterLoopResult = fv.nextPosition(cfpos, status); in checkMixedFormattedValue()
272 …assertFalse(baseMessage + u"B after loop again @ " + CFPosToUnicodeString(cfpos), afterLoopResult); in checkMixedFormattedValue()
281 cfpos.reset(); in checkMixedFormattedValue()
282 cfpos.constrainField(categoryAndField.first, categoryAndField.second); in checkMixedFormattedValue()
291 fv.nextPosition(cfpos, status)); in checkMixedFormattedValue()
297 expectedCategory, cfpos.getCategory()); in checkMixedFormattedValue()
299 expectedField, cfpos.getField()); in checkMixedFormattedValue()
301 expectedStart, cfpos.getStart()); in checkMixedFormattedValue()
303 expectedLimit, cfpos.getLimit()); in checkMixedFormattedValue()
305 UBool afterLoopResult = fv.nextPosition(cfpos, status); in checkMixedFormattedValue()
306 assertFalse(baseMessage + u"C after loop: " + CFPosToUnicodeString(cfpos), afterLoopResult); in checkMixedFormattedValue()
307 afterLoopResult = fv.nextPosition(cfpos, status); in checkMixedFormattedValue()
308 … assertFalse(baseMessage + u"C after loop again: " + CFPosToUnicodeString(cfpos), afterLoopResult); in checkMixedFormattedValue()