SoPlex Documentation
Loading...
Searching...
No Matches
internal Namespace Reference

Namespaces

namespace  cf
 
namespace  digits
 

Classes

struct  accumulator
 
struct  ansi_color_escape
 
class  arg_converter
 
class  arg_formatter_base
 
class  arg_map
 
struct  arg_mapper
 
struct  arg_ref
 
struct  auto_id
 
struct  basic_compiled_format
 
struct  basic_data
 
class  basic_writer
 
class  bigint
 
struct  bits
 
struct  bool_pack
 
struct  boundaries
 
class  buffer
 
class  char_converter
 
class  char_specs_checker
 
struct  char_t_impl
 
struct  char_t_impl< S, enable_if_t< is_string< S >::value > >
 
struct  chrono_format_checker
 
struct  chrono_formatter
 
struct  color_type
 
class  compiled_format
 
struct  compiled_format_base
 
struct  compiled_format_base< S, enable_if_t< is_compile_string< S >::value > >
 
struct  conditional_helper
 
class  container_buffer
 
class  counting_iterator
 
class  cstring_type_checker
 
class  custom_formatter
 
struct  custom_value
 
struct  data
 
struct  dynamic_format_specs
 
class  dynamic_specs_handler
 
struct  error_handler
 
struct  fallback_formatter
 
struct  fallback_formatter< T, Char, enable_if_t< is_streamable< T, Char >::value > >
 
struct  fallback_uintptr
 
struct  fill_t
 
struct  fixed_handler
 
struct  float_specs
 
class  float_writer
 
struct  format_part
 
struct  format_part_array
 
class  format_string_checker
 
class  format_string_compiler
 
class  formatbuf
 
class  fp
 
struct  grisu_shortest_handler
 
struct  id_adapter
 
struct  int128_t
 
struct  int_checker
 
struct  int_checker< true >
 
class  int_type_checker
 
struct  integer_sequence
 
struct  is_contiguous_back_insert_iterator
 
struct  is_contiguous_back_insert_iterator< std::back_insert_iterator< Container > >
 
struct  is_integral
 
struct  is_integral< int128_t >
 
struct  is_integral< uint128_t >
 
class  is_like_std_string
 Return true value if T has std::string interface, like std::string_view. More...
 
struct  is_like_std_string< fmt::basic_string_view< Char > >
 
class  is_output_iterator
 
struct  is_range_
 
struct  is_range_< T, conditional_t< false, conditional_helper< decltype(std::declval< T >().begin()), decltype(std::declval< T >().end())>, void > >
 
class  is_streamable
 
struct  is_string
 
class  is_tuple_like_
 tuple_size and tuple_element check. More...
 
class  is_zero_int
 
struct  iterator_category
 
struct  iterator_category< It, void_t< typename It::iterator_category > >
 
struct  iterator_category< T * >
 
class  locale_ref
 
struct  make_integer_sequence
 
struct  make_integer_sequence< T, 0, Ns... >
 
struct  make_unsigned_or_bool
 
struct  make_unsigned_or_bool< bool >
 
struct  make_unsigned_or_unchanged
 
struct  make_unsigned_or_unchanged< T, true >
 
struct  named_arg
 
struct  named_arg_base
 
struct  nonfinite_writer
 
struct  null
 
class  numeric_specs_checker
 
class  output_range
 
struct  part_counter
 
struct  precision_adapter
 
class  precision_checker
 
class  printf_precision_handler
 
class  printf_width_handler
 
class  specs_checker
 
class  specs_handler
 
class  specs_setter
 
struct  std_string_view
 
struct  string_value
 
struct  test_stream
 
class  truncating_iterator
 
class  truncating_iterator< OutputIt, std::false_type >
 
class  truncating_iterator< OutputIt, std::true_type >
 
class  truncating_iterator_base
 
struct  type_constant
 
struct  uint128_t
 
class  value
 
struct  view
 
struct  void_t_impl
 
struct  width_adapter
 
class  width_checker
 

Typedefs

template<typename T , typename Context >
using has_fallback_formatter
 
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
 
template<bool... Args>
using all_true
 
using format_func = void (*)(internal::buffer<char>&, int, string_view)
 
using uintptr_t = fallback_uintptr
 
template<typename T >
using iterator_t = decltype(std::begin(std::declval<T&>()))
 
template<typename T >
using checked_ptr = T*
 
template<typename InputIt , typename OutChar >
using needs_conversion
 
template<typename T >
using uint32_or_64_or_128_t
 
using writer = basic_writer<buffer_range<char>>
 
template<typename T >
using is_integer
 
template<std::size_t... N>
using index_sequence = integer_sequence<std::size_t, N...>
 
template<std::size_t N>
using make_index_sequence = make_integer_sequence<std::size_t, N>
 

Enumerations

enum class  numeric_system { standard , alternative }
 
enum  type {
  none_type , named_arg_type , int_type , uint_type ,
  long_long_type , ulong_long_type , int128_type , uint128_type ,
  bool_type , char_type , last_integer_type = char_type , float_type ,
  double_type , long_double_type , last_numeric_type = long_double_type , cstring_type ,
  string_type , pointer_type , custom_type
}
 
enum  { long_short = sizeof(long) == sizeof(int) }
 
enum  { packed_arg_bits = 5 }
 
enum  { max_packed_args = 63 / packed_arg_bits }
 
enum  : unsigned long long { is_unpacked_bit = 1ULL << 63 }
 
enum  round_direction { unknown , up , down }
 
enum class  float_format : unsigned char { general , exp , fixed , hex }
 
enum class  arg_id_kind { none , index , name }
 

Functions

null localtime_r FMT_NOMACRO (...)
 
null localtime_s (...)
 
null gmtime_r (...)
 
null gmtime_s (...)
 
std::size_t strftime (char *str, std::size_t count, const char *format, const std::tm *time)
 
std::size_t strftime (wchar_t *str, std::size_t count, const wchar_t *format, const std::tm *time)
 
template<typename Period >
FMT_CONSTEXPR const char * get_units ()
 
template<>
FMT_CONSTEXPR const char * get_units< std::atto > ()
 
template<>
FMT_CONSTEXPR const char * get_units< std::femto > ()
 
template<>
FMT_CONSTEXPR const char * get_units< std::pico > ()
 
template<>
FMT_CONSTEXPR const char * get_units< std::nano > ()
 
template<>
FMT_CONSTEXPR const char * get_units< std::micro > ()
 
template<>
FMT_CONSTEXPR const char * get_units< std::milli > ()
 
template<>
FMT_CONSTEXPR const char * get_units< std::centi > ()
 
template<>
FMT_CONSTEXPR const char * get_units< std::deci > ()
 
template<>
FMT_CONSTEXPR const char * get_units< std::ratio< 1 > > ()
 
template<>
FMT_CONSTEXPR const char * get_units< std::deca > ()
 
template<>
FMT_CONSTEXPR const char * get_units< std::hecto > ()
 
template<>
FMT_CONSTEXPR const char * get_units< std::kilo > ()
 
template<>
FMT_CONSTEXPR const char * get_units< std::mega > ()
 
template<>
FMT_CONSTEXPR const char * get_units< std::giga > ()
 
template<>
FMT_CONSTEXPR const char * get_units< std::tera > ()
 
template<>
FMT_CONSTEXPR const char * get_units< std::peta > ()
 
template<>
FMT_CONSTEXPR const char * get_units< std::exa > ()
 
