Home
last modified time | relevance | path

Searched refs:fpos (Results 1 – 25 of 53) sorted by relevance

123

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DIntlTestDateFormatAPIC.java49 FieldPosition fpos = new FieldPosition(0); in TestNameHiding() local
58 strBuffer = dateFmt.format(dateObj, strBuffer, fpos); in TestNameHiding()
70 strBuffer = sdf.format(dateObj, strBuffer, fpos); in TestNameHiding()
72 strBuffer = sdf.format(new Date(0), strBuffer, fpos); in TestNameHiding()
88 strBuffer = fmt.format(numObj, strBuffer, fpos); in TestNameHiding()
100 strBuffer = fmt.format(numObj, strBuffer, fpos); in TestNameHiding()
104 strBuffer = fmt.format(1.41421, strBuffer, fpos); in TestNameHiding()
105 strBuffer = fmt.format(9876543, strBuffer, fpos); in TestNameHiding()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DIntlTestDateFormatAPIC.java53 FieldPosition fpos = new FieldPosition(0); in TestNameHiding() local
62 strBuffer = dateFmt.format(dateObj, strBuffer, fpos); in TestNameHiding()
74 strBuffer = sdf.format(dateObj, strBuffer, fpos); in TestNameHiding()
76 strBuffer = sdf.format(new Date(0), strBuffer, fpos); in TestNameHiding()
92 strBuffer = fmt.format(numObj, strBuffer, fpos); in TestNameHiding()
104 strBuffer = fmt.format(numObj, strBuffer, fpos); in TestNameHiding()
108 strBuffer = fmt.format(1.41421, strBuffer, fpos); in TestNameHiding()
109 strBuffer = fmt.format(9876543, strBuffer, fpos); in TestNameHiding()
/external/icu/icu4c/source/test/intltest/
Dtchcfmt.cpp52 FieldPosition fpos(0); in TestSimpleExample() local
59 fpos = 0; in TestSimpleExample()
61 res1 = form->format(i, str, fpos, status ); in TestSimpleExample()
184 FieldPosition fpos(0); in TestComplexExample() local
211 res2 = pattform->format(testArgs, 3, str, fpos, status ); in TestComplexExample()
271 fpos = 0; in TestComplexExample()
277 res2 = pattform->format(testArgs, 3, str, fpos, status ); in TestComplexExample()
368 fpos = 0; in TestComplexExample()
371 res1 = form_pat.format( arg_double, str, fpos ); in TestComplexExample()
376 fpos = 0; in TestComplexExample()
[all …]
Ddtfmapts.cpp288 FieldPosition fpos; in TestNameHiding() local
297 dateFmt->format(dateObj, str, fpos, status); in TestNameHiding()
312 sdf.format(dateObj, str, fpos, status); in TestNameHiding()
314 sdf.format((UDate)0, str, fpos); in TestNameHiding()
331 fmt->format(numObj, str, fpos, status); in TestNameHiding()
346 fmt.format(numObj, str, fpos, status); in TestNameHiding()
350 fmt.format(1.41421, str, fpos); in TestNameHiding()
351 fmt.format((int32_t)9876543, str, fpos); in TestNameHiding()
366 fmt.format(numObj, str, fpos, status); in TestNameHiding()
370 fmt.format(1.41421, str, fpos); in TestNameHiding()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DQuantityFormatter.java109 UFieldPosition fpos = new UFieldPosition(pos.getFieldAttribute(), pos.getField()); in selectPlural() local
110 fmt.format(number, formattedNumber, fpos); in selectPlural()
114 fpos.getCountVisibleFractionDigits(), fpos.getFractionDigits()); in selectPlural()
116 pos.setBeginIndex(fpos.getBeginIndex()); in selectPlural()
117 pos.setEndIndex(fpos.getEndIndex()); in selectPlural()
DMeasureFormat.java294 FieldPosition fpos = in format() local
306 toAppendTo.append(formatMeasures(new StringBuilder(), fpos, measures)); in format()
308 toAppendTo.append(formatMeasures(new StringBuilder(), fpos, (Measure[]) obj)); in format()
310 … toAppendTo.append(formatMeasure((Measure) obj, numberFormat, new StringBuilder(), fpos)); in format() local
314 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in format()
315 pos.setBeginIndex(fpos.getBeginIndex() + prevLength); in format()
316 pos.setEndIndex(fpos.getEndIndex() + prevLength); in format()
489 FieldPosition fpos = new FieldPosition( in formatMeasurePerUnit() local
492 formatMeasure(measure, numberFormat, new StringBuilder(), fpos), in formatMeasurePerUnit()
495 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in formatMeasurePerUnit()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DQuantityFormatter.java108 UFieldPosition fpos = new UFieldPosition(pos.getFieldAttribute(), pos.getField()); in selectPlural() local
109 fmt.format(number, formattedNumber, fpos); in selectPlural()
113 fpos.getCountVisibleFractionDigits(), fpos.getFractionDigits()); in selectPlural()
115 pos.setBeginIndex(fpos.getBeginIndex()); in selectPlural()
116 pos.setEndIndex(fpos.getEndIndex()); in selectPlural()
DMeasureFormat.java310 FieldPosition fpos = in format() local
322 toAppendTo.append(formatMeasures(new StringBuilder(), fpos, measures)); in format()
324 toAppendTo.append(formatMeasures(new StringBuilder(), fpos, (Measure[]) obj)); in format()
326 … toAppendTo.append(formatMeasure((Measure) obj, numberFormat, new StringBuilder(), fpos)); in format() local
330 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in format()
331 pos.setBeginIndex(fpos.getBeginIndex() + prevLength); in format()
332 pos.setEndIndex(fpos.getEndIndex() + prevLength); in format()
507 FieldPosition fpos = new FieldPosition( in formatMeasurePerUnit() local
510 formatMeasure(measure, numberFormat, new StringBuilder(), fpos), in formatMeasurePerUnit()
513 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in formatMeasurePerUnit()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dcdateintervalformattest.c295 UFieldPosition fpos = { locSkelItemPtr->fieldToCheck, 0, 0 }; in TestFPos_SkelWithSeconds() local
301 …ulen = udtitvfmt_format(udifmt, startTime, startTime + *deltasPtr, ubuf, kSizeUBuf, &fpos, &status… in TestFPos_SkelWithSeconds()
306fpos.beginIndex != expectedPtr->posBegin || fpos.endIndex != expectedPtr->posEnd ) { in TestFPos_SkelWithSeconds()
312 fpos.beginIndex, fpos.endIndex, bbuf); in TestFPos_SkelWithSeconds()
/external/libcxx/include/
Diosfwd81 template <class state> class fpos;
82 typedef fpos<char_traits<char>::state_type> streampos;
83 typedef fpos<char_traits<wchar_t>::state_type> wstreampos;
175 template <class _State> class _LIBCPP_TYPE_VIS_ONLY fpos;
176 typedef fpos<mbstate_t> streampos;
177 typedef fpos<mbstate_t> wstreampos;
179 typedef fpos<mbstate_t> u16streampos;
180 typedef fpos<mbstate_t> u32streampos;
/external/freetype/src/autofit/
Dafhints.c100 FT_Int fpos, in af_axis_hints_new_edge() argument
156 if ( edge[-1].fpos < fpos ) in af_axis_hints_new_edge()
161 if ( edge[-1].fpos == fpos && dir == axis->major_dir ) in af_axis_hints_new_edge()
1158 delta = edge->fpos - u; in af_glyph_hints_align_strong_points()
1167 delta = u - edge->fpos; in af_glyph_hints_align_strong_points()
1176 FT_Pos fpos; in af_glyph_hints_align_strong_points() local
1191 if ( edges[nn].fpos >= u ) in af_glyph_hints_align_strong_points()
1194 if ( edges[nn].fpos == u ) in af_glyph_hints_align_strong_points()
1207 fpos = edge->fpos; in af_glyph_hints_align_strong_points()
1209 if ( u < fpos ) in af_glyph_hints_align_strong_points()
[all …]
Dafcjk.c969 dist = seg->pos - edge->fpos; in af_cjk_hints_compute_edges()
1028 edge->fpos = seg->pos; in af_cjk_hints_compute_edges()
1126 edge_delta = edge->fpos - edge2->fpos; in af_cjk_hints_compute_edges()
1255 if ( FT_ABS( edge->fpos - blue->ref.org ) > in af_cjk_hints_compute_blue_edges()
1256 FT_ABS( edge->fpos - blue->shoot.org ) ) in af_cjk_hints_compute_blue_edges()
1261 dist = edge->fpos - compare->org; in af_cjk_hints_compute_blue_edges()
1548 stem_edge - hints->axis[dim].edges, stem_edge->fpos, in af_cjk_align_linked_edge()
1770 edge1 - edges, edge1->fpos, edge1->opos / 64.0, in af_cjk_hint_edges()
2068 if ( after->fpos == before->fpos ) in af_cjk_hint_edges()
2072 FT_MulDiv( edge->fpos - before->fpos, in af_cjk_hint_edges()
[all …]
/external/icu/icu4c/source/samples/plurfmtsample/
Dplurfmtsample.cpp46 FieldPosition fpos = 0; in PluralFormatExample() local
49 msgfmtEn->format(argEn,2,msgEn,fpos,status); in PluralFormatExample()
50 msgfmtSl->format(argSl,2,msgSl,fpos,status); in PluralFormatExample()
/external/icu/icu4c/source/i18n/
Dmeasfmt.cpp728 FieldPosition fpos(pos.getField()); in formatMeasurePerUnit() local
732 measure, **numberFormat, result, fpos, status), in formatMeasurePerUnit()
739 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in formatMeasurePerUnit()
740 pos.setBeginIndex(fpos.getBeginIndex() + offset); in formatMeasurePerUnit()
741 pos.setEndIndex(fpos.getEndIndex() + offset); in formatMeasurePerUnit()
1150 FieldPosition fpos(pos.getField()); in formatMeasuresSlowTrack() local
1159 formatMeasure(measures[i], *nf, results[i], fpos, status); in formatMeasuresSlowTrack()
1164 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in formatMeasuresSlowTrack()
1184 pos.setBeginIndex(fpos.getBeginIndex() + offset); in formatMeasuresSlowTrack()
1185 pos.setEndIndex(fpos.getEndIndex() + offset); in formatMeasuresSlowTrack()
/external/mesa3d/src/gallium/auxiliary/util/
Du_snprintf.c1016 int fpos = 0; in fmtflt() local
1195 fpos = convert(fracpart, fconvert, sizeof(fconvert), 10, 0); in fmtflt()
1197 leadfraczeros = precision - fpos; in fmtflt()
1200 if (fpos > 0) /* Omit trailing fractional part zeros. */ in fmtflt()
1201 while (omitcount < fpos && fconvert[omitcount] == '0') in fmtflt()
1270 while (fpos > omitcount) { /* The remaining fractional part. */ in fmtflt()
1271 fpos--; in fmtflt()
1272 OUTCHAR(str, *len, size, fconvert[fpos]); in fmtflt()
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/descriptive/rank/
DPercentile.java272 double fpos = FastMath.floor(pos); in evaluate() local
273 int intPos = (int) fpos; in evaluate()
274 double dif = pos - fpos; in evaluate()
/external/libcxx/test/std/depr/depr.c.headers/
Dstdio_h.pass.cpp88 fpos_t fpos = {0}; in main() local
132 static_assert((std::is_same<decltype(fgetpos(fp, &fpos)), int>::value), ""); in main()
134 static_assert((std::is_same<decltype(fsetpos(fp, &fpos)), int>::value), ""); in main()
/external/libcxx/test/std/input.output/file.streams/c.files/
Dcstdio.pass.cpp87 std::fpos_t fpos = {0}; in main() local
114 static_assert((std::is_same<decltype(std::fgetpos(fp, &fpos)), int>::value), ""); in main()
116 static_assert((std::is_same<decltype(std::fsetpos(fp, &fpos)), int>::value), ""); in main()
/external/libcxx/test/std/input.output/iostreams.base/fpos/fpos.members/
Dstate.pass.cpp21 std::fpos<int> f; in main()
/external/libcxx/test/std/input.output/iostreams.base/fpos/fpos.operations/
Dctor_int.pass.cpp21 typedef std::fpos<std::mbstate_t> P; in main()
Doffset.pass.cpp21 typedef std::fpos<std::mbstate_t> P; in main()
Deq_int.pass.cpp21 typedef std::fpos<std::mbstate_t> P; in main()
Ddifference.pass.cpp21 typedef std::fpos<std::mbstate_t> P; in main()
Daddition.pass.cpp21 typedef std::fpos<std::mbstate_t> P; in main()
/external/icu/icu4c/source/test/perf/normperf/
Ddtfmtrtperf.h167 FieldPosition fpos(0); in call()
171 sdf->format(DATES[datidx], tzstr, fpos); in call()

123