Rename set_fill to copy_fill_from

This commit is contained in:
Victor Zverovich
2025-01-11 09:22:15 -08:00
parent 5750f434fa
commit 586ea06f02
3 changed files with 3 additions and 3 deletions

View File

@ -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];

View File

@ -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);

View File

@ -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;