template<>
FMT_CONSTEXPR const char * get_units< std::ratio< 60 > > ()
 
template<>
FMT_CONSTEXPR const char * get_units< std::ratio< 3600 > > ()
 
template<typename Char , typename Handler >
FMT_CONSTEXPR const Char * parse_chrono_format (const Char *begin, const Char *end, Handler &&handler)
 
template<typename T , FMT_ENABLE_IF(std::is_integral< T >::value) >
bool isnan (T)
 
template<typename T , FMT_ENABLE_IF(std::is_integral< T >::value) >
bool isfinite (T)
 
template<typename T , FMT_ENABLE_IF(std::is_integral< T >::value) >
int to_nonnegative_int (T value, int upper)
 
template<typename T , FMT_ENABLE_IF(std::is_integral< T >::value) >
mod (T x, int y)
 
template<typename Rep , typename Period , FMT_ENABLE_IF(std::is_integral< Rep >::value) >
std::chrono::duration< Rep, std::milli > get_milliseconds (std::chrono::duration< Rep, Period > d)
 
template<typename Rep , typename OutputIt >
OutputIt format_chrono_duration_value (OutputIt out, Rep val, int precision)
 
template<typename Period , typename OutputIt >
static OutputIt format_chrono_duration_unit (OutputIt out)
 
template<typename Char >
FMT_CONSTEXPR ansi_color_escape< Char > make_foreground_color (internal::color_type foreground) FMT_NOEXCEPT
 
template<typename Char >
FMT_CONSTEXPR ansi_color_escape< Char > make_background_color (internal::color_type background) FMT_NOEXCEPT
 
template<typename Char >
FMT_CONSTEXPR ansi_color_escape< Char > make_emphasis (emphasis em) FMT_NOEXCEPT
 
template<typename Char >
void fputs (const Char *chars, FILE *stream) FMT_NOEXCEPT
 
template<>
void fputs< wchar_t > (const wchar_t *chars, FILE *stream) FMT_NOEXCEPT
 
template<typename Char >
void reset_color (FILE *stream) FMT_NOEXCEPT
 
template<>
void reset_color< wchar_t > (FILE *stream) FMT_NOEXCEPT
 
template<typename Char >
void reset_color (basic_memory_buffer< Char > &buffer) FMT_NOEXCEPT
 
template<typename Char >
void vformat_to (basic_memory_buffer< Char > &buf, const text_style &ts, basic_string_view< Char > format_str, basic_format_args< buffer_context< Char > > args)
 
template<typename Char >
FMT_CONSTEXPR unsigned count_parts (basic_string_view< Char > format_str)
 
template<bool IS_CONSTEXPR, typename Char , typename PartHandler >
FMT_CONSTEXPR void compile_format_string (basic_string_view< Char > format_str, PartHandler handler)
 
template<typename Range , typename Context , typename Id >
void format_arg (basic_format_parse_context< typename Range::value_type > &parse_ctx, Context &ctx, Id arg_id)
 
template<typename Char , unsigned N>
FMT_CONSTEXPR format_part_array< Char, N > compile_to_parts (basic_string_view< Char > format_str)
 
template<typename T >
constexpr const T & constexpr_max (const T &a, const T &b)
 
FMT_API void assert_fail (const char *file, int line, const char *message)
 
template<typename Int >
FMT_CONSTEXPR std::make_unsigned< Int >::type to_unsigned (Int value)
 
void to_string_view (...)
 
template<typename Container >
Container & get_container (std::back_insert_iterator< Container > it)
 
 FMT_TYPE_CONSTANT (const named_arg_base< Char > &, named_arg_type)
 
 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_CONSTEXPR bool is_integral_type (type t)
 
FMT_CONSTEXPR bool is_arithmetic_type (type t)
 
template<typename Context , typename T >
FMT_CONSTEXPR basic_format_arg< Context > make_arg (const T &value)
 
template<typename >
constexpr unsigned long long encode_types ()
 
template<typename Context , typename Arg , typename... Args>
constexpr unsigned long long encode_types ()
 
template<bool IS_PACKED, typename Context , typename T , FMT_ENABLE_IF(IS_PACKED) >
value< Context > make_arg (const T &val)
 
template<bool IS_PACKED, typename Context , typename T , FMT_ENABLE_IF(!IS_PACKED) >
basic_format_arg< Context > make_arg (const T &value)
 
template<typename... , typename S , FMT_ENABLE_IF(!is_compile_string< S >::value) >
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... Args, typename S , typename Char = char_t<S>>
format_arg_store< buffer_context< Char >, remove_reference_t< Args >... > make_args_checked (const S &format_str, const remove_reference_t< Args > &... args)
 
template<typename Char >
std::basic_string< Char > vformat (basic_string_view< Char > format_str, basic_format_args< buffer_context< Char > > args)
 
template<typename Char >
buffer_context< Char >::iterator vformat_to (buffer< Char > &buf, basic_string_view< Char > format_str, basic_format_args< buffer_context< Char > > args)
 
FMT_FUNC int safe_strerror (int error_code, char *&buffer, std::size_t buffer_size) FMT_NOEXCEPT
 
FMT_FUNC void format_error_code (internal::buffer< char > &out, int error_code, string_view message) FMT_NOEXCEPT
 
FMT_FUNC void fwrite_fully (const void *ptr, size_t size, size_t count, FILE *stream)
 
FMT_FUNC void report_error (format_func func, int error_code, string_view message) FMT_NOEXCEPT
 
template<typename Char >
FMT_FUNC std::string grouping_impl (locale_ref loc)
 
template<typename Char >
FMT_FUNC Char thousands_sep_impl (locale_ref loc)
 
template<typename Char >
FMT_FUNC Char decimal_point_impl (locale_ref loc)
 
template<>
FMT_FUNC int count_digits< 4 > (internal::fallback_uintptr n)
 
template<int SHIFT = 0>
fp normalize (fp value)
 
bool operator== (fp x, fp y)
 
uint64_t multiply (uint64_t lhs, uint64_t rhs)
 
fp operator* (fp x, fp y)
 
FMT_FUNC fp get_cached_power (int min_exponent, int &pow10_exponent)
 
round_direction get_round_direction (uint64_t divisor, uint64_t remainder, uint64_t error)
 
template<typename Handler >
FMT_ALWAYS_INLINE digits::result grisu_gen_digits (fp value, uint64_t error, int &exp, Handler &handler)
 
template<typename Double >
void fallback_format (Double d, buffer< char > &buf, int &exp10)
 
template<typename T >
int format_float (T value, int precision, float_specs specs, buffer< char > &buf)
 
template<typename T >
int snprintf_float (T value, int precision, float_specs specs, buffer< char > &buf)
 
template<typename T >
const_check (T value)
 
template<typename Dest , typename Source >
Dest bit_cast (const Source &source)
 
bool is_big_endian ()
 
fallback_uintptr to_uintptr (const void *p)
 
template<typename T >
constexpr T max_value ()
 
template<typename T >
constexpr int num_bits ()
 
template<>
constexpr int num_bits< fallback_uintptr > ()
 
template<typename Char >
Char * get_data (std::basic_string< Char > &s)
 
template<typename Container >
Container::value_type * get_data (Container &c)
 
template<typename T >
T * make_checked (T *p, std::size_t)
 
template<typename Container , FMT_ENABLE_IF(is_contiguous< Container >::value) >
checked_ptr< typename Container::value_type > reserve (std::back_insert_iterator< Container > &it, std::size_t n)
 
