Home
last modified time | relevance | path

Searched refs:StrFormat (Results 1 - 25 of 25) sorted by relevance

/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
H A Dstr_format_test.cc82 EXPECT_EQ("123", StrFormat("%d", 123)); in TEST_F()
84 EXPECT_EQ("=123=", StrFormat(view, 123)); in TEST_F()
108 EXPECT_EQ("24", StrFormat("%24$d", 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, in TEST_F()
110 EXPECT_EQ("60", StrFormat("%60$d", 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, in TEST_F()
119 EXPECT_EQ("123", StrFormat(pc, 123)); in TEST_F()
121 EXPECT_EQ("123", StrFormat(ParsedFormat<'d'>("%d"), 123)); in TEST_F()
123 EXPECT_EQ("=123=", StrFormat(ParsedFormat<'d'>(view), 123)); in TEST_F()
128 EXPECT_EQ("", StrFormat("%n", FormatCountCapture(&n))); in TEST_F()
130 EXPECT_EQ("123", StrFormat("%d%n", 123, FormatCountCapture(&n))); in TEST_F()
150 StrFormat(" in TEST_F()
[all...]
H A Dstr_format.h28 // std::string s = absl::StrFormat(
33 // * `absl::StrFormat()`, a type-safe replacement for `std::sprintf()`, to
68 // augmenting formatting to new types. See "StrFormat Extensions" below.
117 // intrinsic type support within `StrFormat()` itself.
121 // absl::StrFormat("%s", absl::FormatStreamed(obj));
129 // This class provides a way to safely wrap `StrFormat()` captures of `%n`
133 // This wrapper is designed to allow safe usage of `%n` within `StrFormat(); in
140 // std::string s = absl::StrFormat("%s%d%n", "hello", 123,
182 // absl::StrFormat("Welcome to %s, Number %d!", "The Village", 6);
186 // absl::StrFormat(formatStrin
338 ABSL_MUST_USE_RESULT std::string StrFormat(const FormatSpec<Args...>& format, StrFormat() function
[all...]
H A Dcharconv_test.cc696 << absl::StrFormat("%a vs %a", expected, actual); in TestOverflowAndUnderflow()
709 << absl::StrFormat("%a vs %a", expected, actual); in TestOverflowAndUnderflow()
/third_party/skia/third_party/externals/dawn/generator/templates/dawn_native/
H A Dwebgpu_absl_format.cpp36 s->Append(absl::StrFormat("[Color r:%f, g:%f, b:%f, a:%f]", in AbslFormatConvert()
49 s->Append(absl::StrFormat("[Extent3D width:%u, height:%u, depthOrArrayLayers:%u]", in AbslFormatConvert()
62 s->Append(absl::StrFormat("[Origin3D x:%u, y:%u, z:%u]", in AbslFormatConvert()
82 s->Append(absl::StrFormat(" \"%s\"", label)); in AbslFormatConvert()
103 s->Append(absl::StrFormat(" \"%s\"", label)); in AbslFormatConvert()
124 s->Append(absl::StrFormat(" \"%s\"", label)); in AbslFormatConvert()
128 s->Append(absl::StrFormat(" of Texture \"%s\"", textureLabel)); in AbslFormatConvert()
151 s->Append(absl::StrFormat(" \"%s\"", value->label));
181 s->Append(absl::StrFormat("%x", static_cast<typename std::underlying_type<{{as_cppType(type.name)}}>::type>(value)));
202 s->Append(absl::StrFormat("{{as_cppTyp
[all...]
/third_party/benchmark/src/
H A Dbenchmark_api_internal.cc42 name_.args += StrFormat("%s:", arg_name.c_str()); in BenchmarkInstance()
46 name_.args += StrFormat("%" PRId64, arg); in BenchmarkInstance()
51 name_.min_time = StrFormat("min_time:%0.3f", benchmark_.min_time_); in BenchmarkInstance()
56 StrFormat("min_warmup_time:%0.3f", benchmark_.min_warmup_time_); in BenchmarkInstance()
60 name_.iterations = StrFormat( in BenchmarkInstance()
65 name_.repetitions = StrFormat("repeats:%d", benchmark_.repetitions_); in BenchmarkInstance()
85 name_.threads = StrFormat("threads:%d", threads_); in BenchmarkInstance()
H A Djson_reporter.cc68 return StrFormat("\"%s\": \"%s\"", StrEscape(key).c_str(), in FormatKV()
73 return StrFormat("\"%s\": \"%s\"", StrEscape(key).c_str(), in FormatKV()
78 return StrFormat("\"%s\": %s", StrEscape(key).c_str(), in FormatKV()
H A Dstring_util.h26 StrFormat(const char* format, ...);
H A Dreporter.cc65 Out << StrFormat("%.2f", *It++); in PrintBasicContext()
H A Dconsole_reporter.cc184 s = StrFormat("%.2f", 100. * c.second.value); in PrintRunData()
H A Dstring_util.cc147 std::string StrFormat(const char* format, ...) { in StrFormat() function
/third_party/skia/third_party/externals/dawn/src/dawn_native/
H A DError.h82 DAWN_MAKE_ERROR(InternalErrorType::Validation, absl::StrFormat(__VA_ARGS__))
86 return DAWN_MAKE_ERROR(InternalErrorType::Validation, absl::StrFormat(__VA_ARGS__)); \
100 DAWN_MAKE_ERROR(InternalErrorType::Internal, absl::StrFormat(__VA_ARGS__))
120 DAWN_TRY_WITH_CLEANUP(EXPR, { error->AppendContext(absl::StrFormat(__VA_ARGS__)); })
H A DEncodingContext.h70 error->AppendContext(absl::StrFormat( in ConsumedError()
H A DDevice.h93 absl::StrFormat("[Failed to format error: \"%s\"]", formatStr)); in ConsumedError()
116 absl::StrFormat("[Failed to format error: \"%s\"]", formatStr)); in ConsumedError()
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/
H A Dranden_hwaes_test.cc64 auto a = absl::StrFormat("%#x", elem); in TEST()
65 auto b = absl::StrFormat("%#x", *id++); in TEST()
H A Ddistribution_test_util.cc75 return os << absl::StrFormat("mean=%f, stddev=%f, skewness=%f, kurtosis=%f", in operator <<()
/third_party/benchmark/test/
H A Dbenchmark_random_interleaving_gtest.cc67 queue->Put(StrFormat("BM_Match1/%d", static_cast<int>(arg))); in BM_Match1()
115 interleaving_count[StrFormat("%s,%s", interleaving[0].c_str(), in TEST_F()
/third_party/skia/third_party/externals/abseil-cpp/absl/flags/
H A Dmarshalling.cc179 absl::StrFormat("%.*g", std::numeric_limits<T>::digits10, v); in UnparseFloatingPointVal()
191 return absl::StrFormat("%.*g", std::numeric_limits<T>::max_digits10, v); in UnparseFloatingPointVal()
/third_party/skia/third_party/externals/abseil-cpp/absl/random/
H A Dbeta_distribution_test.cc101 INFO, absl::StrFormat("Smoke test for Beta(%a, %a)", alpha, beta)); in TYPED_TEST()
322 absl::StrFormat( in SingleZTestOnMeanAndVariance()
391 INFO, absl::StrFormat("cutoff[%d] = %f, actual count %d, expected %d", in SingleChiSquaredTest()
397 INFO, absl::StrFormat( in SingleChiSquaredTest()
H A Dgaussian_distribution_test.cc120 INFO, absl::StrFormat("Range{%f, %f}: %f, %f", mean, stddev, in TYPED_TEST()
244 INFO, absl::StrFormat("p=%f max_err=%f\n"
302 INFO, absl::StrFormat("%d : (%f) = %d", i, cutoffs[i], counts[i]));
H A Dexponential_distribution_test.cc119 absl::StrFormat("Range {%f}: %f, %f, lambda=%f", lambda, in TYPED_TEST()
223 INFO, absl::StrFormat("p=%f max_err=%f\n"
279 INFO, absl::StrFormat("%d : (%f) = %d", i, cutoffs[i], counts[i]));
H A Dlog_uniform_int_distribution_test.cc190 absl::StrFormat("trials=%d\n" in ChiSquaredTestImpl()
H A Dpoisson_distribution_test.cc290 INFO, absl::StrFormat("p=%f max_err=%f\n" in SingleZTest()
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
H A Dpow10_helper_test.cc113 << absl::StrFormat("Failure for Pow10(%d): %a vs %a", test_case.power, in TEST()
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
H A Draw_hash_set_benchmark.cc184 state.SetLabel(absl::StrFormat("load_factor=%.2f", t.load_factor())); in BM_CacheInSteadyState()
H A Draw_hash_set_probe_benchmark.cc247 return {small ? absl::StrCat(v) : absl::StrFormat(kStringFormat, v)}; in Make()

Completed in 19 milliseconds