aboutsummaryrefslogtreecommitdiff
path: root/src/common/Utilities/StringFormat.h
diff options
context:
space:
mode:
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 5802ae8d617..7c136185f4a 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