template<typename Iterator >
Iterator & reserve (Iterator &it, std::size_t)
 
template<typename Char >
size_t count_code_points (basic_string_view< Char > s)
 
size_t count_code_points (basic_string_view< char8_t > s)
 
template<typename Char >
size_t code_point_index (basic_string_view< Char > s, size_t n)
 
size_t code_point_index (basic_string_view< char8_t > s, size_t n)
 
char8_t to_char8_t (char c)
 
template<typename OutChar , typename InputIt , typename OutputIt , FMT_ENABLE_IF(!needs_conversion< InputIt, OutChar >::value) >
OutputIt copy_str (InputIt begin, InputIt end, OutputIt it)
 
template<typename T >
constexpr bool use_grisu ()
 
template<typename T , FMT_ENABLE_IF(std::numeric_limits< T >::is_signed) >
FMT_CONSTEXPR bool is_negative (T value)
 
int count_digits (uint64_t n)
 
template<unsigned BITS, typename UInt >
int count_digits (UInt n)
 
template<>
int count_digits< 4 > (internal::fallback_uintptr n)
 
template<typename Char >
FMT_API std::string grouping_impl (locale_ref loc)
 
template<typename Char >
std::string grouping (locale_ref loc)
 
template<>
std::string grouping< wchar_t > (locale_ref loc)
 
template<typename Char >
FMT_API Char thousands_sep_impl (locale_ref loc)
 
template<typename Char >
Char thousands_sep (locale_ref loc)
 
template<>
wchar_t thousands_sep (locale_ref loc)
 
template<typename Char >
FMT_API Char decimal_point_impl (locale_ref loc)
 
template<typename Char >
Char decimal_point (locale_ref loc)
 
template<>
wchar_t decimal_point (locale_ref loc)
 
template<typename UInt , typename Char , typename F >
Char * format_decimal (Char *buffer, UInt value, int num_digits, F add_thousands_sep)
 
template<typename Int >
constexpr int digits10 () noexcept
 
template<>
constexpr int digits10< int128_t > () noexcept
 
template<>
constexpr int digits10< uint128_t > () noexcept
 
template<typename Char , typename UInt , typename Iterator , typename F >
Iterator format_decimal (Iterator out, UInt value, int num_digits, F add_thousands_sep)
 
template<typename Char , typename It , typename UInt >
It format_decimal (It out, UInt value, int num_digits)
 
template<unsigned BASE_BITS, typename Char , typename UInt >
Char * format_uint (Char *buffer, UInt value, int num_digits, bool upper=false)
 
template<unsigned BASE_BITS, typename Char >
Char * format_uint (Char *buffer, internal::fallback_uintptr n, int num_digits, bool=false)
 
template<unsigned BASE_BITS, typename Char , typename It , typename UInt >
It format_uint (It out, UInt value, int num_digits, bool upper=false)
 
template<typename Char , typename It >
It write_exponent (int exp, It it)
 
template<typename T >
promote_float (T value)
 
double promote_float (float value)
 
template<typename Handler >
FMT_CONSTEXPR void handle_int_type_spec (char spec, Handler &&handler)
 
template<typename ErrorHandler = error_handler, typename Char >
FMT_CONSTEXPR float_specs parse_float_type_spec (const basic_format_specs< Char > &specs, ErrorHandler &&eh={})
 
template<typename Char , typename Handler >
FMT_CONSTEXPR void handle_char_specs (const basic_format_specs< Char > *specs, Handler &&handler)
 
template<typename Char , typename Handler >
FMT_CONSTEXPR void handle_cstring_type_spec (Char spec, Handler &&handler)
 
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 Char >
FMT_CONSTEXPR bool is_name_start (Char c)
 
template<typename Char , typename ErrorHandler >
FMT_CONSTEXPR int parse_nonnegative_int (const Char *&begin, const Char *end, ErrorHandler &&eh)
 
template<template< typename > class Handler, typename FormatArg , typename ErrorHandler >
FMT_CONSTEXPR int get_dynamic_spec (FormatArg arg, ErrorHandler eh)
 
template<typename Context >
FMT_CONSTEXPR Context::format_arg get_arg (Context &ctx, int id)
 
template<typename Char , typename IDHandler >
FMT_CONSTEXPR const Char * parse_arg_id (const Char *begin, const Char *end, IDHandler &&handler)
 
template<typename Char , typename Handler >
FMT_CONSTEXPR const Char * parse_align (const Char *begin, const Char *end, Handler &&handler)
 
template<typename Char , typename Handler >
FMT_CONSTEXPR const Char * parse_width (const Char *begin, const Char *end, Handler &&handler)
 
template<typename Char , typename Handler >
FMT_CONSTEXPR const Char * parse_precision (const Char *begin, const Char *end, Handler &&handler)
 
template<typename Char , typename SpecHandler >
FMT_CONSTEXPR const Char * parse_format_specs (const Char *begin, const Char *end, SpecHandler &&handler)
 
template<bool IS_CONSTEXPR, typename T , typename Ptr = const T*>
FMT_CONSTEXPR bool find (Ptr first, Ptr last, T value, Ptr &out)
 
template<>
bool find< false, char > (const char *first, const char *last, char value, const char *&out)
 
template<bool IS_CONSTEXPR, typename Char , typename Handler >
FMT_CONSTEXPR void parse_format_string (basic_string_view< Char > format_str, Handler &&handler)
 
template<typename T , typename ParseContext >
FMT_CONSTEXPR const ParseContext::char_type * parse_format_specs (ParseContext &ctx)
 
template<typename Char , typename ErrorHandler , typename... Args>
FMT_CONSTEXPR bool do_check_format_string (basic_string_view< Char > s, ErrorHandler eh=ErrorHandler())
 
template<template< typename > class Handler, typename Context >
void handle_dynamic_spec (int &value, arg_ref< typename Context::char_type > ref, Context &ctx)
 
template<typename Char >
buffer_context< Char >::iterator vformat_to (const std::locale &loc, buffer< Char > &buf, basic_string_view< Char > format_str, basic_format_args< buffer_context< Char > > args)
 
template<typename Char >
std::basic_string< Char > vformat (const std::locale &loc, basic_string_view< Char > format_str, basic_format_args< buffer_context< Char > > args)
 
template<typename Char >
void write (std::basic_ostream< Char > &os, buffer< Char > &buf)
 
template<typename Char , typename T >
void format_value (buffer< Char > &buf, const T &value, locale_ref loc=locale_ref())
 
template<typename T , typename Context , typename Char >
void convert_arg (basic_format_arg< Context > &arg, Char type)
 
template<typename Char , typename Context >
void printf (buffer< Char > &buf, basic_string_view< Char > format, basic_format_args< Context > args)
 
template<typename OutputIt , typename Char , typename Context >
internal::truncating_iterator< OutputIt > printf (internal::truncating_iterator< OutputIt > it, basic_string_view< Char > format, basic_format_args< Context > args)
 
template<typename RangeT , typename OutputIterator >
OutputIterator copy (const RangeT &range, OutputIterator out)
 
template<typename OutputIterator >
OutputIterator copy (const char *str, OutputIterator out)
 
template<typename OutputIterator >
OutputIterator copy (char ch, OutputIterator out)
 
template<class Tuple , class F , size_t... Is>
void for_each (index_sequence< Is... >, Tuple &&tup, F &&f) FMT_NOEXCEPT
 
