aboutsummaryrefslogtreecommitdiffstats
path: root/modules/codepage.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-08-22 10:26:43 +0100
committerGravatar Sadie Powell2024-08-22 11:12:52 +0100
commit6b123d4bc61c2db8e379dd5e681834c4053e661d (patch)
tree77621bb30f54b0c444e31a78b2c5c9a67955b723 /modules/codepage.cpp
parentMerge branch 'insp4' into master. (diff)
Use C++20 <format> instead of fmtlib when available.
Diffstat (limited to 'modules/codepage.cpp')
-rw-r--r--modules/codepage.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/codepage.cpp b/modules/codepage.cpp
index 9836289ad..c51557aa8 100644
--- a/modules/codepage.cpp
+++ b/modules/codepage.cpp
@@ -329,9 +329,9 @@ private:
static std::string GetPrintable(uint32_t chr)
{
if (isprint(chr))
- return fmt::format("{} ({})", reinterpret_cast<const char*>(&chr), chr);
+ return FMT::format("{} ({})", reinterpret_cast<const char*>(&chr), chr);
else
- return fmt::format("{}", chr);
+ return FMT::format("{}", chr);
}
public:
@@ -387,11 +387,11 @@ public:
break;
case Codepage::AllowCharacterResult::NOT_VALID:
- throw ModuleException(this, fmt::format("<cpchars> tag contains a forbidden character: {} at {}",
+ throw ModuleException(this, FMT::format("<cpchars> tag contains a forbidden character: {} at {}",
GetPrintable(pos), tag->source.str()));
case Codepage::AllowCharacterResult::NOT_VALID_AT_FRONT:
- throw ModuleException(this, fmt::format("<cpchars> tag contains a forbidden front character: {} at {}",
+ throw ModuleException(this, FMT::format("<cpchars> tag contains a forbidden front character: {} at {}",
GetPrintable(pos), tag->source.str()));
}
}