aboutsummaryrefslogtreecommitdiff
path: root/src/common/Utilities/StringFormat.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2023-08-15 20:11:02 +0200
committerShauren <shauren.trinity@gmail.com>2023-08-15 20:11:02 +0200
commitb9201d3c07ecbd690117d248bec238e3657b57b9 (patch)
tree72e157c646a0a23ff825e19885a8b57b06287c3b /src/common/Utilities/StringFormat.h
parentaaa6e73c8ca6d60e943cb964605536eb78219db2 (diff)
Dep/fmt: Upgrade to 9.1.0
(cherry picked from commit 17b20a33531b386eabcd44192a2574de72e64340)
Diffstat (limited to 'src/common/Utilities/StringFormat.h')
-rw-r--r--src/common/Utilities/StringFormat.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common/Utilities/StringFormat.h b/src/common/Utilities/StringFormat.h
index b4d4d9e5743..c95039efea4 100644
--- a/src/common/Utilities/StringFormat.h
+++ b/src/common/Utilities/StringFormat.h
@@ -23,7 +23,7 @@
namespace Trinity
{
template<typename... Args>
- using FormatString = std::string_view;
+ using FormatString = fmt::format_string<Args...>;
/// Default TC string format function.
template<typename... Args>
@@ -56,6 +56,11 @@ namespace Trinity
{
return fmt.empty();
}
+
+ inline constexpr bool IsFormatEmptyOrNull(fmt::string_view fmt)
+ {
+ return fmt.size() == 0;
+ }
}
#endif