template<class T >
FMT_CONSTEXPR make_index_sequence< std::tuple_size< T >::value > get_indexes (T const &)
 
template<class Tuple , class F >
void for_each (Tuple &&tup, F &&f)
 
template<typename Arg , FMT_ENABLE_IF(!is_like_std_string< typename std::decay< Arg >::type >::value) >
FMT_CONSTEXPR const char * format_str_quoted (bool add_space, const Arg &)
 
FMT_CONSTEXPR const char * format_str_quoted (bool add_space, const char *)
 
FMT_CONSTEXPR const wchar_t * format_str_quoted (bool add_space, const wchar_t *)
 
FMT_CONSTEXPR const char * format_str_quoted (bool add_space, const char)
 
FMT_CONSTEXPR const wchar_t * format_str_quoted (bool add_space, const wchar_t)
 

Variables

FMT_EXTERN template struct basic_data< void >
 

Typedef Documentation

◆ all_true

template<bool... Args>
using all_true
Initial value:
std::is_same<bool_pack<Args..., true>, bool_pack<true, Args...>>

Definition at line 1382 of file core.h.

◆ checked_ptr

template<typename T >
using checked_ptr = T*

Definition at line 318 of file format.h.

◆ format_func

using format_func = void (*)(internal::buffer<char>&, int, string_view)

Definition at line 76 of file format-inl.h.

◆ has_fallback_formatter

template<typename T , typename Context >
using has_fallback_formatter
Initial value:
std::is_constructible<fallback_formatter<T, typename Context::char_type>>

Definition at line 681 of file core.h.

◆ index_sequence

template<std::size_t... N>
using index_sequence = integer_sequence<std::size_t, N...>

Definition at line 133 of file ranges.h.

◆ is_integer

template<typename T >
using is_integer
Initial value:
bool_constant<is_integral<T>::value && !std::is_same<T, bool>::value &&
!std::is_same<T, char>::value &&
!std::is_same<T, wchar_t>::value>
std::integral_constant< bool, B > bool_constant
Definition core.h:207

Definition at line 1971 of file format.h.

◆ iterator_t

template<typename T >
using iterator_t = decltype(std::begin(std::declval<T&>()))

Definition at line 267 of file format.h.

◆ long_type

using long_type = conditional_t<long_short, int, long long>

Definition at line 828 of file core.h.

◆ make_index_sequence

template<std::size_t N>
using make_index_sequence = make_integer_sequence<std::size_t, N>

Definition at line 141 of file ranges.h.

◆ mapped_type_constant

template<typename T , typename Context >
using mapped_type_constant
Initial value:
type_constant<decltype(arg_mapper<Context>().map(std::declval<const T&>())),
typename Context::char_type>

Definition at line 937 of file core.h.

◆ needs_conversion

template<typename InputIt , typename OutChar >
using needs_conversion
Initial value:
std::is_same<typename std::iterator_traits<InputIt>::value_type,
char>::value &&
std::is_same<OutChar, char8_t>::value>

Definition at line 499 of file format.h.

◆ uint32_or_64_or_128_t

template<typename T >
using uint32_or_64_or_128_t
Initial value:
std::numeric_limits<T>::digits <= 32, uint32_t,
conditional_t<std::numeric_limits<T>::digits <= 64, uint64_t, uint128_t>>
typename std::conditional< B, T, F >::type conditional_t
Definition core.h:206

Definition at line 719 of file format.h.

◆ uintptr_t

Definition at line 246 of file format.h.

◆ ulong_type

using ulong_type = conditional_t<long_short, unsigned, unsigned long long>

Definition at line 829 of file core.h.

◆ writer

Definition at line 1772 of file format.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
long_short 

Definition at line 827 of file core.h.

◆ anonymous enum

anonymous enum
Enumerator
packed_arg_bits 

Definition at line 941 of file core.h.

◆ anonymous enum

anonymous enum
Enumerator
max_packed_args 

Definition at line 943 of file core.h.

◆ anonymous enum

anonymous enum : unsigned long long
Enumerator
is_unpacked_bit 

Definition at line 944 of file core.h.

◆ arg_id_kind

enum class arg_id_kind
strong
Enumerator
none 
index 
name 

Definition at line 2188 of file format.h.

◆ float_format

enum class float_format : unsigned char
strong
Enumerator
general 
exp 
fixed 
hex 

Definition at line 1039 of file format.h.

◆ numeric_system

enum class numeric_system
strong
Enumerator
standard 
alternative 

Definition at line 470 of file chrono.h.

◆ round_direction

Enumerator
unknown 
up 
down 

Definition at line 750 of file format-inl.h.

◆ type

enum type
Enumerator
none_type 
named_arg_type 
int_type 
uint_type 
long_long_type 
ulong_long_type 
int128_type 
uint128_type 
bool_type 
char_type 
last_integer_type 
float_type 
double_type 
long_double_type 
last_numeric_type 
cstring_type 
string_type 
pointer_type 
custom_type 

Definition at line 687 of file core.h.

Function Documentation

◆ assert_fail()

FMT_FUNC void assert_fail ( const char * file,
int line,
const char * message )

Definition at line 58 of file format-inl.h.

References print().

◆ bit_cast()

template<typename Dest , typename Source >
Dest bit_cast ( const Source & source)

Definition at line 214 of file format.h.

◆ check_format_string() [1/2]

template<typename... , typename S , FMT_ENABLE_IF(!is_compile_string< S >::value) >
void check_format_string ( const S & )

Definition at line 1369 of file core.h.

Referenced by check_format_string(), format_to(), format_to(), format_to(), format_to_n(), and print().

◆ check_format_string() [2/2]

template<typename... , typename S , FMT_ENABLE_IF(is_compile_string< S >::value) >
void check_format_string ( S format_str)

◆ check_pointer_type_spec()

template<typename Char , typename ErrorHandler >
FMT_CONSTEXPR void check_pointer_type_spec ( Char spec,
ErrorHandler && eh )

◆ check_string_type_spec()

template<typename Char , typename ErrorHandler >
FMT_CONSTEXPR void check_string_type_spec ( Char spec,
ErrorHandler && eh )

◆ code_point_index() [1/2]

template<typename Char >
size_t code_point_index ( basic_string_view< Char > s,
size_t n )

Definition at line 479 of file format.h.

References basic_string_view< Char >::size().

◆ code_point_index() [2/2]

size_t code_point_index ( basic_string_view< char8_t > s,
size_t n )

◆ compile_format_string()

template<bool IS_CONSTEXPR, typename Char , typename PartHandler >
FMT_CONSTEXPR void compile_format_string ( basic_string_view< Char > format_str,
PartHandler handler )

Definition at line 155 of file compile.h.

◆ compile_to_parts()

template<typename Char , unsigned N>
FMT_CONSTEXPR format_part_array< Char, N > compile_to_parts ( basic_string_view< Char > format_str)

◆ const_check()

template<typename T >
T const_check ( T value)

Definition at line 208 of file format.h.

Referenced by arg_converter< T, Context >::operator()().

◆ constexpr_max()

template<typename T >
constexpr const T & constexpr_max ( const T & a,
const T & b )
constexpr

Definition at line 282 of file compile.h.

◆ convert_arg()

template<typename T , typename Context , typename Char >
void convert_arg ( basic_format_arg< Context > & arg,
Char type )

