Home
last modified time | relevance | path

Searched refs:formattable (Results 1 – 25 of 38) sorted by relevance

12

/external/libchrome/base/i18n/
Dmessage_formatter.cc28 MessageArg::MessageArg() : formattable(nullptr) {} in MessageArg()
31 : formattable(new icu::Formattable(UnicodeStringFromStringPiece(s))) {} in MessageArg()
34 : formattable(new icu::Formattable(UnicodeStringFromStringPiece(s))) {} in MessageArg()
37 : formattable(new icu::Formattable(UnicodeString::fromUTF8(s))) {} in MessageArg()
40 : formattable(new icu::Formattable(UnicodeString(s.data(), s.size()))) {} in MessageArg()
42 MessageArg::MessageArg(int i) : formattable(new icu::Formattable(i)) {} in MessageArg()
44 MessageArg::MessageArg(int64_t i) : formattable(new icu::Formattable(i)) {} in MessageArg()
46 MessageArg::MessageArg(double d) : formattable(new icu::Formattable(d)) {} in MessageArg()
49 : formattable(new icu::Formattable(static_cast<UDate>(t.ToJsTime()))) {} in MessageArg()
55 if (formattable == nullptr) in has_value()
[all …]
Dmessage_formatter.h50 std::unique_ptr<icu::Formattable> formattable; variable
/external/cronet/base/i18n/
Dmessage_formatter.cc29 MessageArg::MessageArg() : formattable(nullptr) {} in MessageArg()
32 : formattable(new icu::Formattable(UnicodeStringFromStringPiece(s))) {} in MessageArg()
35 : formattable(new icu::Formattable(UnicodeStringFromStringPiece(s))) {} in MessageArg()
38 : formattable(new icu::Formattable(UnicodeString::fromUTF8(s))) {} in MessageArg()
41 : formattable(new icu::Formattable(UnicodeString(s.data(), s.size()))) {} in MessageArg()
43 MessageArg::MessageArg(int i) : formattable(new icu::Formattable(i)) {} in MessageArg()
45 MessageArg::MessageArg(int64_t i) : formattable(new icu::Formattable(i)) {} in MessageArg()
47 MessageArg::MessageArg(double d) : formattable(new icu::Formattable(d)) {} in MessageArg()
50 : formattable(new icu::Formattable(static_cast<UDate>(t.ToJsTime()))) {} in MessageArg()
56 if (formattable == nullptr) in has_value()
[all …]
Dmessage_formatter.h52 std::unique_ptr<icu::Formattable> formattable; variable
/external/icu/icu4c/source/test/intltest/
Dtufmtts.cpp135 Formattable formattable; in testBasic() local
136 formattable.adoptObject(source); in testBasic()
137 formatted = ((Format*)formats[style])->format(formattable, formatted, status); in testBasic()
147 …tmaEqual(*((TimeUnitAmount *)result.getObject()), *((TimeUnitAmount *) formattable.getObject()))) { in testBasic()
154 …aEqual(*((TimeUnitAmount *)result_1.getObject()), *((TimeUnitAmount *) formattable.getObject()))) { in testBasic()
222 Formattable formattable((int32_t)2); in testAPI() local
223 TimeUnitAmount tma_long(formattable, TimeUnit::UTIMEUNIT_DAY, status); in testAPI()
226 formattable.setDouble(2); in testAPI()
227 TimeUnitAmount tma_double(formattable, TimeUnit::UTIMEUNIT_DAY, status); in testAPI()
230 formattable.setDouble(3); in testAPI()
[all …]
Ddtifmtts.cpp290 Formattable formattable; in testAPI() local
291 formattable.setInt64(10); in testAPI()
295 dtitvfmt->format(formattable, res, pos, status); in testAPI()
302 formattable.adoptObject(dtitv); in testAPI()
306 dtitvfmt->format(formattable, res, pos, status); in testAPI()
/external/cronet/third_party/icu/source/test/intltest/
Dtufmtts.cpp135 Formattable formattable; in testBasic() local
136 formattable.adoptObject(source); in testBasic()
137 formatted = ((Format*)formats[style])->format(formattable, formatted, status); in testBasic()
147 …tmaEqual(*((TimeUnitAmount *)result.getObject()), *((TimeUnitAmount *) formattable.getObject()))) { in testBasic()
154 …aEqual(*((TimeUnitAmount *)result_1.getObject()), *((TimeUnitAmount *) formattable.getObject()))) { in testBasic()
222 Formattable formattable((int32_t)2); in testAPI() local
223 TimeUnitAmount tma_long(formattable, TimeUnit::UTIMEUNIT_DAY, status); in testAPI()
226 formattable.setDouble(2); in testAPI()
227 TimeUnitAmount tma_double(formattable, TimeUnit::UTIMEUNIT_DAY, status); in testAPI()
230 formattable.setDouble(3); in testAPI()
[all …]
Ddtifmtts.cpp290 Formattable formattable; in testAPI() local
291 formattable.setInt64(10); in testAPI()
295 dtitvfmt->format(formattable, res, pos, status); in testAPI()
302 formattable.adoptObject(dtitv); in testAPI()
306 dtitvfmt->format(formattable, res, pos, status); in testAPI()
/external/cronet/buildtools/third_party/libc++/trunk/include/__format/
Dformatter_tuple.h41 template <__fmt_char_type _CharT, class _Tuple, formattable<_CharT>... _Args>
93 format(conditional_t<(formattable<const _Args, _CharT> && ...), const _Tuple&, _Tuple&> __tuple, in format()
143 template <__fmt_char_type _CharT, formattable<_CharT>... _Args>
147 template <__fmt_char_type _CharT, formattable<_CharT>... _Args>
Dcontainer_adaptor.h59 template <class _CharT, class _Tp, formattable<_CharT> _Container>
67 template <class _CharT, class _Tp, formattable<_CharT> _Container>
Dconcepts.h60 concept formattable = __formattable<_Tp, _CharT>; variable
Drange_default_formatter.h40 ranges::input_range<const _Rp> && formattable<ranges::range_reference_t<const _Rp>, _CharT>;
213 …requires(format_kind<_Rp> != range_format::disabled && formattable<ranges::range_reference_t<_Rp>,…
Drange_formatter.h42 requires same_as<remove_cvref_t<_Tp>, _Tp> && formattable<_Tp, _CharT>
132 requires formattable<ranges::range_reference_t<_Rp>, _CharT> &&
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/format/format.formattable/
Dconcept.formattable.float.compile.pass.cpp23 static_assert(!std::formattable<T, CharT>); in assert_is_not_formattable()
36 static_assert(std::formattable<T, CharT>); in assert_is_formattable()
Dconcept.formattable.compile.pass.cpp58 static_assert(!std::formattable<T, CharT>); in assert_is_not_formattable()
71 static_assert(std::formattable<T, CharT>); in assert_is_formattable()
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/text/
DFormattableUtils.java66 public static String toString(final Formattable formattable) { in toString() argument
67 return String.format(SIMPLEST_FORMAT, formattable); in toString()
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf/
DJsonFormatter.cs397 IFormattable formattable = (IFormattable) value; in WriteValue()
398 writer.Write(formattable.ToString("d", CultureInfo.InvariantCulture)); in WriteValue()
403 IFormattable formattable = (IFormattable) value; in WriteValue()
404 writer.Write(formattable.ToString("d", CultureInfo.InvariantCulture)); in WriteValue()
/external/protobuf/csharp/src/Google.Protobuf/
DJsonFormatter.cs397 IFormattable formattable = (IFormattable) value; in WriteValue()
398 writer.Write(formattable.ToString("d", CultureInfo.InvariantCulture)); in WriteValue()
403 IFormattable formattable = (IFormattable) value; in WriteValue()
404 writer.Write(formattable.ToString("d", CultureInfo.InvariantCulture)); in WriteValue()
/external/cronet/buildtools/third_party/libc++/trunk/include/
Dformat135 requires same_as<remove_cvref_t<T>, T> && formattable<T, charT>
146 formattable<ranges::range_reference_t<R>, charT>
/external/cronet/third_party/icu/source/test/depstest/
Ddependencies.txt1011 decnumber double_conversion formattable units unitsformatter
1094 decnumber formattable format units numberformatter number_skeletons numberparser
1125 resourcebundle units_extra double_conversion number_representation formattable sort
1133 group: formattable
1142 formattable unistr_cnv conversion
/external/icu/icu4c/source/test/depstest/
Ddependencies.txt1011 decnumber double_conversion formattable units unitsformatter
1094 decnumber formattable format units numberformatter number_skeletons numberparser
1125 resourcebundle units_extra double_conversion number_representation formattable sort
1133 group: formattable
1142 formattable unistr_cnv conversion
/external/cronet/buildtools/third_party/libc++/trunk/docs/Status/
DFormatPaper.csv31 `[format.syn] <https://wg21.link/format.syn>`_,"Concept ``formattable``",,Mark de Wever,|Complete|,…
/external/fmtlib/doc/
Dapi.rst162 To make a user-defined type formattable, specialize the ``formatter<T>`` struct
277 conversion to a formattable type, the specialization takes precedence over the
/external/icu/icu4c/source/i18n/
Ddecimfmt.cpp779 Formattable formattable; in parseCurrency() local
780 result.populateFormattable(formattable, parser->getParseFlags()); in parseCurrency()
782 new CurrencyAmount(formattable, result.currencyCode, status), status); in parseCurrency()
/external/cronet/third_party/icu/source/i18n/
Ddecimfmt.cpp779 Formattable formattable; in parseCurrency() local
780 result.populateFormattable(formattable, parser->getParseFlags()); in parseCurrency()
782 new CurrencyAmount(formattable, result.currencyCode, status), status); in parseCurrency()

12