• Home
  • Raw
  • Download

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()
243 cfpos.reset(); in checkMixedFormattedValue()
244 cfpos.constrainCategory(static_cast<UFieldCategory>(category)); in checkMixedFormattedValue()
250 fv.nextPosition(cfpos, status)); in checkMixedFormattedValue()
256 expectedCategory, cfpos.getCategory()); in checkMixedFormattedValue()
258 expectedField, cfpos.getField()); in checkMixedFormattedValue()
260 expectedStart, cfpos.getStart()); in checkMixedFormattedValue()
262 expectedLimit, cfpos.getLimit()); in checkMixedFormattedValue()
264 UBool afterLoopResult = fv.nextPosition(cfpos, status); in checkMixedFormattedValue()
265 … assertFalse(baseMessage + u"B after loop @ " + CFPosToUnicodeString(cfpos), afterLoopResult); in checkMixedFormattedValue()
274 cfpos.reset(); in checkMixedFormattedValue()
275 cfpos.constrainField(categoryAndField.first, categoryAndField.second); in checkMixedFormattedValue()
284 fv.nextPosition(cfpos, status)); in checkMixedFormattedValue()
290 expectedCategory, cfpos.getCategory()); in checkMixedFormattedValue()
292 expectedField, cfpos.getField()); in checkMixedFormattedValue()
294 expectedStart, cfpos.getStart()); in checkMixedFormattedValue()
296 expectedLimit, cfpos.getLimit()); in checkMixedFormattedValue()
298 UBool afterLoopResult = fv.nextPosition(cfpos, status); in checkMixedFormattedValue()
299 assertFalse(baseMessage + u"C after loop: " + CFPosToUnicodeString(cfpos), afterLoopResult); in checkMixedFormattedValue()