Definition at line 122 of file printf.h.

References arg(), and visit_format_arg().

Referenced by basic_printf_context< OutputIt, Char >::format().

◆ copy() [1/3]

template<typename OutputIterator >
OutputIterator copy ( char ch,
OutputIterator out )

Definition at line 71 of file ranges.h.

◆ copy() [2/3]

template<typename OutputIterator >
OutputIterator copy ( const char * str,
OutputIterator out )

Definition at line 65 of file ranges.h.

◆ copy() [3/3]

◆ copy_str()

template<typename OutChar , typename InputIt , typename OutputIt , FMT_ENABLE_IF(!needs_conversion< InputIt, OutChar >::value) >
OutputIt copy_str ( InputIt begin,
InputIt end,
OutputIt it )

Definition at line 506 of file format.h.

◆ count_code_points() [1/2]

template<typename Char >
size_t count_code_points ( basic_string_view< Char > s)

◆ count_code_points() [2/2]

size_t count_code_points ( basic_string_view< char8_t > s)

◆ count_digits() [1/2]

template<unsigned BITS, typename UInt >
int count_digits ( UInt n)

Definition at line 789 of file format.h.

References count_digits().

◆ count_digits() [2/2]

◆ count_digits< 4 >() [1/2]

Definition at line 244 of file format-inl.h.

References fallback_uintptr::value.

◆ count_digits< 4 >() [2/2]

template<>
int count_digits< 4 > ( internal::fallback_uintptr n)

Definition at line 244 of file format-inl.h.

References fallback_uintptr::value.

◆ count_parts()

template<typename Char >
FMT_CONSTEXPR unsigned count_parts ( basic_string_view< Char > format_str)

Definition at line 90 of file compile.h.

References part_counter< Char >::num_parts.

◆ decimal_point() [1/2]

template<typename Char >
Char decimal_point ( locale_ref loc)

Definition at line 830 of file format.h.

References decimal_point().

Referenced by decimal_point(), and float_writer< Char >::float_writer().

◆ decimal_point() [2/2]

template<>
wchar_t decimal_point ( locale_ref loc)

Definition at line 833 of file format.h.

References decimal_point().

◆ decimal_point_impl() [1/2]

template<typename Char >
FMT_FUNC Char decimal_point_impl ( locale_ref loc)

Definition at line 210 of file format-inl.h.

References locale_ref::get().

◆ decimal_point_impl() [2/2]

template<typename Char >
FMT_API Char decimal_point_impl ( locale_ref loc)

Definition at line 210 of file format-inl.h.

References locale_ref::get().

◆ digits10()

template<typename Int >
constexpr int digits10 ( )
constexprnoexcept

Definition at line 868 of file format.h.

References digits10().

Referenced by digits10().

◆ digits10< int128_t >()

template<>
constexpr int digits10< int128_t > ( )
constexprnoexcept

Definition at line 871 of file format.h.

◆ digits10< uint128_t >()

template<>
constexpr int digits10< uint128_t > ( )
constexprnoexcept

Definition at line 872 of file format.h.

◆ do_check_format_string()

template<typename Char , typename ErrorHandler , typename... Args>
FMT_CONSTEXPR bool do_check_format_string ( basic_string_view< Char > s,
ErrorHandler eh = ErrorHandler() )

Definition at line 2617 of file format.h.

References do_check_format_string().

Referenced by check_format_string(), and do_check_format_string().

◆ encode_types() [1/2]

template<typename >
constexpr unsigned long long encode_types ( )
constexpr

Definition at line 1105 of file core.h.

Referenced by encode_types().

◆ encode_types() [2/2]

template<typename Context , typename Arg , typename... Args>
constexpr unsigned long long encode_types ( )
constexpr

Definition at line 1108 of file core.h.

References encode_types(), and packed_arg_bits.

◆ fallback_format()

template<typename Double >
void fallback_format ( Double d,
buffer< char > & buf,
int & exp10 )

◆ find()

template<bool IS_CONSTEXPR, typename T , typename Ptr = const T*>
FMT_CONSTEXPR bool find ( Ptr first,
Ptr last,
T value,
Ptr & out )

Definition at line 2471 of file format.h.

References find().

Referenced by find().

◆ find< false, char >()

template<>
bool find< false, char > ( const char * first,
const char * last,
char value,
const char *& out )

Definition at line 2479 of file format.h.

References to_unsigned().

◆ FMT_NOMACRO()

null localtime_r FMT_NOMACRO ( ...)

Definition at line 310 of file chrono.h.

◆ FMT_TYPE_CONSTANT() [1/15]

FMT_TYPE_CONSTANT ( basic_string_view< Char > ,
string_type  )

◆ FMT_TYPE_CONSTANT() [2/15]

FMT_TYPE_CONSTANT ( bool ,
bool_type  )

◆ FMT_TYPE_CONSTANT() [3/15]

FMT_TYPE_CONSTANT ( Char ,
char_type  )

◆ FMT_TYPE_CONSTANT() [4/15]

FMT_TYPE_CONSTANT ( const Char * ,
cstring_type  )

◆ FMT_TYPE_CONSTANT() [5/15]

FMT_TYPE_CONSTANT ( const named_arg_base< Char > & ,
named_arg_type  )

◆ FMT_TYPE_CONSTANT() [6/15]

FMT_TYPE_CONSTANT ( const void * ,
pointer_type  )

◆ FMT_TYPE_CONSTANT() [7/15]

FMT_TYPE_CONSTANT ( double ,
double_type  )

◆ FMT_TYPE_CONSTANT() [8/15]

FMT_TYPE_CONSTANT ( float ,
float_type  )

◆ FMT_TYPE_CONSTANT() [9/15]

FMT_TYPE_CONSTANT ( int ,
int_type  )

◆ FMT_TYPE_CONSTANT() [10/15]

FMT_TYPE_CONSTANT ( int128_t ,
int128_type  )

◆ FMT_TYPE_CONSTANT() [11/15]

FMT_TYPE_CONSTANT ( long double ,
long_double_type  )

◆ FMT_TYPE_CONSTANT() [12/15]

FMT_TYPE_CONSTANT ( long long ,
long_long_type  )

◆ FMT_TYPE_CONSTANT() [13/15]

FMT_TYPE_CONSTANT ( uint128_t ,
uint128_type  )

◆ FMT_TYPE_CONSTANT() [14/15]

FMT_TYPE_CONSTANT ( unsigned long long ,
ulong_long_type  )

◆ FMT_TYPE_CONSTANT() [15/15]

FMT_TYPE_CONSTANT ( unsigned ,
uint_type  )

◆ for_each() [1/2]

template<class Tuple , class F , size_t... Is>
void for_each ( index_sequence< Is... > ,
Tuple && tup,
F && f )

◆ for_each() [2/2]

template<class Tuple , class F >
void for_each ( Tuple && tup,
F && f )

Definition at line 158 of file ranges.h.

References for_each(), and get_indexes().

◆ format_arg()

template<typename Range , typename Context , typename Id >
void format_arg ( basic_format_parse_context< typename Range::value_type > & parse_ctx,
Context & ctx,
Id arg_id )

Definition at line 163 of file compile.h.

References visit_format_arg().

◆ format_chrono_duration_unit()

template<typename Period , typename OutputIt >
static OutputIt format_chrono_duration_unit ( OutputIt out)
static

Definition at line 770 of file chrono.h.

References format_to().

◆ format_chrono_duration_value()

