mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 05:05:46 +00:00
Merge pull request #6517 from lioncash/fmtlib
externals: Update fmt to 8.0.0
This commit is contained in:
commit
1f0bb8bad2
11 changed files with 25 additions and 17 deletions
|
@ -53,8 +53,9 @@ template <typename ContiguousContainer>
|
|||
std::string out;
|
||||
out.reserve(std::size(data) * pad_width);
|
||||
|
||||
const auto format_str = fmt::runtime(upper ? "{:02X}" : "{:02x}");
|
||||
for (const u8 c : data) {
|
||||
out += fmt::format(upper ? "{:02X}" : "{:02x}", c);
|
||||
out += fmt::format(format_str, c);
|
||||
}
|
||||
|
||||
return out;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue