mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 18:57:34 +02:00
Rename set_fill to copy_fill_from
This commit is contained in:
@ -843,7 +843,7 @@ class basic_specs {
|
||||
fill_data_[i & 3] = static_cast<char>(s[i]);
|
||||
}
|
||||
|
||||
FMT_CONSTEXPR void set_fill(const basic_specs& specs) {
|
||||
FMT_CONSTEXPR void copy_fill_from(const basic_specs& specs) {
|
||||
set_fill_size(specs.fill_size());
|
||||
for (size_t i = 0; i < max_fill_size; ++i)
|
||||
fill_data_[i] = specs.fill_data_[i];
|
||||
|
@ -3968,7 +3968,7 @@ template <typename T, typename Char = char> struct nested_formatter {
|
||||
write(basic_appender<Char>(buf));
|
||||
auto specs = format_specs();
|
||||
specs.width = width_;
|
||||
specs.set_fill(specs_);
|
||||
specs.copy_fill_from(specs_);
|
||||
specs.set_align(specs_.align());
|
||||
return detail::write<Char>(
|
||||
ctx.out(), basic_string_view<Char>(buf.data(), buf.size()), specs);
|
||||
|
@ -696,7 +696,7 @@ template <typename T, typename Char> struct formatter<std::complex<T>, Char> {
|
||||
|
||||
auto outer_specs = format_specs();
|
||||
outer_specs.width = specs.width;
|
||||
outer_specs.set_fill(specs);
|
||||
outer_specs.copy_fill_from(specs);
|
||||
outer_specs.set_align(specs.align());
|
||||
|
||||
specs.width = 0;
|
||||
|
Reference in New Issue
Block a user