template<typename Rep , typename OutputIt >
OutputIt format_chrono_duration_value ( OutputIt out,
Rep val,
int precision )

◆ format_decimal() [1/3]

template<typename UInt , typename Char , typename F >
Char * format_decimal ( Char * buffer,
UInt value,
int num_digits,
F add_thousands_sep )

Definition at line 841 of file format.h.

References FMT_ASSERT, format_decimal(), and index.

Referenced by format_decimal(), format_decimal(), and format_decimal().

◆ format_decimal() [2/3]

template<typename Char , typename It , typename UInt >
It format_decimal ( It out,
UInt value,
int num_digits )

Definition at line 886 of file format.h.

References format_decimal().

◆ format_decimal() [3/3]

template<typename Char , typename UInt , typename Iterator , typename F >
Iterator format_decimal ( Iterator out,
UInt value,
int num_digits,
F add_thousands_sep )

Definition at line 875 of file format.h.

References FMT_ASSERT, and format_decimal().

◆ format_error_code()

FMT_FUNC void format_error_code ( internal::buffer< char > & out,
int error_code,
string_view message )

◆ format_float()

◆ format_str_quoted() [1/5]

template<typename Arg , FMT_ENABLE_IF(!is_like_std_string< typename std::decay< Arg >::type >::value) >
FMT_CONSTEXPR const char * format_str_quoted ( bool add_space,
const Arg &  )

◆ format_str_quoted() [2/5]

FMT_CONSTEXPR const char * format_str_quoted ( bool add_space,
const char *  )

Definition at line 175 of file ranges.h.

◆ format_str_quoted() [3/5]

FMT_CONSTEXPR const char * format_str_quoted ( bool add_space,
const char  )

Definition at line 182 of file ranges.h.

◆ format_str_quoted() [4/5]

FMT_CONSTEXPR const wchar_t * format_str_quoted ( bool add_space,
const wchar_t *  )

Definition at line 178 of file ranges.h.

◆ format_str_quoted() [5/5]

FMT_CONSTEXPR const wchar_t * format_str_quoted ( bool add_space,
const wchar_t  )

Definition at line 185 of file ranges.h.

◆ format_uint() [1/3]

template<unsigned BASE_BITS, typename Char >
Char * format_uint ( Char * buffer,
internal::fallback_uintptr n,
int num_digits,
bool = false )

Definition at line 905 of file format.h.

References format_uint(), and fallback_uintptr::value.

◆ format_uint() [2/3]

template<unsigned BASE_BITS, typename Char , typename UInt >
Char * format_uint ( Char * buffer,
UInt value,
int num_digits,
bool upper = false )

Definition at line 891 of file format.h.

References format_uint().

Referenced by format_uint(), format_uint(), and format_uint().

◆ format_uint() [3/3]

template<unsigned BASE_BITS, typename Char , typename It , typename UInt >
It format_uint ( It out,
UInt value,
int num_digits,
bool upper = false )

Definition at line 927 of file format.h.

References format_uint().

◆ format_value()

template<typename Char , typename T >
void format_value ( buffer< Char > & buf,
const T & value,
locale_ref loc = locale_ref() )

◆ fputs()

template<typename Char >
void fputs ( const Char * chars,
FILE * stream )

Definition at line 448 of file color.h.

Referenced by reset_color(), reset_color< wchar_t >(), and vprint().

◆ fputs< wchar_t >()

template<>
void fputs< wchar_t > ( const wchar_t * chars,
FILE * stream )

Definition at line 453 of file color.h.

◆ fwrite_fully()

FMT_FUNC void fwrite_fully ( const void * ptr,
size_t size,
size_t count,
FILE * stream )

Definition at line 172 of file format-inl.h.

References FMT_THROW, and ptr().

Referenced by vprint().

◆ get_arg()

◆ get_cached_power()

FMT_FUNC fp get_cached_power ( int min_exponent,
int & pow10_exponent )

◆ get_container()

template<typename Container >
Container & get_container ( std::back_insert_iterator< Container > it)

Definition at line 665 of file core.h.

Referenced by printf_formatter< T >::format(), reserve(), and vformat_to().

◆ get_data() [1/2]

template<typename Container >
Container::value_type * get_data ( Container & c)

Definition at line 307 of file format.h.

◆ get_data() [2/2]

template<typename Char >
Char * get_data ( std::basic_string< Char > & s)

Definition at line 303 of file format.h.

Referenced by reserve().

◆ get_dynamic_spec()

template<template< typename > class Handler, typename FormatArg , typename ErrorHandler >
FMT_CONSTEXPR int get_dynamic_spec ( FormatArg arg,
ErrorHandler eh )

Definition at line 2127 of file format.h.

References arg(), get_dynamic_spec(), to_unsigned(), and visit_format_arg().

Referenced by get_dynamic_spec().

◆ get_indexes()

template<class T >
FMT_CONSTEXPR make_index_sequence< std::tuple_size< T >::value > get_indexes ( T const & )

Definition at line 153 of file ranges.h.

Referenced by for_each().

◆ get_milliseconds()

template<typename Rep , typename Period , FMT_ENABLE_IF(std::is_integral< Rep >::value) >
std::chrono::duration< Rep, std::milli > get_milliseconds ( std::chrono::duration< Rep, Period > d)

◆ get_round_direction()

round_direction get_round_direction ( uint64_t divisor,
uint64_t remainder,
uint64_t error )

Definition at line 756 of file format-inl.h.

References down, FMT_ASSERT, unknown, and up.

Referenced by fixed_handler::on_digit(), and fixed_handler::on_start().

◆ get_units()

template<typename Period >
FMT_CONSTEXPR const char * get_units ( )

Definition at line 443 of file chrono.h.

◆ get_units< std::atto >()

template<>
FMT_CONSTEXPR const char * get_units< std::atto > ( )

Definition at line 446 of file chrono.h.

◆ get_units< std::centi >()

template<>
FMT_CONSTEXPR const char * get_units< std::centi > ( )

Definition at line 452 of file chrono.h.

◆ get_units< std::deca >()

template<>
FMT_CONSTEXPR const char * get_units< std::deca > ( )

Definition at line 455 of file chrono.h.

◆ get_units< std::deci >()

template<>
FMT_CONSTEXPR const char * get_units< std::deci > ( )

Definition at line 453 of file chrono.h.

◆ get_units< std::exa >()

template<>
FMT_CONSTEXPR const char * get_units< std::exa > ( )

Definition at line 462 of file chrono.h.

◆ get_units< std::femto >()

template<>
FMT_CONSTEXPR const char * get_units< std::femto > ( )

Definition at line 447 of file chrono.h.

◆ get_units< std::giga >()

template<>
FMT_CONSTEXPR const char * get_units< std::giga > ( )

Definition at line 459 of file chrono.h.

◆ get_units< std::hecto >()

template<>
FMT_CONSTEXPR const char * get_units< std::hecto > ( )

Definition at line 456 of file chrono.h.

◆ get_units< std::kilo >()

template<>
FMT_CONSTEXPR const char * get_units< std::kilo > ( )

Definition at line 457 of file chrono.h.

◆ get_units< std::mega >()

template<>
FMT_CONSTEXPR const char * get_units< std::mega > ( )

Definition at line 458 of file chrono.h.

◆ get_units< std::micro >()

template<>
FMT_CONSTEXPR const char * get_units< std::micro > ( )

Definition at line 450 of file chrono.h.

