TrinityCore
StringFormat.h File Reference
#include "Optional.h"
#include <fmt/core.h>
+ Include dependency graph for StringFormat.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  fmt::formatter< Optional< T >, Char >
 

Namespaces

namespace  Trinity
 

Typedefs

template<typename... Args>
using Trinity::FormatString = fmt::format_string< Args... >
 
using Trinity::FormatStringView = fmt::string_view
 
using Trinity::FormatArgs = fmt::format_args
 

Functions

template<typename... Args>
constexpr auto Trinity::MakeFormatArgs (Args &&... args)
 
template<typename... Args>
std::string Trinity::StringFormat (FormatString< Args... > fmt, Args &&... args)
 Default TC string format function. More...
 
template<typename OutputIt , typename... Args>
OutputIt Trinity::StringFormatTo (OutputIt out, FormatString< Args... > fmt, Args &&... args)
 
std::string Trinity::StringVFormat (FormatStringView fmt, FormatArgs args)
 
template<typename OutputIt >
OutputIt Trinity::StringVFormatTo (OutputIt out, FormatStringView fmt, FormatArgs args)
 
bool Trinity::IsFormatEmptyOrNull (char const *fmt)
 Returns true if the given char pointer is null. More...
 
bool Trinity::IsFormatEmptyOrNull (std::string const &fmt)
 Returns true if the given std::string is empty. More...
 
constexpr bool Trinity::IsFormatEmptyOrNull (std::string_view fmt)
 Returns true if the given std::string_view is empty. More...
 
constexpr bool Trinity::IsFormatEmptyOrNull (fmt::string_view fmt)