HDK
|
#include <cstdio>
#include <cstring>
#include <iterator>
#include <limits>
#include <string>
#include <type_traits>
Go to the source code of this file.
Namespaces | |
align | |
sign | |
Typedefs | |
template<bool B, class T = void> | |
using | enable_if_t = typename std::enable_if< B, T >::type |
template<bool B, class T , class F > | |
using | conditional_t = typename std::conditional< B, T, F >::type |
template<bool B> | |
using | bool_constant = std::integral_constant< bool, B > |
template<typename T > | |
using | remove_reference_t = typename std::remove_reference< T >::type |
template<typename T > | |
using | remove_cvref_t = typename std::remove_cv< remove_reference_t< T >>::type |
template<typename T > | |
using | type_identity_t = typename type_identity< T >::type |
using | string_view = basic_string_view< char > |
template<typename S > | |
using | char_t = typename detail::char_t_impl< S >::type |
using | format_parse_context = basic_format_parse_context< char > |
template<typename T , typename Context > | |
using | has_formatter = std::is_constructible< typename Context::template formatter_type< T >> |
template<typename T > | |
using | buffer_appender = conditional_t< std::is_same< T, char >::value, appender, std::back_insert_iterator< buffer< T >>> |
template<typename T , typename Char > | |
using | has_fallback_formatter = std::is_constructible< fallback_formatter< T, Char >> |
using | long_type = conditional_t< long_short, int, long long > |
using | ulong_type = conditional_t< long_short, unsigned, unsigned long long > |
template<typename T , typename Context > | |
using | mapped_type_constant = type_constant< decltype(arg_mapper< Context >().map(std::declval< const T & >())), typename Context::char_type > |
template<typename... > | |
using | void_t = void |
template<typename Char > | |
using | buffer_context = basic_format_context< detail::buffer_appender< Char >, Char > |
using | format_context = buffer_context< char > |
template<typename T , typename Char = char> | |
using | is_formattable = bool_constant< !std::is_same< decltype(detail::arg_mapper< buffer_context< Char >>().map(std::declval< T >())), detail::unformattable >::value &&!detail::has_fallback_formatter< T, Char >::value > |
using | format_args = basic_format_args< format_context > |
using | align_t = align::type |
using | sign_t = sign::type |
using | format_specs = basic_format_specs< char > |
template<typename... Args> | |
using | format_string = basic_format_string< char, type_identity_t< Args >...> |
Functions | |
FMT_BEGIN_DETAIL_NAMESPACE constexpr FMT_INLINE auto | is_constant_evaluated () FMT_NOEXCEPT-> bool |
template<typename T > | |
constexpr auto | const_check (T value) -> T |
FMT_NORETURN FMT_API void | assert_fail (const char *file, int line, const char *message) |
template<typename T > | |
auto | convert_for_visit (T) -> monostate |
template<typename Int > | |
FMT_CONSTEXPR auto | to_unsigned (Int value) -> typename std::make_unsigned< Int >::type |
FMT_MSC_WARNING (suppress:4566) const expr unsigned char micro[] | |
constexpr auto | is_utf8 () -> bool |
template<typename Char , FMT_ENABLE_IF(is_char< Char >::value) > | |
FMT_INLINE auto | to_string_view (const Char *s) -> basic_string_view< Char > |
template<typename Char , typename Traits , typename Alloc > | |
auto | to_string_view (const std::basic_string< Char, Traits, Alloc > &s) -> basic_string_view< Char > |
template<typename Char > | |
constexpr auto | to_string_view (basic_string_view< Char > s) -> basic_string_view< Char > |
template<typename Char , FMT_ENABLE_IF(!std::is_empty< detail::std_string_view< Char >>::value) > | |
auto | to_string_view (detail::std_string_view< Char > s) -> basic_string_view< Char > |
template<typename S , FMT_ENABLE_IF(is_compile_string< S >::value) > | |
constexpr auto | to_string_view (const S &s) -> basic_string_view< typename S::char_type > |
FMT_BEGIN_DETAIL_NAMESPACE void | to_string_view (...) |
template<typename... , typename S , FMT_ENABLE_IF(!is_compile_string< S >::value) > | |
FMT_INLINE void | check_format_string (const S &) |
template<typename... , typename S , FMT_ENABLE_IF(is_compile_string< S >::value) > | |
void | check_format_string (S) |
template<typename Container > | |
FMT_BEGIN_DETAIL_NAMESPACE auto | get_container (std::back_insert_iterator< Container > it) -> Container & |
template<typename Char , typename InputIt , typename OutputIt > | |
FMT_CONSTEXPR auto | copy_str (InputIt begin, InputIt end, OutputIt out) -> OutputIt |
template<typename Char , FMT_ENABLE_IF(std::is_same< Char, char >::value) > | |
FMT_CONSTEXPR auto | copy_str (const Char *begin, const Char *end, Char *out) -> Char * |
template<typename T , typename OutputIt > | |
auto | get_buffer (OutputIt out) -> iterator_buffer< OutputIt, T > |
template<typename Buffer > | |
auto | get_iterator (Buffer &buf) -> decltype(buf.out()) |
template<typename T > | |
auto | get_iterator (buffer< T > &buf) -> buffer_appender< T > |
template<typename Char > | |
void | init_named_args (named_arg_info< Char > *, int, int) |
template<typename Char , typename T , typename... Tail, FMT_ENABLE_IF(!is_named_arg< T >::value) > | |
void | init_named_args (named_arg_info< Char > *named_args, int arg_count, int named_arg_count, const T &, const Tail &...args) |
template<typename... Args> | |
FMT_CONSTEXPR FMT_INLINE void | init_named_args (std::nullptr_t, int, int, const Args &...) |
template<bool B = false> | |
constexpr auto | count () -> size_t |
template<bool B1, bool B2, bool... Tail> | |
constexpr auto | count () -> size_t |
template<typename... Args> | |
constexpr auto | count_named_args () -> size_t |
FMT_TYPE_CONSTANT (int, int_type) | |
FMT_TYPE_CONSTANT (unsigned, uint_type) | |
FMT_TYPE_CONSTANT (long long, long_long_type) | |
FMT_TYPE_CONSTANT (unsigned long long, ulong_long_type) | |
FMT_TYPE_CONSTANT (int128_t, int128_type) | |
FMT_TYPE_CONSTANT (uint128_t, uint128_type) | |
FMT_TYPE_CONSTANT (bool, bool_type) | |
FMT_TYPE_CONSTANT (Char, char_type) | |
FMT_TYPE_CONSTANT (float, float_type) | |
FMT_TYPE_CONSTANT (double, double_type) | |
FMT_TYPE_CONSTANT (long double, long_double_type) | |
FMT_TYPE_CONSTANT (const Char *, cstring_type) | |
FMT_TYPE_CONSTANT (basic_string_view< Char >, string_type) | |
FMT_TYPE_CONSTANT (const void *, pointer_type) | |
constexpr bool | is_integral_type (type t) |
constexpr bool | is_arithmetic_type (type t) |
template<typename Context , typename T > | |
FMT_CONSTEXPR auto | make_arg (const T &value) -> basic_format_arg< Context > |
template<typename Visitor , typename Context > | |
FMT_CONSTEXPR FMT_INLINE auto | visit_format_arg (Visitor &&vis, const basic_format_arg< Context > &arg) -> decltype(vis(0)) |
template<typename Char , typename InputIt > | |
FMT_BEGIN_DETAIL_NAMESPACE auto | copy_str (InputIt begin, InputIt end, appender out) -> appender |
template<typename > | |
constexpr auto | encode_types () -> unsigned long long |
template<typename Context , typename Arg , typename... Args> | |
constexpr auto | encode_types () -> unsigned long long |
template<bool IS_PACKED, typename Context , type , typename T , FMT_ENABLE_IF(IS_PACKED) > | |
FMT_CONSTEXPR FMT_INLINE auto | make_arg (const T &val) -> value< Context > |
template<bool IS_PACKED, typename Context , type , typename T , FMT_ENABLE_IF(!IS_PACKED) > | |
auto | make_arg (const T &value) -> basic_format_arg< Context > |
template<typename Context = format_context, typename... Args> | |
constexpr auto | make_format_args (const Args &...args) -> format_arg_store< Context, Args...> |
template<typename Char , typename T > | |
auto | arg (const Char *name, const T &arg) -> detail::named_arg< Char, T > |
FMT_BEGIN_DETAIL_NAMESPACE void | throw_format_error (const char *message) |
template<typename Char > | |
constexpr bool | is_ascii_letter (Char c) |
template<typename Char , FMT_ENABLE_IF(std::is_integral< Char >::value) > | |
constexpr auto | to_ascii (Char value) -> Char |
template<typename Char > | |
FMT_CONSTEXPR auto | code_point_length (const Char *begin) -> int |
template<bool IS_CONSTEXPR, typename T , typename Ptr = const T*> | |
FMT_CONSTEXPR auto | find (Ptr first, Ptr last, T value, Ptr &out) -> bool |
template<> | |
auto | find< false, char > (const char *first, const char *last, char value, const char *&out) -> bool |
template<typename Char > | |
FMT_CONSTEXPR auto | parse_nonnegative_int (const Char *&begin, const Char *end, int error_value) noexcept-> int |
template<typename Char , typename Handler > | |
FMT_CONSTEXPR auto | parse_align (const Char *begin, const Char *end, Handler &&handler) -> const Char * |
template<typename Char > | |
FMT_CONSTEXPR bool | is_name_start (Char c) |
template<typename Char , typename IDHandler > | |
FMT_CONSTEXPR auto | do_parse_arg_id (const Char *begin, const Char *end, IDHandler &&handler) -> const Char * |
template<typename Char , typename IDHandler > | |
FMT_CONSTEXPR FMT_INLINE auto | parse_arg_id (const Char *begin, const Char *end, IDHandler &&handler) -> const Char * |
template<typename Char , typename Handler > | |
FMT_CONSTEXPR auto | parse_width (const Char *begin, const Char *end, Handler &&handler) -> const Char * |
template<typename Char , typename Handler > | |
FMT_CONSTEXPR auto | parse_precision (const Char *begin, const Char *end, Handler &&handler) -> const Char * |
template<typename Char , typename SpecHandler > | |
FMT_CONSTEXPR FMT_INLINE auto | parse_format_specs (const Char *begin, const Char *end, SpecHandler &&handler) -> const Char * |
template<typename Char , typename Handler > | |
FMT_CONSTEXPR auto | parse_replacement_field (const Char *begin, const Char *end, Handler &&handler) -> const Char * |
template<bool IS_CONSTEXPR, typename Char , typename Handler > | |
FMT_CONSTEXPR FMT_INLINE void | parse_format_string (basic_string_view< Char > format_str, Handler &&handler) |
template<typename T , typename ParseContext > | |
FMT_CONSTEXPR auto | parse_format_specs (ParseContext &ctx) -> decltype(ctx.begin()) |
template<typename ErrorHandler > | |
FMT_CONSTEXPR void | check_int_type_spec (char spec, ErrorHandler &&eh) |
template<typename Char , typename ErrorHandler = error_handler> | |
FMT_CONSTEXPR auto | check_char_specs (const basic_format_specs< Char > &specs, ErrorHandler &&eh={}) -> bool |
template<typename ErrorHandler = error_handler, typename Char > | |
FMT_CONSTEXPR auto | parse_float_type_spec (const basic_format_specs< Char > &specs, ErrorHandler &&eh={}) -> float_specs |
template<typename Char , typename ErrorHandler = error_handler> | |
FMT_CONSTEXPR auto | check_cstring_type_spec (Char spec, ErrorHandler &&eh={}) -> bool |
template<typename Char , typename ErrorHandler > | |
FMT_CONSTEXPR void | check_string_type_spec (Char spec, ErrorHandler &&eh) |
template<typename Char , typename ErrorHandler > | |
FMT_CONSTEXPR void | check_pointer_type_spec (Char spec, ErrorHandler &&eh) |
template<typename... Args, typename Char > | |
FMT_CONSTEXPR auto | get_arg_index_by_name (basic_string_view< Char > name) -> int |
template<typename Char > | |
void | vformat_to (buffer< Char > &buf, basic_string_view< Char > fmt, basic_format_args< FMT_BUFFER_CONTEXT(type_identity_t< Char >)> args, detail::locale_ref loc={}) |
FMT_API void | vprint_mojibake (std::FILE *, string_view, format_args) |
template<typename S > | |
auto | runtime (const S &s) -> basic_runtime< char_t< S >> |
FMT_API auto | vformat (string_view fmt, format_args args) -> std::string |
template<typename... T> | |
FMT_INLINE auto | format (format_string< T...> fmt, T &&...args) -> std::string |
template<typename OutputIt , FMT_ENABLE_IF(detail::is_output_iterator< OutputIt, char >::value) > | |
auto | vformat_to (OutputIt out, string_view fmt, format_args args) -> OutputIt |
template<typename OutputIt , typename... T, FMT_ENABLE_IF(detail::is_output_iterator< OutputIt, char >::value) > | |
FMT_INLINE auto | format_to (OutputIt out, format_string< T...> fmt, T &&...args) -> OutputIt |
template<typename OutputIt , typename... T, FMT_ENABLE_IF(detail::is_output_iterator< OutputIt, char >::value) > | |
auto | vformat_to_n (OutputIt out, size_t n, string_view fmt, format_args args) -> format_to_n_result< OutputIt > |
template<typename OutputIt , typename... T, FMT_ENABLE_IF(detail::is_output_iterator< OutputIt, char >::value) > | |
FMT_INLINE auto | format_to_n (OutputIt out, size_t n, format_string< T...> fmt, const T &...args) -> format_to_n_result< OutputIt > |
template<typename... T> | |
FMT_INLINE auto | formatted_size (format_string< T...> fmt, T &&...args) -> size_t |
FMT_API void | vprint (string_view fmt, format_args args) |
FMT_API void | vprint (std::FILE *f, string_view fmt, format_args args) |
template<typename... T> | |
FMT_INLINE void | print (format_string< T...> fmt, T &&...args) |
template<typename... T> | |
FMT_INLINE void | print (std::FILE *f, format_string< T...> fmt, T &&...args) |
Variables | |
constexpr int | invalid_arg_index = -1 |
#define FMT_ASSERT | ( | condition, | |
message | |||
) |
#define FMT_BEGIN_NAMESPACE |
#define FMT_BUFFER_CONTEXT | ( | Char | ) | basic_format_context<detail::buffer_appender<Char>, Char> |
#define FMT_ENABLE_IF | ( | ... | ) | enable_if_t<(__VA_ARGS__), int> = 0 |
#define FMT_HAS_CPP14_ATTRIBUTE | ( | attribute | ) | (__cplusplus >= 201402L && FMT_HAS_CPP_ATTRIBUTE(attribute)) |
#define FMT_HAS_CPP17_ATTRIBUTE | ( | attribute | ) | (__cplusplus >= 201703L && FMT_HAS_CPP_ATTRIBUTE(attribute)) |
#define FMT_NOEXCEPT FMT_DETECTED_NOEXCEPT |
#define FMT_TYPE_CONSTANT | ( | Type, | |
constant | |||
) |
#define FMT_UNICODE !FMT_MSC_VER |
#define FMT_USE_CONSTEXPR |
using align_t = align::type |
using bool_constant = std::integral_constant<bool, B> |
using buffer_appender = conditional_t<std::is_same<T, char>::value, appender, std::back_insert_iterator<buffer<T>>> |
using buffer_context = basic_format_context<detail::buffer_appender<Char>, Char> |
using conditional_t = typename std::conditional<B, T, F>::type |
using enable_if_t = typename std::enable_if<B, T>::type |
using format_args = basic_format_args<format_context> |
An alias to basic_format_args<format_context>
.
using format_context = buffer_context<char> |
using format_parse_context = basic_format_parse_context<char> |
using format_specs = basic_format_specs<char> |
using format_string = basic_format_string<char, type_identity_t<Args>...> |
using has_fallback_formatter = std::is_constructible<fallback_formatter<T, Char>> |
using has_formatter = std::is_constructible<typename Context::template formatter_type<T>> |
using is_formattable = bool_constant< !std::is_same<decltype(detail::arg_mapper<buffer_context<Char>>().map( std::declval<T>())), detail::unformattable>::value && !detail::has_fallback_formatter<T, Char>::value> |
using long_type = conditional_t<long_short, int, long long> |
using mapped_type_constant = type_constant<decltype(arg_mapper<Context>().map(std::declval<const T&>())), typename Context::char_type> |
using remove_cvref_t = typename std::remove_cv<remove_reference_t<T>>::type |
using remove_reference_t = typename std::remove_reference<T>::type |
using sign_t = sign::type |
using string_view = basic_string_view<char> |
using type_identity_t = typename type_identity<T>::type |
using ulong_type = conditional_t<long_short, unsigned, unsigned long long> |
anonymous enum : unsigned long long |
anonymous enum : unsigned long long |
|
strong |
|
strong |
|
inline |
FMT_NORETURN FMT_API void assert_fail | ( | const char * | file, |
int | line, | ||
const char * | message | ||
) |
Definition at line 34 of file format-inl.h.
FMT_CONSTEXPR auto check_char_specs | ( | const basic_format_specs< Char > & | specs, |
ErrorHandler && | eh = {} |
||
) | -> bool |
FMT_CONSTEXPR auto check_cstring_type_spec | ( | Char | spec, |
ErrorHandler && | eh = {} |
||
) | -> bool |
FMT_INLINE void check_format_string | ( | const S & | ) |
void check_format_string | ( | S | format_str | ) |
FMT_CONSTEXPR void check_int_type_spec | ( | char | spec, |
ErrorHandler && | eh | ||
) |
FMT_CONSTEXPR void check_pointer_type_spec | ( | Char | spec, |
ErrorHandler && | eh | ||
) |
FMT_CONSTEXPR void check_string_type_spec | ( | Char | spec, |
ErrorHandler && | eh | ||
) |
FMT_CONSTEXPR auto code_point_length | ( | const Char * | begin | ) | -> int |
constexpr auto const_check | ( | T | value | ) | -> T |
|
inline |
FMT_CONSTEXPR auto copy_str | ( | InputIt | begin, |
InputIt | end, | ||
OutputIt | out | ||
) | -> OutputIt |
FMT_CONSTEXPR auto copy_str | ( | const Char * | begin, |
const Char * | end, | ||
Char * | out | ||
) | -> Char* |
FMT_BEGIN_DETAIL_NAMESPACE auto copy_str | ( | InputIt | begin, |
InputIt | end, | ||
appender | out | ||
) | -> appender |
constexpr auto count | ( | ) | -> size_t |
constexpr auto count_named_args | ( | ) | -> size_t |
FMT_CONSTEXPR auto do_parse_arg_id | ( | const Char * | begin, |
const Char * | end, | ||
IDHandler && | handler | ||
) | -> const Char* |
constexpr auto encode_types | ( | ) | -> unsigned long long |
constexpr auto encode_types | ( | ) | -> unsigned long long |
FMT_CONSTEXPR auto find | ( | Ptr | first, |
Ptr | last, | ||
T | value, | ||
Ptr & | out | ||
) | -> bool |
|
inline |
FMT_MSC_WARNING | ( | suppress:4566 | ) | const |
FMT_TYPE_CONSTANT | ( | int | , |
int_type | |||
) |
FMT_TYPE_CONSTANT | ( | unsigned | , |
uint_type | |||
) |
FMT_TYPE_CONSTANT | ( | long | long, |
long_long_type | |||
) |
FMT_TYPE_CONSTANT | ( | unsigned long | long, |
ulong_long_type | |||
) |
FMT_TYPE_CONSTANT | ( | int128_t | , |
int128_type | |||
) |
FMT_TYPE_CONSTANT | ( | uint128_t | , |
uint128_type | |||
) |
FMT_TYPE_CONSTANT | ( | bool | , |
bool_type | |||
) |
FMT_TYPE_CONSTANT | ( | Char | , |
char_type | |||
) |
FMT_TYPE_CONSTANT | ( | float | , |
float_type | |||
) |
FMT_TYPE_CONSTANT | ( | double | , |
double_type | |||
) |
FMT_TYPE_CONSTANT | ( | long | double, |
long_double_type | |||
) |
FMT_TYPE_CONSTANT | ( | const Char * | , |
cstring_type | |||
) |
FMT_TYPE_CONSTANT | ( | basic_string_view< Char > | , |
string_type | |||
) |
FMT_TYPE_CONSTANT | ( | const void * | , |
pointer_type | |||
) |
FMT_INLINE auto format | ( | format_string< T...> | fmt, |
T &&... | args | ||
) | -> std::string |
FMT_INLINE auto format_to | ( | OutputIt | out, |
format_string< T...> | fmt, | ||
T &&... | args | ||
) | -> OutputIt |
FMT_INLINE auto format_to_n | ( | OutputIt | out, |
size_t | n, | ||
format_string< T...> | fmt, | ||
const T &... | args | ||
) | -> format_to_n_result<OutputIt> |
FMT_INLINE auto formatted_size | ( | format_string< T...> | fmt, |
T &&... | args | ||
) | -> size_t |
FMT_CONSTEXPR auto get_arg_index_by_name | ( | basic_string_view< Char > | name | ) | -> int |
auto get_buffer | ( | OutputIt | out | ) | -> iterator_buffer<OutputIt, T> |
|
inline |
auto get_iterator | ( | Buffer & | buf | ) | -> decltype(buf.out()) |
auto get_iterator | ( | buffer< T > & | buf | ) | -> buffer_appender<T> |
|
inline |
void init_named_args | ( | named_arg_info< Char > * | named_args, |
int | arg_count, | ||
int | named_arg_count, | ||
const T & | arg, | ||
const Tail &... | args | ||
) |
FMT_CONSTEXPR FMT_INLINE void init_named_args | ( | std::nullptr_t | , |
int | , | ||
int | , | ||
const Args & | ... | ||
) |
constexpr bool is_ascii_letter | ( | Char | c | ) |
FMT_BEGIN_DETAIL_NAMESPACE constexpr FMT_INLINE auto is_constant_evaluated | ( | ) | -> bool |
FMT_CONSTEXPR bool is_name_start | ( | Char | c | ) |
FMT_CONSTEXPR auto make_arg | ( | const T & | value | ) | -> basic_format_arg<Context> |
FMT_CONSTEXPR FMT_INLINE auto make_arg | ( | const T & | val | ) | -> value<Context> |
|
inline |
constexpr auto make_format_args | ( | const Args &... | args | ) | -> format_arg_store<Context, Args...> |
Constructs a ~fmtformat_arg_store
object that contains references to arguments and can be implicitly converted to ~fmtformat_args
. Context
can be omitted in which case it defaults to ~fmt::context
. See ~fmtarg
for lifetime considerations.
FMT_CONSTEXPR auto parse_align | ( | const Char * | begin, |
const Char * | end, | ||
Handler && | handler | ||
) | -> const Char* |
FMT_CONSTEXPR FMT_INLINE auto parse_arg_id | ( | const Char * | begin, |
const Char * | end, | ||
IDHandler && | handler | ||
) | -> const Char* |
FMT_CONSTEXPR auto parse_float_type_spec | ( | const basic_format_specs< Char > & | specs, |
ErrorHandler && | eh = {} |
||
) | -> float_specs |
FMT_CONSTEXPR FMT_INLINE auto parse_format_specs | ( | const Char * | begin, |
const Char * | end, | ||
SpecHandler && | handler | ||
) | -> const Char* |
FMT_CONSTEXPR auto parse_format_specs | ( | ParseContext & | ctx | ) | -> decltype(ctx.begin()) |
FMT_CONSTEXPR FMT_INLINE void parse_format_string | ( | basic_string_view< Char > | format_str, |
Handler && | handler | ||
) |
|
noexcept |
FMT_CONSTEXPR auto parse_precision | ( | const Char * | begin, |
const Char * | end, | ||
Handler && | handler | ||
) | -> const Char* |
FMT_CONSTEXPR auto parse_replacement_field | ( | const Char * | begin, |
const Char * | end, | ||
Handler && | handler | ||
) | -> const Char* |
FMT_CONSTEXPR auto parse_width | ( | const Char * | begin, |
const Char * | end, | ||
Handler && | handler | ||
) | -> const Char* |
FMT_INLINE void print | ( | format_string< T...> | fmt, |
T &&... | args | ||
) |
FMT_INLINE void print | ( | std::FILE * | f, |
format_string< T...> | fmt, | ||
T &&... | args | ||
) |
auto runtime | ( | const S & | s | ) | -> basic_runtime<char_t<S>> |
|
inline |
constexpr auto to_ascii | ( | Char | value | ) | -> Char |
FMT_INLINE auto to_string_view | ( | const Char * | s | ) | -> basic_string_view<Char> |
Returns a string view of s
. In order to add custom string type support to {fmt} provide an overload of to_string_view
for it in the same namespace as the type for the argument-dependent lookup to work.
Example**::
namespace my_ns { inline string_view to_string_view(const my_string& s) { return {s.data(), s.length()}; } } std::string message = fmt::format(my_string("The answer is {}"), 42);
|
inline |
constexpr auto to_string_view | ( | basic_string_view< Char > | s | ) | -> basic_string_view<Char> |
|
inline |
constexpr auto to_string_view | ( | const S & | s | ) | -> basic_string_view<typename S::char_type> |
FMT_BEGIN_DETAIL_NAMESPACE void to_string_view | ( | ... | ) |
FMT_CONSTEXPR auto to_unsigned | ( | Int | value | ) | -> typename std::make_unsigned<Int>::type |
FMT_API auto vformat | ( | string_view | fmt, |
format_args | args | ||
) | -> std::string |
Definition at line 2562 of file format-inl.h.
void vformat_to | ( | buffer< Char > & | buf, |
basic_string_view< Char > | fmt, | ||
basic_format_args< FMT_BUFFER_CONTEXT(type_identity_t< Char >)> | args, | ||
detail::locale_ref | loc = {} |
||
) |
auto vformat_to | ( | OutputIt | out, |
string_view | fmt, | ||
format_args | args | ||
) | -> OutputIt |
auto vformat_to_n | ( | OutputIt | out, |
size_t | n, | ||
string_view | fmt, | ||
format_args | args | ||
) | -> format_to_n_result<OutputIt> |
FMT_CONSTEXPR FMT_INLINE auto visit_format_arg | ( | Visitor && | vis, |
const basic_format_arg< Context > & | arg | ||
) | -> decltype(vis(0)) |
FMT_API void vprint | ( | string_view | fmt, |
format_args | args | ||
) |
Definition at line 2615 of file format-inl.h.
FMT_API void vprint | ( | std::FILE * | f, |
string_view | fmt, | ||
format_args | args | ||
) |
Definition at line 2598 of file format-inl.h.
|
inline |