◆ get_units< std::milli >()

template<>
FMT_CONSTEXPR const char * get_units< std::milli > ( )

Definition at line 451 of file chrono.h.

◆ get_units< std::nano >()

template<>
FMT_CONSTEXPR const char * get_units< std::nano > ( )

Definition at line 449 of file chrono.h.

◆ get_units< std::peta >()

template<>
FMT_CONSTEXPR const char * get_units< std::peta > ( )

Definition at line 461 of file chrono.h.

◆ get_units< std::pico >()

template<>
FMT_CONSTEXPR const char * get_units< std::pico > ( )

Definition at line 448 of file chrono.h.

◆ get_units< std::ratio< 1 > >()

template<>
FMT_CONSTEXPR const char * get_units< std::ratio< 1 > > ( )

Definition at line 454 of file chrono.h.

◆ get_units< std::ratio< 3600 > >()

template<>
FMT_CONSTEXPR const char * get_units< std::ratio< 3600 > > ( )

Definition at line 466 of file chrono.h.

◆ get_units< std::ratio< 60 > >()

template<>
FMT_CONSTEXPR const char * get_units< std::ratio< 60 > > ( )

Definition at line 463 of file chrono.h.

◆ get_units< std::tera >()

template<>
FMT_CONSTEXPR const char * get_units< std::tera > ( )

Definition at line 460 of file chrono.h.

◆ gmtime_r()

null gmtime_r ( ...)

Definition at line 312 of file chrono.h.

◆ gmtime_s()

null gmtime_s ( ...)

Definition at line 313 of file chrono.h.

◆ grisu_gen_digits()

template<typename Handler >
FMT_ALWAYS_INLINE digits::result grisu_gen_digits ( fp value,
uint64_t error,
int & exp,
Handler & handler )

◆ grouping()

template<typename Char >
std::string grouping ( locale_ref loc)

Definition at line 814 of file format.h.

References grouping().

Referenced by grouping().

◆ grouping< wchar_t >()

template<>
std::string grouping< wchar_t > ( locale_ref loc)

Definition at line 817 of file format.h.

◆ grouping_impl() [1/2]

template<typename Char >
FMT_FUNC std::string grouping_impl ( locale_ref loc)

Definition at line 203 of file format-inl.h.

References locale_ref::get().

◆ grouping_impl() [2/2]

template<typename Char >
FMT_API std::string grouping_impl ( locale_ref loc)

Definition at line 203 of file format-inl.h.

References locale_ref::get().

◆ handle_char_specs()

template<typename Char , typename Handler >
FMT_CONSTEXPR void handle_char_specs ( const basic_format_specs< Char > * specs,
Handler && handler )

◆ handle_cstring_type_spec()

template<typename Char , typename Handler >
FMT_CONSTEXPR void handle_cstring_type_spec ( Char spec,
Handler && handler )

◆ handle_dynamic_spec()

template<template< typename > class Handler, typename Context >
void handle_dynamic_spec ( int & value,
arg_ref< typename Context::char_type > ref,
Context & ctx )

◆ handle_int_type_spec()

template<typename Handler >
FMT_CONSTEXPR void handle_int_type_spec ( char spec,
Handler && handler )

◆ is_arithmetic_type()

◆ is_big_endian()

bool is_big_endian ( )

Definition at line 221 of file format.h.

Referenced by fallback_uintptr::fallback_uintptr().

◆ is_integral_type()

◆ is_name_start()

template<typename Char >
FMT_CONSTEXPR bool is_name_start ( Char c)

Definition at line 1919 of file format.h.

References is_name_start().

Referenced by is_name_start(), and parse_arg_id().

◆ is_negative()

◆ isfinite()

template<typename T , FMT_ENABLE_IF(std::is_integral< T >::value) >
bool isfinite ( T value)

◆ isnan()

◆ localtime_s()

null localtime_s ( ...)

Definition at line 311 of file chrono.h.

◆ make_arg() [1/3]

template<bool IS_PACKED, typename Context , typename T , FMT_ENABLE_IF(IS_PACKED) >
value< Context > make_arg ( const T & val)

Definition at line 1123 of file core.h.

References arg_mapper< Context >::map().

◆ make_arg() [2/3]

template<typename Context , typename T >
FMT_CONSTEXPR basic_format_arg< Context > make_arg ( const T & value)

Definition at line 1114 of file core.h.

References arg(), arg_mapper< Context >::map(), and basic_format_arg< Context >::type_.

◆ make_arg() [3/3]

template<bool IS_PACKED, typename Context , typename T , FMT_ENABLE_IF(!IS_PACKED) >
basic_format_arg< Context > make_arg ( const T & value)

Definition at line 1129 of file core.h.

◆ make_args_checked()

template<typename... Args, typename S , typename Char = char_t<S>>
format_arg_store< buffer_context< Char >, remove_reference_t< Args >... > make_args_checked ( const S & format_str,
const remove_reference_t< Args > &... args )

Definition at line 1387 of file core.h.

Referenced by format(), format(), format(), format_to(), and print().

◆ make_background_color()

template<typename Char >
FMT_CONSTEXPR ansi_color_escape< Char > make_background_color ( internal::color_type background)

Definition at line 437 of file color.h.

References basic_data< T >::background_color.

◆ make_checked()

◆ make_emphasis()

template<typename Char >
FMT_CONSTEXPR ansi_color_escape< Char > make_emphasis ( emphasis em)

Definition at line 443 of file color.h.

◆ make_foreground_color()

template<typename Char >
FMT_CONSTEXPR ansi_color_escape< Char > make_foreground_color ( internal::color_type foreground)

Definition at line 431 of file color.h.

References basic_data< T >::foreground_color.

◆ max_value()

template<typename T >
constexpr T max_value ( )
constexpr

Definition at line 254 of file format.h.

◆ mod()

◆ multiply()

uint64_t multiply ( uint64_t lhs,
uint64_t rhs )

Definition at line 459 of file format-inl.h.

Referenced by format_float(), and operator*().

◆ normalize()

template<int SHIFT = 0>
fp normalize ( fp value)

Definition at line 382 of file format-inl.h.

Referenced by format_float().

◆ num_bits()

template<typename T >
constexpr int num_bits ( )
constexpr

Definition at line 257 of file format.h.

◆ num_bits< fallback_uintptr >()

template<>
constexpr int num_bits< fallback_uintptr > ( )
constexpr

Definition at line 260 of file format.h.

◆ operator*()

fp operator* ( fp x,
fp y )

Definition at line 476 of file format-inl.h.

References fp::e, fp::f, and multiply().

◆ operator==()

bool operator== ( fp x,
fp y )

Definition at line 456 of file format-inl.h.

References fp::e, and fp::f.

◆ parse_align()

template<typename Char , typename Handler >
FMT_CONSTEXPR const Char * parse_align ( const Char * begin,
const Char * end,
Handler && handler )

◆ parse_arg_id()

template<typename Char , typename IDHandler >
FMT_CONSTEXPR const Char * parse_arg_id ( const Char * begin,
const Char * end,
IDHandler && handler )

◆ parse_chrono_format()

template<typename Char , typename Handler >
FMT_CONSTEXPR const Char * parse_chrono_format ( const Char * begin,
const Char * end,
Handler && handler )

Definition at line 478 of file chrono.h.

References alternative, FMT_THROW, ptr(), and standard.

◆ parse_float_type_spec()

