Home
last modified time | relevance | path

Searched refs:to_unsigned (Results 1 – 13 of 13) sorted by relevance

/external/fmtlib/test/
Dscan.h34 format_.remove_prefix(detail::to_unsigned(it - begin())); in advance_to()
51 input_.remove_prefix(detail::to_unsigned(it - begin())); in advance_to()
163 auto size = to_unsigned(end - begin); in on_text()
202 *arg_.string_view = fmt::string_view(s, to_unsigned(it - s)); in on_replacement_field()
Dscan-test.cc78 format.reserve(detail::to_unsigned(end - it + 1)); in parse()
Dostream-test.cc151 if (max_size <= fmt::detail::to_unsigned(max_streamsize)) return; in TEST()
176 auto n = std::min(size, fmt::detail::to_unsigned(max_streamsize)); in TEST()
Dformat-test.cc301 using fmt::detail::to_unsigned; in TEST()
302 for (int i = 0; i < 7; ++i) buffer[to_unsigned(i)] = i * i; in TEST()
310 for (int i = 0; i < 7; ++i) EXPECT_EQ(i * i, buffer[to_unsigned(i)]); in TEST()
Dformat592 auto size = fmt::detail::to_unsigned(end - begin);
/external/fmtlib/include/fmt/
Dformat-inl.h145 error_code_size += detail::to_unsigned(detail::count_digits(abs_value)); in format_error_code()
1248 bigit operator[](int index) const { return bigits_[to_unsigned(index)]; }
1249 bigit& operator[](int index) { return bigits_[to_unsigned(index)]; }
1264 bigits_.resize(to_unsigned(num_bigits + 1));
1420 bigits_.resize(to_unsigned(num_result_bigits));
1452 bigits_.resize(to_unsigned(num_bigits + exp_difference));
2384 buf.try_resize(to_unsigned(num_digits));
2401 buf.try_resize(to_unsigned(num_digits));
2440 buf.try_resize(to_unsigned(precision));
2478 buf.try_resize(to_unsigned(handler.size));
[all …]
Dformat.h602 auto count = to_unsigned(end - begin); in append()
1119 if (auto ptr = to_pointer<Char>(out, to_unsigned(num_digits))) {
1499 unsigned spec_width = to_unsigned(specs.width);
1537 : size(prefix.size() + to_unsigned(num_digits)), padding(0) {
1539 auto width = to_unsigned(specs.width);
1545 size = prefix.size() + to_unsigned(specs.precision);
1546 padding = to_unsigned(specs.precision - num_digits);
1572 if (specs.precision >= 0 && to_unsigned(specs.precision) < size)
1573 size = code_point_index(s, to_unsigned(specs.precision));
1683 const auto usize = to_unsigned(size);
[all …]
Dostream.h97 unsigned_streamsize max_size = to_unsigned(max_value<std::streamsize>()); in write_buffer()
Dchrono.h404 tm_format.reserve(detail::to_unsigned(end - it + 1));
877 to_unsigned(to_nonnegative_int(value, max_value<int>()));
1087 &*range.begin, detail::to_unsigned(range.end - range.begin));
Dcore.h325 FMT_CONSTEXPR typename std::make_unsigned<Int>::type to_unsigned(Int value) { in to_unsigned() function
586 format_str_.remove_prefix(detail::to_unsigned(it - begin()));
1893 : basic_format_args(detail::is_unpacked_bit | detail::to_unsigned(count),
Dprintf.h521 detail::to_unsigned(nul != str_end ? nul - str : specs.precision)));
Dcompile.h144 handler_(part::make_text({begin, to_unsigned(end - begin)})); in on_text()
/external/fmtlib/src/
Dos.cc235 return detail::to_unsigned(result); in read()
242 return detail::to_unsigned(result); in write()