Core formatting API: format strings, argument storage and the type-erased formatting entry points.
More...
|
|
template<bool B, typename T = void> |
| using | fmt::enable_if_t = typename std::enable_if<B, T>::type |
|
template<bool B, typename T, typename F> |
| using | fmt::conditional_t = typename std::conditional<B, T, F>::type |
|
template<bool B> |
| using | fmt::bool_constant = std::integral_constant<bool, B> |
|
template<typename T> |
| using | fmt::remove_reference_t = typename std::remove_reference<T>::type |
|
template<typename T> |
| using | fmt::remove_const_t = typename std::remove_const<T>::type |
|
template<typename T> |
| using | fmt::remove_cvref_t = typename std::remove_cv<remove_reference_t<T>>::type |
|
template<typename T> |
| using | fmt::make_unsigned_t = typename std::make_unsigned<T>::type |
|
template<typename T> |
| using | fmt::underlying_t = typename std::underlying_type<T>::type |
|
template<typename T> |
| using | fmt::decay_t = typename std::decay<T>::type |
|
using | fmt::nullptr_t = decltype(nullptr) |
|
using | fmt::Ullong = unsigned long long |
|
template<typename...> |
| using | fmt::void_t = void |
| template<typename Char> |
| using | fmt::detail::UnsignedChar |
| using | fmt::StringView = BasicStringView<char> |
| using | fmt::Appender = BasicAppender<char> |
|
template<typename Char> |
| using | fmt::BasicFormatParseContext = ParseContext<Char> |
| using | fmt::FormatParseContext = ParseContext<char> |
| template<typename OutputIt, typename Char> |
| using | fmt::BasicFormatContext |
| using | fmt::FormatContext = Context |
| template<typename Char> |
| using | fmt::BufferedContext |
| using | fmt::FormatArgs = BasicFormatArgs<Context> |
| template<typename S, typename V = decltype(detail::toStringView(std::declval<S>()))> |
| using | fmt::detail::char_t = typename V::value_type |
|
using | fmt::detail::LongType = conditional_t<kLongShort, int, long long> |
|
using | fmt::detail::UlongType = conditional_t<kLongShort, unsigned, Ullong> |
| template<typename T> |
| using | fmt::detail::FormatAsResult |
| template<typename T> |
| using | fmt::detail::FormatAsMemberResult |
| template<typename T, typename U = remove_const_t<T>> |
| using | fmt::detail::UseFormatter |
| template<typename T, typename Char> |
| using | fmt::detail::mapped_t |
|
template<typename T, typename Char = char> |
| using | fmt::detail::MappedTypeConstant = TypeConstant<mapped_t<T, Char>, Char> |
| template<typename T, typename Context, Type TYPE = MappedTypeConstant<T, typename Context::char_type>::value> |
| using | fmt::detail::StoredTypeConstant |
| template<typename Context, int NUM_ARGS> |
| using | fmt::detail::arg_t |
|
template<typename T, typename Char = char> |
| using | fmt::NamedArg = detail::NamedArg<T, Char> |
| template<typename... T> |
| using | fmt::FormatString = typename Fstring<T...>::t |
| template<typename T, typename Char = char> |
| using | fmt::IsFormattable |
| template<typename... T> |
| using | fmt::Vargs |
|
|
template<typename T> |
| constexpr auto | fmt::minOf (T a, T b) -> T |
|
template<typename T> |
| constexpr auto | fmt::maxOf (T a, T b) -> T |
|
void | fmt::assertFail (const char *file, int line, const char *message) |
| template<typename Error> |
| void | fmt::throwError (const Error &e, std::source_location loc=std::source_location::current()) |
| template<typename F> |
| auto | fmt::tryInvoke (F f) noexcept -> bool |
|
template<typename... T> |
| constexpr void | fmt::detail::ignoreUnused (const T &...) |
|
constexpr auto | fmt::detail::isConstantEvaluated (bool default_value=false) noexcept -> bool |
|
auto | fmt::detail::map (NativeInt128) -> monostate |
|
auto | fmt::detail::map (NativeUint128) -> monostate |
|
template<typename Int> |
| constexpr auto | fmt::detail::toUnsigned (Int value) -> make_unsigned_t< Int > |
|
template<typename T> |
| constexpr auto | fmt::detail::narrow (T *) -> char * |
|
constexpr auto | fmt::detail::narrow (const char *s) -> const char * |
|
template<typename Char> |
| constexpr auto | fmt::detail::compare (const Char *s1, const Char *s2, size_t n) -> int |
|
template<typename Container> |
| auto | fmt::detail::adl::invokeBackInserter () -> decltype(back_inserter(std::declval< Container & >())) |
|
template<typename OutputIt> |
| constexpr auto | fmt::detail::getContainer (OutputIt it) -> typename OutputIt::container_type & |
| void | fmt::reportError (const char *message) |
template<typename Char>
requires (IsCodeUnit<Char>::value) |
| constexpr auto | fmt::detail::toStringView (const Char *s) -> BasicStringView< Char > |
template<typename T>
requires (IsStdStringLike<T>::value) |
| constexpr auto | fmt::detail::toStringView (const T &s) -> BasicStringView< typename T::value_type > |
|
template<typename Char> |
| constexpr auto | fmt::detail::toStringView (BasicStringView< Char > s) -> BasicStringView< Char > |
|
template<typename T, typename Char> |
| constexpr auto | fmt::detail::typeOf () -> Type |
|
constexpr auto | fmt::detail::isIntegralType (Type t) -> bool |
|
constexpr auto | fmt::detail::isArithmeticType (Type t) -> bool |
|
constexpr auto | fmt::detail::set (Type rhs) -> int |
|
constexpr auto | fmt::detail::in (Type t, int set) -> bool |
|
template<bool B = false> |
| constexpr auto | fmt::detail::count () -> int |
|
template<bool B1, bool B2, bool... Tail> |
| constexpr auto | fmt::detail::count () -> int |
|
template<typename... T> |
| constexpr auto | fmt::detail::countNamedArgs () -> int |
|
template<typename... T> |
| constexpr auto | fmt::detail::countStaticNamedArgs () -> int |
|
template<typename Char> |
| constexpr auto | fmt::detail::checkForDuplicate (NamedArgInfo< Char > *named_args, int named_arg_index, BasicStringView< Char > arg_name) -> void |
template<typename Char, typename T>
requires (!IsNamedArg<T>::value) |
| auto | fmt::detail::initNamedArg (NamedArgInfo< Char > *, int &arg_index, int &, const T &) -> void |
template<typename Char, typename T>
requires (IsNamedArg<T>::value) |
| auto | fmt::detail::initNamedArg (NamedArgInfo< Char > *named_args, int &arg_index, int &named_arg_index, const T &arg) -> void |
template<typename T, typename Char>
requires (!IsStaticNamedArg<T>::value) |
| constexpr auto | fmt::detail::initStaticNamedArg (NamedArgInfo< Char > *, int &arg_index, int &) -> void |
template<typename T, typename Char>
requires (IsStaticNamedArg<T>::value) |
| constexpr auto | fmt::detail::initStaticNamedArg (NamedArgInfo< Char > *named_args, int &arg_index, int &named_arg_index) -> void |
|
template<typename Char, typename T, typename U = remove_const_t<T>> |
| auto | fmt::detail::hasFormatterImpl (T *p, BufferedContext< Char > *ctx=nullptr) -> decltype(Formatter< U, Char >().format(*p, *ctx), std::true_type()) |
|
template<typename Char> |
| auto | fmt::detail::hasFormatterImpl (...) -> std::false_type |
|
template<typename T, typename Char> |
| constexpr auto | fmt::detail::hasFormatter () -> bool |
template<typename Char>
requires (std::is_integral<Char>::value) |
| constexpr auto | fmt::detail::toAscii (Char c) -> char |
|
template<typename Char> |
| constexpr auto | fmt::detail::codePointLength (const Char *begin) -> int |
|
template<typename Char> |
| constexpr auto | fmt::detail::parseNonnegativeInt (const Char *&begin, const Char *end, int error_value) noexcept -> int |
|
constexpr auto | fmt::detail::parseAlign (char c) -> Align |
|
template<typename Char> |
| constexpr auto | fmt::detail::isNameStart (Char c) -> bool |
|
template<typename Char, typename Handler> |
| constexpr auto | fmt::detail::parseArgId (const Char *begin, const Char *end, Handler &&handler) -> const Char * |
|
template<typename Char> |
| constexpr auto | fmt::detail::parseDynamicSpec (const Char *begin, const Char *end, int &value, arg_ref< Char > &ref, ParseContext< Char > &ctx) -> ParseDynamicSpecResult< Char > |
|
template<typename Char> |
| constexpr auto | fmt::detail::parseWidth (const Char *begin, const Char *end, FormatSpecs &specs, arg_ref< Char > &width_ref, ParseContext< Char > &ctx) -> const Char * |
|
template<typename Char> |
| constexpr auto | fmt::detail::parsePrecision (const Char *begin, const Char *end, FormatSpecs &specs, arg_ref< Char > &precision_ref, ParseContext< Char > &ctx) -> const Char * |
|
template<typename Char> |
| constexpr auto | fmt::detail::parseFormatSpecs (const Char *begin, const Char *end, DynamicFormatSpecs< Char > &specs, ParseContext< Char > &ctx, Type arg_type) -> const Char * |
|
template<typename Char, typename Handler> |
| constexpr auto | fmt::detail::parseReplacementField (const Char *begin, const Char *end, Handler &&handler) -> const Char * |
|
template<typename Char, typename Handler> |
| constexpr auto | fmt::detail::parseFormatString (BasicStringView< Char > fmt, Handler &&handler) -> void |
|
constexpr auto | fmt::detail::checkCharSpecs (const FormatSpecs &specs) -> bool |
|
template<typename T, typename Char> |
| constexpr auto | fmt::detail::invokeParse (ParseContext< Char > &ctx) -> const Char * |
template<typename T, typename InputIt, typename OutputIt>
requires (IsBackInsertIterator<OutputIt>::value && HasAppend<OutputIt, InputIt>::value) |
| constexpr auto | fmt::detail::copy (InputIt begin, InputIt end, OutputIt out) -> OutputIt |
template<typename T, typename InputIt, typename OutputIt>
requires (IsBackInsertIterator<OutputIt>::value && !HasAppend<OutputIt, InputIt>::value && HasInsert<OutputIt, InputIt>::value) |
| constexpr auto | fmt::detail::copy (InputIt begin, InputIt end, OutputIt out) -> OutputIt |
template<typename T, typename InputIt, typename OutputIt>
requires (!IsBackInsertIterator<OutputIt>::value || !(HasAppend<OutputIt, InputIt>::value || HasInsert<OutputIt, InputIt>::value)) |
| constexpr auto | fmt::detail::copy (InputIt begin, InputIt end, OutputIt out) -> OutputIt |
template<typename T, typename OutputIt>
requires (!IsBufferAppender<OutputIt>::value) |
| auto | fmt::detail::getBuffer (OutputIt out) -> IteratorBuffer< OutputIt, T > |
template<typename T, typename OutputIt>
requires (IsBufferAppender<OutputIt>::value) |
| auto | fmt::detail::getBuffer (OutputIt out) -> Buffer< T > & |
|
template<typename Buf, typename OutputIt> |
| auto | fmt::detail::getIterator (Buf &buf, OutputIt) -> decltype(buf.out()) |
|
template<typename T, typename OutputIt> |
| auto | fmt::detail::getIterator (Buffer< T > &, OutputIt out) -> OutputIt |
|
template<typename> |
| constexpr auto | fmt::detail::encodeTypes () -> Ullong |
|
template<typename Context, typename First, typename... T> |
| constexpr auto | fmt::detail::encodeTypes () -> Ullong |
|
template<typename Context, typename... T, size_t NUM_ARGS = sizeof...(T)> |
| constexpr auto | fmt::detail::makeDescriptor () -> Ullong |
|
template<bool B> |
| constexpr auto | fmt::detail::enforceCompileChecks () -> bool |
|
template<typename T = int> |
| constexpr auto | fmt::detail::isLocking () -> bool |
|
template<typename T1, typename T2, typename... Tail> |
| constexpr auto | fmt::detail::isLocking () -> bool |
|
auto | fmt::detail::vformatTo (Buffer< char > &buf, StringView fmt, FormatArgs args, LocaleRef loc={}) -> void |
|
auto | fmt::detail::vprintMojibake (FILE *, StringView, const FormatArgs &, bool) -> void |
| auto | fmt::runtime (StringView s) -> RuntimeFormatString<> |
| template<typename Context = Context, typename... T, int NUM_ARGS = int(sizeof...(T)), int NUM_NAMED_ARGS = detail::countNamedArgs<T...>(), Ullong DESC = detail::makeDescriptor<Context, T...>()> |
| constexpr auto | fmt::makeFormatArgs (T &... args) -> detail::FormatArgStore< Context, NUM_ARGS, NUM_NAMED_ARGS, DESC > |
| template<typename T> |
| auto | fmt::arg (const char *name, const T &arg) -> NamedArg< T > |
template<typename OutputIt>
requires ( detail::IsOutputIterator<remove_cvref_t<OutputIt>, char>::value) |
| auto | fmt::vformatTo (OutputIt &&out, StringView fmt, FormatArgs args) -> remove_cvref_t< OutputIt > |
template<typename OutputIt, typename... T>
requires ( detail::IsOutputIterator<remove_cvref_t<OutputIt>, char>::value) |
| auto | fmt::formatTo (OutputIt &&out, FormatString< T... > fmt, T &&... args) -> remove_cvref_t< OutputIt > |
template<typename OutputIt, typename... T>
requires (detail::IsOutputIterator<OutputIt, char>::value) |
| auto | fmt::vformatToN (OutputIt out, size_t n, StringView fmt, FormatArgs args) -> FormatToNResult< OutputIt > |
template<typename OutputIt, typename... T>
requires (detail::IsOutputIterator<OutputIt, char>::value) |
| auto | fmt::formatToN (OutputIt out, size_t n, FormatString< T... > fmt, T &&... args) -> FormatToNResult< OutputIt > |
| template<size_t N> |
| auto | fmt::vformatTo (char(&out)[N], StringView fmt, FormatArgs args) -> FormatToResult |
| template<size_t N, typename... T> |
| auto | fmt::formatTo (char(&out)[N], FormatString< T... > fmt, T &&... args) -> FormatToResult |
| template<typename... T> |
| auto | fmt::formattedSize (FormatString< T... > fmt, T &&... args) -> size_t |
| auto | fmt::vprint (StringView fmt, FormatArgs args) -> void |
| auto | fmt::vprint (FILE *f, StringView fmt, FormatArgs args) -> void |
| auto | fmt::vprintln (FILE *f, StringView fmt, FormatArgs args) -> void |
| auto | fmt::vprintBuffered (FILE *f, StringView fmt, FormatArgs args) -> void |
| template<typename... T> |
| auto | fmt::print (FormatString< T... > fmt, T &&... args) -> void |
| template<typename... T> |
| auto | fmt::print (FILE *f, FormatString< T... > fmt, T &&... args) -> void |
| template<typename... T> |
| auto | fmt::println (FILE *f, FormatString< T... > fmt, T &&... args) -> void |
| template<typename... T> |
| auto | fmt::println (FormatString< T... > fmt, T &&... args) -> void |