template<typename ErrorHandler = error_handler, typename Char >
FMT_CONSTEXPR float_specs parse_float_type_spec ( const basic_format_specs< Char > & specs,
ErrorHandler && eh = {} )

◆ parse_format_specs() [1/2]

template<typename Char , typename SpecHandler >
FMT_CONSTEXPR const Char * parse_format_specs ( const Char * begin,
const Char * end,
SpecHandler && handler )

◆ parse_format_specs() [2/2]

template<typename T , typename ParseContext >
FMT_CONSTEXPR const ParseContext::char_type * parse_format_specs ( ParseContext & ctx)

Definition at line 2551 of file format.h.

References char_type, custom_type, arg_mapper< Context >::map(), and parse_format_specs().

◆ parse_format_string()

template<bool IS_CONSTEXPR, typename Char , typename Handler >
FMT_CONSTEXPR void parse_format_string ( basic_string_view< Char > format_str,
Handler && handler )

◆ parse_nonnegative_int()

template<typename Char , typename ErrorHandler >
FMT_CONSTEXPR int parse_nonnegative_int ( const Char *& begin,
const Char * end,
ErrorHandler && eh )

Definition at line 1926 of file format.h.

References FMT_ASSERT, and parse_nonnegative_int().

Referenced by parse_arg_id(), parse_nonnegative_int(), parse_precision(), and parse_width().

◆ parse_precision()

template<typename Char , typename Handler >
FMT_CONSTEXPR const Char * parse_precision ( const Char * begin,
const Char * end,
Handler && handler )

◆ parse_width()

template<typename Char , typename Handler >
FMT_CONSTEXPR const Char * parse_width ( const Char * begin,
const Char * end,
Handler && handler )

◆ printf() [1/2]

template<typename Char , typename Context >
void printf ( buffer< Char > & buf,
basic_string_view< Char > format,
basic_format_args< Context > args )

Definition at line 175 of file printf.h.

References format().

◆ printf() [2/2]

template<typename OutputIt , typename Char , typename Context >
internal::truncating_iterator< OutputIt > printf ( internal::truncating_iterator< OutputIt > it,
basic_string_view< Char > format,
basic_format_args< Context > args )

Definition at line 181 of file printf.h.

References format().

◆ promote_float() [1/2]

double promote_float ( float value)

Definition at line 1194 of file format.h.

References promote_float().

◆ promote_float() [2/2]

template<typename T >
T promote_float ( T value)

Definition at line 1193 of file format.h.

References promote_float().

Referenced by promote_float(), and promote_float().

◆ report_error()

FMT_FUNC void report_error ( format_func func,
int error_code,
string_view message )

Definition at line 180 of file format-inl.h.

References buffer< T >::data(), and buffer< T >::size().

Referenced by report_system_error().

◆ reserve() [1/2]

template<typename Iterator >
Iterator & reserve ( Iterator & it,
std::size_t  )

Definition at line 332 of file format.h.

◆ reserve() [2/2]

◆ reset_color() [1/2]

template<typename Char >
void reset_color ( basic_memory_buffer< Char > & buffer)

Definition at line 466 of file color.h.

References buffer< T >::append(), and basic_data< T >::reset_color.

◆ reset_color() [2/2]

template<typename Char >
void reset_color ( FILE * stream)

Definition at line 457 of file color.h.

References fputs(), and basic_data< T >::reset_color.

◆ reset_color< wchar_t >()

template<>
void reset_color< wchar_t > ( FILE * stream)

Definition at line 461 of file color.h.

References fputs(), and basic_data< T >::wreset_color.

◆ safe_strerror()

FMT_FUNC int safe_strerror ( int error_code,
char *& buffer,
std::size_t buffer_size )

Definition at line 87 of file format-inl.h.

References FMT_ASSERT, strerror_r(), and strerror_s().

Referenced by format_system_error().

◆ snprintf_float()

template<typename T >
int snprintf_float ( T value,
int precision,
float_specs specs,
buffer< char > & buf )

◆ strftime() [1/2]

std::size_t strftime ( char * str,
std::size_t count,
const char * format,
const std::tm * time )

Definition at line 390 of file chrono.h.

References format().

Referenced by formatter< std::tm, Char >::format().

◆ strftime() [2/2]

std::size_t strftime ( wchar_t * str,
std::size_t count,
const wchar_t * format,
const std::tm * time )

Definition at line 395 of file chrono.h.

References format().

◆ thousands_sep() [1/2]

template<typename Char >
Char thousands_sep ( locale_ref loc)

Definition at line 822 of file format.h.

References thousands_sep().

Referenced by thousands_sep().

◆ thousands_sep() [2/2]

template<>
wchar_t thousands_sep ( locale_ref loc)

Definition at line 825 of file format.h.

References thousands_sep().

◆ thousands_sep_impl() [1/2]

template<typename Char >
FMT_FUNC Char thousands_sep_impl ( locale_ref loc)

Definition at line 206 of file format-inl.h.

References locale_ref::get().

◆ thousands_sep_impl() [2/2]

template<typename Char >
FMT_API Char thousands_sep_impl ( locale_ref loc)

Definition at line 206 of file format-inl.h.

References locale_ref::get().

◆ to_char8_t()

char8_t to_char8_t ( char c)

Definition at line 496 of file format.h.

◆ to_nonnegative_int()

◆ to_string_view()

void to_string_view ( ...)

◆ to_uintptr()

fallback_uintptr to_uintptr ( const void * p)

Definition at line 247 of file format.h.

Referenced by arg_formatter_base< Range, ErrorHandler >::write_pointer().

◆ to_unsigned()

◆ use_grisu()

template<typename T >
constexpr bool use_grisu ( )
constexpr

Definition at line 520 of file format.h.

References FMT_USE_GRISU.

◆ vformat() [1/2]

template<typename Char >
std::basic_string< Char > vformat ( basic_string_view< Char > format_str,
basic_format_args< buffer_context< Char > > args )

Definition at line 3379 of file format.h.

References to_string(), and vformat_to().

Referenced by format(), format(), vformat(), and vformat().

◆ vformat() [2/2]

template<typename Char >
std::basic_string< Char > vformat ( const std::locale & loc,
basic_string_view< Char > format_str,
basic_format_args< buffer_context< Char > > args )

Definition at line 28 of file locale.h.

References vformat_to().

◆ vformat_to() [1/3]

◆ vformat_to() [2/3]

template<typename Char >
buffer_context< Char >::iterator vformat_to ( internal::buffer< Char > & buf,
basic_string_view< Char > format_str,
basic_format_args< buffer_context< Char > > args )

Definition at line 3262 of file format.h.

References to_string_view().

◆ vformat_to() [3/3]

template<typename Char >
buffer_context< Char >::iterator vformat_to ( const std::locale & loc,
buffer< Char > & buf,
basic_string_view< Char > format_str,
basic_format_args< buffer_context< Char > > args )

Definition at line 18 of file locale.h.

References to_string_view().

◆ write()

template<typename Char >
void write ( std::basic_ostream< Char > & os,
buffer< Char > & buf )

◆ write_exponent()

template<typename Char , typename It >
It write_exponent ( int exp,
It it )

Definition at line 1059 of file format.h.

References exp, FMT_ASSERT, and write_exponent().

Referenced by write_exponent().

Variable Documentation

◆ basic_data< void >

FMT_EXTERN template struct basic_data< void >

Definition at line 739 of file format.h.