Home
last modified time | relevance | path

Searched refs:fmt (Results 1 – 25 of 6817) sorted by relevance

12345678910>>...273

/external/fmtlib/test/
Dcolor-test.cc17 EXPECT_WRITE(stdout, fmt::print(fg(fmt::rgb(255, 20, 30)), "rgb(255,20,30)"), in TEST()
19 EXPECT_WRITE(stdout, fmt::print(fg(fmt::color::blue), "blue"), in TEST()
23 fmt::print(fg(fmt::color::blue) | bg(fmt::color::red), "two color"), in TEST()
25 EXPECT_WRITE(stdout, fmt::print(fmt::emphasis::bold, "bold"), in TEST()
27 EXPECT_WRITE(stdout, fmt::print(fmt::emphasis::italic, "italic"), in TEST()
29 EXPECT_WRITE(stdout, fmt::print(fmt::emphasis::underline, "underline"), in TEST()
32 fmt::print(fmt::emphasis::strikethrough, "strikethrough"), in TEST()
36 fmt::print(fg(fmt::color::blue) | fmt::emphasis::bold, "blue/bold"), in TEST()
38 EXPECT_WRITE(stderr, fmt::print(stderr, fmt::emphasis::bold, "bold error"), in TEST()
40 EXPECT_WRITE(stderr, fmt::print(stderr, fg(fmt::color::blue), "blue log"), in TEST()
[all …]
Dchrono-test.cc57 fmt::format("The date is {:%Y-%m-%d}.", tm)); in TEST()
65 fmt::format(s, *std::localtime(&t)); in TEST()
72 fmt::format_to(std::back_inserter(s), "{:%S}", time); in TEST()
76 TEST(TimeTest, EmptyResult) { EXPECT_EQ("", fmt::format("{}", std::tm())); } in TEST()
89 EXPECT_TRUE(EqualTime(tm, fmt::localtime(t))); in TEST()
95 EXPECT_TRUE(EqualTime(tm, fmt::gmtime(t))); in TEST()
106 EXPECT_EQ(strftime_output, fmt::format("It is {:%Y-%m-%d %H:%M:%S}", point)); in TEST()
113 fmt::format(loc, "{:" spec "}", duration)); \
119 EXPECT_EQ("42s", fmt::format("{}", std::chrono::seconds(42))); in TEST()
121 fmt::format("{}", std::chrono::duration<int, std::atto>(42))); in TEST()
[all …]
Dcompile-test.cc26 typedef fmt::detail::compiled_format_base<decltype(format)> provider; in check_prepared_parts_type()
27 typedef fmt::detail::format_part<char> in check_prepared_parts_type()
53 const auto prepared = fmt::detail::compile<int>("test {}"); in TEST()
54 EXPECT_EQ("test 42", fmt::format(prepared, 42)); in TEST()
55 const auto wprepared = fmt::detail::compile<int>(L"test {}"); in TEST()
56 EXPECT_EQ(L"test 42", fmt::format(wprepared, 42)); in TEST()
61 const auto prepared = fmt::detail::compile<int>("4{}"); in TEST()
62 fmt::format_to(fmt::detail::make_checked(buffer, 32), prepared, 2); in TEST()
65 const auto wprepared = fmt::detail::compile<int>(L"4{}"); in TEST()
66 fmt::format_to(fmt::detail::make_checked(wbuffer, 32), wprepared, 2); in TEST()
[all …]
Dranges-test.cc27 auto ivf = fmt::format("{}", iv); in TEST()
33 auto ivf = fmt::format("{}", ivv); in TEST()
39 EXPECT_EQ("{(\"one\", 1), (\"two\", 2)}", fmt::format("{}", simap)); in TEST()
44 EXPECT_EQ("(42, 1.5)", fmt::format("{}", pa1)); in TEST()
50 EXPECT_EQ("(42, 1.5, \"this is tuple\", 'i')", fmt::format("{}", t)); in TEST()
51 EXPECT_EQ("()", fmt::format("{}", std::tuple<>())); in TEST()
57 EXPECT_EQ("(a, 1, 2)", fmt::format("({})", fmt::join(t1, ", "))); in TEST()
62 EXPECT_EQ("b + 4", fmt::format("{}", fmt::join(t2, " + "))); in TEST()
66 EXPECT_EQ("", fmt::format("{}", fmt::join(t3, "|"))); in TEST()
70 EXPECT_EQ("4", fmt::format("{}", fmt::join(t4, "/"))); in TEST()
[all …]
Dprintf-test.cc18 using fmt::format;
19 using fmt::format_error;
20 using fmt::detail::max_value;
25 static std::string make_positional(fmt::string_view format) { in make_positional()
31 static std::wstring make_positional(fmt::wstring_view format) { in make_positional()
40 std::string test_sprintf(fmt::string_view format, const Args&... args) { in test_sprintf()
41 return fmt::sprintf(format, args...); in test_sprintf()
44 std::wstring test_sprintf(fmt::wstring_view format, const Args&... args) { in test_sprintf()
45 return fmt::sprintf(format, args...); in test_sprintf()
51 EXPECT_EQ(expected_output, fmt::sprintf(make_positional(format), arg))
[all …]
/external/rust/crates/ash/src/vk/
Dconst_debugs.rs4 use std::fmt;
6 f: &mut fmt::Formatter, in debug_flags()
9 ) -> fmt::Result { in debug_flags()
31 impl fmt::Debug for AccelerationStructureBuildTypeKHR {
32 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
42 self.0.fmt(f) in fmt()
46 impl fmt::Debug for AccelerationStructureCompatibilityKHR {
47 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
56 self.0.fmt(f) in fmt()
60 impl fmt::Debug for AccelerationStructureCreateFlagsKHR {
[all …]
/external/ltp/testcases/kernel/device-drivers/v4l/user_space/
Dtest_VIDIOC_FMT.c220 format.fmt.pix.width, in do_get_formats()
221 format.fmt.pix.height, in do_get_formats()
222 format.fmt.pix.pixelformat, in do_get_formats()
223 format.fmt.pix.field, in do_get_formats()
224 format.fmt.pix.bytesperline, in do_get_formats()
225 format.fmt.pix.sizeimage, in do_get_formats()
226 format.fmt.pix.colorspace, format.fmt.pix.priv); in do_get_formats()
227 if (sizeof(format.fmt.pix) < in do_get_formats()
228 sizeof(format.fmt.raw_data)) { in do_get_formats()
231 for (j = sizeof(format.fmt.pix); in do_get_formats()
[all …]
/external/rust/crates/crossbeam-channel/src/
Derr.rs2 use std::fmt;
118 impl<T> fmt::Debug for SendError<T> {
119 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
120 "SendError(..)".fmt(f) in fmt()
124 impl<T> fmt::Display for SendError<T> {
125 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
126 "sending on a disconnected channel".fmt(f) in fmt()
152 impl<T> fmt::Debug for TrySendError<T> {
153 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
155 TrySendError::Full(..) => "Full(..)".fmt(f), in fmt()
[all …]
/external/rust/crates/tokio/src/sync/mpsc/
Derror.rs4 use std::fmt;
10 impl<T> fmt::Display for SendError<T> {
11 fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
12 write!(fmt, "channel closed") in fmt()
16 impl<T: fmt::Debug> std::error::Error for SendError<T> {}
33 impl<T: fmt::Debug> Error for TrySendError<T> {}
35 impl<T> fmt::Display for TrySendError<T> {
36 fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
38 fmt, in fmt()
67 impl fmt::Display for TryRecvError {
[all …]
/external/rust/crates/syn/tests/debug/
Dgen.rs5 use std::fmt::{self, Debug, Display};
7 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method
15 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method
19 Debug::fmt(Lite(_val), formatter)?; in fmt()
30 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method
38 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method
52 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method
64 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method
68 Debug::fmt(Lite(&_val.1), formatter)?; in fmt()
81 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method
[all …]
Dmod.rs12 use std::fmt::{self, Debug};
36 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method
42 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method
48 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method
54 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method
60 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method
66 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method
72 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method
89 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() function
90 Debug::fmt(Lite(self.value), formatter) in fmt()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatRoundTripTest.java46 NumberFormat fmt = null; in TestNumberFormatRoundTrip() local
51 fmt = NumberFormat.getInstance(); in TestNumberFormatRoundTrip()
52 _test(fmt); in TestNumberFormatRoundTrip()
55 fmt = NumberFormat.getCurrencyInstance(); in TestNumberFormatRoundTrip()
56 _test(fmt); in TestNumberFormatRoundTrip()
59 fmt = NumberFormat.getPercentInstance(); in TestNumberFormatRoundTrip()
60 _test(fmt); in TestNumberFormatRoundTrip()
73 fmt = NumberFormat.getInstance(loc[i]); in TestNumberFormatRoundTrip()
74 _test(fmt); in TestNumberFormatRoundTrip()
76 fmt = NumberFormat.getCurrencyInstance(loc[i]); in TestNumberFormatRoundTrip()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DNumberFormatRoundTripTest.java49 NumberFormat fmt = null; in TestNumberFormatRoundTrip() local
54 fmt = NumberFormat.getInstance(); in TestNumberFormatRoundTrip()
55 _test(fmt); in TestNumberFormatRoundTrip()
58 fmt = NumberFormat.getCurrencyInstance(); in TestNumberFormatRoundTrip()
59 _test(fmt); in TestNumberFormatRoundTrip()
62 fmt = NumberFormat.getPercentInstance(); in TestNumberFormatRoundTrip()
63 _test(fmt); in TestNumberFormatRoundTrip()
76 fmt = NumberFormat.getInstance(loc[i]); in TestNumberFormatRoundTrip()
77 _test(fmt); in TestNumberFormatRoundTrip()
79 fmt = NumberFormat.getCurrencyInstance(loc[i]); in TestNumberFormatRoundTrip()
[all …]
/external/rust/crates/serde/src/ser/
Dfmt.rs4 impl Error for fmt::Error {
6 fmt::Error in custom()
13 fn $f(self, v: $t) -> fmt::Result {
14 Display::fmt(&v, self)
37 impl<'a, 'b> Serializer for &'a mut fmt::Formatter<'b> {
39 type Error = fmt::Error;
40 type SerializeSeq = Impossible<(), fmt::Error>;
41 type SerializeTuple = Impossible<(), fmt::Error>;
42 type SerializeTupleStruct = Impossible<(), fmt::Error>;
43 type SerializeTupleVariant = Impossible<(), fmt::Error>;
[all …]
/external/rust/crates/ring/src/
Ddebug.rs19 impl ::core::fmt::Debug for $typename {
20 fn fmt(&self, f: &mut ::core::fmt::Formatter) -> Result<(), ::core::fmt::Error> {
21 ::core::fmt::Debug::fmt(&self.id, f)
33 impl ::core::fmt::Debug for $type {
34 fn fmt(&self, f: &mut ::core::fmt::Formatter) -> Result<(), ::core::fmt::Error> {
47 impl ::core::fmt::Debug for $typename {
48 fn fmt(&self, f: &mut ::core::fmt::Formatter) -> Result<(), ::core::fmt::Error> {
56 fmt: &mut core::fmt::Formatter, in write_hex_tuple()
59 ) -> Result<(), ::core::fmt::Error> { in write_hex_tuple()
60 fmt.debug_tuple(type_name) in write_hex_tuple()
[all …]
/external/icu/icu4c/source/test/intltest/
Dnmfmtrt.cpp95 NumberFormat *fmt = NULL; in start() local
99 fmt = NumberFormat::createInstance(status); in start()
101 test(fmt); in start()
103 delete fmt; in start()
105 fmt = NumberFormat::createCurrencyInstance(status); in start()
107 test(fmt); in start()
109 delete fmt; in start()
111 fmt = NumberFormat::createPercentInstance(status); in start()
113 test(fmt); in start()
115 delete fmt; in start()
[all …]
/external/cronet/third_party/icu/source/test/intltest/
Dnmfmtrt.cpp95 NumberFormat *fmt = NULL; in start() local
99 fmt = NumberFormat::createInstance(status); in start()
101 test(fmt); in start()
103 delete fmt; in start()
105 fmt = NumberFormat::createCurrencyInstance(status); in start()
107 test(fmt); in start()
109 delete fmt; in start()
111 fmt = NumberFormat::createPercentInstance(status); in start()
113 test(fmt); in start()
115 delete fmt; in start()
[all …]
/external/rust/crates/syn/src/gen/
Ddebug.rs5 use std::fmt::{self, Debug};
9 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method
19 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method
31 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method
45 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method
59 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method
72 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method
83 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method
231 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method
242 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt() method
[all …]
/external/fmtlib/
DChangeLog.rst5 (`#1996 <https://github.com/fmtlib/fmt/issues/1996>`_,
6 `#2029 <https://github.com/fmtlib/fmt/issues/2029>`_).
9 (`#2011 <https://github.com/fmtlib/fmt/issues/2011>`_).
12 (`#2014 <https://github.com/fmtlib/fmt/issues/2014>`_).
15 (`#2017 <https://github.com/fmtlib/fmt/issues/2017>`_).
21 (`#1976 <https://github.com/fmtlib/fmt/issues/1976>`_).
27 (`#1961 <https://github.com/fmtlib/fmt/issues/1961>`_).
31 (`#1919 <https://github.com/fmtlib/fmt/issues/1919>`_).
34 (`#1957 <https://github.com/fmtlib/fmt/issues/1957>`_).
37 (`#1955 <https://github.com/fmtlib/fmt/issues/1955>`_).
[all …]
/external/rust/crates/quote/src/
Dident_fragment.rs1 use core::fmt;
13 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result; in fmt() method
28 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
29 IdentFragment::fmt(*self, f) in fmt()
38 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
39 IdentFragment::fmt(*self, f) in fmt()
48 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
51 fmt::Display::fmt(&id[2..], f) in fmt()
53 fmt::Display::fmt(&id[..], f) in fmt()
66 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() function
[all …]
/external/musl/src/locale/
Dstrfmon.c8 static ssize_t vstrfmon_l(char *s, size_t n, locale_t loc, const char *fmt, va_list ap) in vstrfmon_l() argument
15 for (; n && *fmt; ) { in vstrfmon_l()
16 if (*fmt != '%') { in vstrfmon_l()
18 *s++ = *fmt++; in vstrfmon_l()
22 fmt++; in vstrfmon_l()
23 if (*fmt == '%') goto literal; in vstrfmon_l()
30 for (; ; fmt++) { in vstrfmon_l()
31 switch (*fmt) { in vstrfmon_l()
33 fill = *++fmt; in vstrfmon_l()
52 for (fw=0; isdigit(*fmt); fmt++) in vstrfmon_l()
[all …]
/external/libcxx/test/std/re/re.results/re.results.form/
Dform1.pass.cpp33 const char fmt[] = "prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"; in main() local
35 fmt, fmt + std::char_traits<char>::length(fmt)).base(); in main()
46 const char fmt[] = "prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"; in main() local
48 fmt, fmt + std::char_traits<char>::length(fmt)).base(); in main()
58 const char fmt[] = "prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"; in main() local
60 fmt, fmt + std::char_traits<char>::length(fmt)).base(); in main()
70 const char fmt[] = "prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"; in main() local
72 fmt, fmt + std::char_traits<char>::length(fmt), in main()
83 const char fmt[] = "match: &, m[1]: \\1, m[2]: \\2"; in main() local
85 fmt, fmt + std::char_traits<char>::length(fmt), in main()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/re/re.results/re.results.form/
Dform1.pass.cpp32 const char fmt[] = "prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"; in main() local
34 fmt, fmt + std::char_traits<char>::length(fmt)); in main()
45 const char fmt[] = "prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"; in main() local
47 fmt, fmt + std::char_traits<char>::length(fmt)); in main()
57 const char fmt[] = "prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"; in main() local
59 fmt, fmt + std::char_traits<char>::length(fmt)); in main()
69 const char fmt[] = "prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"; in main() local
71 fmt, fmt + std::char_traits<char>::length(fmt), in main()
82 const char fmt[] = "match: &, m[1]: \\1, m[2]: \\2"; in main() local
84 fmt, fmt + std::char_traits<char>::length(fmt), in main()
[all …]
/external/python/cpython3/Lib/test/
Dtest_plistlib.py411 def _create(self, fmt=None): argument
459 for fmt in ALL_FORMATS:
460 with self.subTest(fmt=fmt):
461 self.assertRaises(TypeError, plistlib.dumps, pl, fmt=fmt)
474 for fmt in ALL_FORMATS:
475 with self.subTest(pl=pl, fmt=fmt):
476 data = plistlib.dumps(pl, fmt=fmt)
480 data2 = plistlib.dumps(pl2, fmt=fmt)
483 for fmt in ALL_FORMATS:
485 with self.subTest(pl=pl, fmt=fmt):
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/charconv/charconv.msvc/
Dtest.cpp792 void test_floating_from_chars(const chars_format fmt) {
793 test_from_chars<T>("", fmt, 0, inv_arg); // no characters
794 test_from_chars<T>("@1", fmt, 0, inv_arg); // '@' is bogus
795 test_from_chars<T>("z1", fmt, 0, inv_arg); // 'z' is bogus
796 test_from_chars<T>(".", fmt, 0, inv_arg); // '.' without digits is bogus
797 test_from_chars<T>("+1", fmt, 0, inv_arg); // '+' is bogus
798 test_from_chars<T>(" 1", fmt, 0, inv_arg); // ' ' is bogus
799 test_from_chars<T>("p5", fmt, 0, inv_arg); // binary-exponent-part without digits is bogus
800 test_from_chars<T>("in", fmt, 0, inv_arg); // incomplete inf is bogus
801 test_from_chars<T>("na", fmt, 0, inv_arg); // incomplete nan is bogus
[all …]

12345678910>>...273