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

Namespaces

namespace  cf
 
namespace  digits
 
namespace  dragonbox
 

Classes

struct  accumulator
 
struct  ansi_color_escape
 
class  arg_converter
 
struct  arg_data
 
struct  arg_data< T, Char, NUM_ARGS, 0 >
 
class  arg_formatter
 
class  arg_formatter_base
 
struct  arg_mapper
 
struct  arg_ref
 
struct  auto_id
 
struct  basic_compiled_format
 
struct  basic_data
 
struct  big_decimal_fp
 
class  bigint
 
struct  bits
 
struct  boundaries
 
class  buffer
 
class  buffer_appender
 
struct  buffer_traits
 
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  compile_parse_context
 
class  compiled_format
 
struct  compiled_format_base
 
struct  compiled_format_base< S, enable_if_t< is_compile_string< S >::value > >
 
class  compiled_string
 
struct  conditional_helper
 
struct  converter
 
class  counting_buffer
 
class  counting_iterator
 
class  cstring_type_checker
 
class  custom_formatter
 
struct  custom_value
 
struct  data
 
struct  default_arg_formatter
 
struct  divtest_table_entry
 
class  dynamic_arg_list
 
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
 
class  fixed_buffer_traits
 
struct  fixed_handler
 
struct  float_specs
 
struct  format_decimal_result
 
struct  format_handler
 
struct  format_part
 
struct  format_part_array
 
class  format_string_checker
 
class  format_string_compiler
 
class  formatbuf
 
class  fp
 
struct  get_cstring
 
struct  id_adapter
 
struct  int128_t
 
struct  int_checker
 
struct  int_checker< true >
 
class  int_type_checker
 
struct  int_writer
 
struct  integer_sequence
 
struct  is_back_insert_iterator
 
struct  is_back_insert_iterator< std::back_insert_iterator< Container > >
 
struct  is_compiled_string
 
struct  is_contiguous_back_insert_iterator
 
struct  is_contiguous_back_insert_iterator< buffer_appender< Char > >
 
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 > >
 
struct  is_named_arg
 
struct  is_named_arg< named_arg< Char, T > >
 
struct  is_output_iterator
 
struct  is_output_iterator< It, T, void_t< typename std::iterator_traits< It >::iterator_category, decltype(*std::declval< It >()=std::declval< T >())> >
 
struct  is_range_
 
struct  is_range_< T, conditional_t< false, conditional_helper< decltype(std::declval< T >().begin()), decltype(std::declval< T >().end())>, void > >
 
struct  is_reference_wrapper
 
struct  is_reference_wrapper< std::reference_wrapper< T > >
 
class  is_streamable
 
struct  is_string
 
class  is_tuple_like_
 tuple_size and tuple_element check. More...
 
class  is_zero_int
 
class  iterator_buffer
 
class  iterator_buffer< std::back_insert_iterator< Container >, enable_if_t< is_contiguous< Container >::value, typename Container::value_type > >
 
class  iterator_buffer< T *, 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_info
 
struct  named_arg_value
 
struct  null
 
class  numeric_specs_checker
 
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  stringifier
 
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
 
struct  uint128_wrapper
 
struct  unformattable
 
class  utf8_to_utf16
 
class  value
 
struct  view
 
struct  void_t_impl
 
struct  width_adapter
 
class  width_checker
 
struct  write_int_data
 

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<typename... Ts>
using void_t = typename detail::void_t_impl<Ts...>::type
 
using uintptr_t = fallback_uintptr
 
template<typename T >
using iterator_t = decltype(std::begin(std::declval<T&>()))
 
template<typename T >
using sentinel_t = decltype(std::end(std::declval<T&>()))
 
template<typename T >
using checked_ptr = T*
 
template<typename InputIt , typename OutChar >
using needs_conversion
 
template<typename T >
using is_fast_float
 
template<typename T >
using is_signed
 
template<typename T >
using uint32_or_64_or_128_t
 
template<typename T >
using is_integer
 
using format_func = void (*)(detail::buffer<char>&, int, string_view)
 
template<size_t... N>
using index_sequence = integer_sequence<size_t, N...>
 
template<size_t N>
using make_index_sequence = make_integer_sequence<size_t, N>
 
template<typename Range >
using value_type = remove_cvref_t<decltype(*std::declval<Range>().begin())>
 

Enumerations

enum class  numeric_system { standard , alternative }
 
enum  char8_type : unsigned char
 
enum class  type {
  none_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 = 4 }
 
enum  { max_packed_args = 62 / packed_arg_bits }
 
enum  : unsigned long long { is_unpacked_bit = 1ULL << 63 }
 
enum  : unsigned long long { has_named_args_bit = 1ULL << 62 }
 
enum class  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 (...)
 
size_t strftime (char *str, size_t count, const char *format, const std::tm *time)
 
size_t strftime (wchar_t *str, 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 Char , typename Rep , typename OutputIt >
OutputIt format_duration_value (OutputIt out, Rep val, int precision)
 
template<typename Char , typename OutputIt >
OutputIt copy_unit (string_view unit, OutputIt out, Char)
 
template<typename OutputIt >
OutputIt copy_unit (string_view unit, OutputIt out, wchar_t)
 
template<typename Char , typename Period , typename OutputIt >
OutputIt format_duration_unit (OutputIt out)
 
template<typename Char >
FMT_CONSTEXPR ansi_color_escape< Char > make_foreground_color (detail::color_type foreground) FMT_NOEXCEPT
 
template<typename Char >
FMT_CONSTEXPR ansi_color_escape< Char > make_background_color (detail::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 (buffer< Char > &buffer) FMT_NOEXCEPT
 
template<typename Char >
void vformat_to (buffer< Char > &buf, const text_style &ts, basic_string_view< Char > format_str, basic_format_args< buffer_context< type_identity_t< Char > > > args)
 
template<typename T , typename... Tail>
const T & first (const T &value, const Tail &...)
 
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 OutputIt , typename Context , typename Id >
void format_arg (basic_format_parse_context< typename Context::char_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)
 
template<typename... Args, typename S , FMT_ENABLE_IF(is_compile_string< S >::value) >
constexpr auto compile (S format_str) -> detail::compiled_format< S, Args... >
 
template<typename... Args, typename Char , size_t N>
auto compile (const Char(&format_str)[N]) -> detail::compiled_format< const Char *, Args... >
 
template<typename T >
constexpr T const_check (T value)
 
FMT_NORETURN 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)
 
 FMT_SUPPRESS_MSC_WARNING (4566) const expr unsigned char micro[]
 
template<typename Char >
constexpr bool is_unicode ()
 
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 >
Container & get_container (std::back_insert_iterator< Container > it)
 
template<typename T , typename OutputIt >
iterator_buffer< OutputIt, T > get_buffer (OutputIt)
 
template<typename T >
buffer< T > & get_buffer (buffer_appender< T >)
 
template<typename OutputIt >
OutputIt get_buffer_init (OutputIt out)
 
template<typename T >
buffer< T > & get_buffer_init (buffer_appender< T > out)
 
template<typename Buffer >
auto get_iterator (Buffer &buf) -> decltype(buf.out())
 
template<typename T >
buffer_appender< T > get_iterator (buffer< T > &buf)
 
template<typename Char >
void init_named_args (named_arg_info< Char > *, int, int)
 
template<typename Char , typename T , typename... Tail>
void init_named_args (named_arg_info< Char > *named_args, int arg_count, int named_arg_count, const T &, const Tail &... args)
 
template<typename Char , typename T , typename... Tail>
void init_named_args (named_arg_info< Char > *named_args, int arg_count, int named_arg_count, const named_arg< Char, T > &arg, const Tail &... args)
 
template<typename... Args>
FMT_INLINE void init_named_args (std::nullptr_t, int, int, const Args &...)
 
template<bool B = false>
constexpr size_t count ()
 
template<bool B1, bool B2, bool... Tail>
constexpr size_t count ()
 
template<typename... Args>
constexpr size_t count_named_args ()
 
 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 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<typename T >
int check (unformattable)
 
template<typename T , typename U >
const U & check (const U &val)
 
template<bool IS_PACKED, typename Context , type , typename T , FMT_ENABLE_IF(IS_PACKED) >
value< Context > make_arg (const T &val)
 
template<bool IS_PACKED, typename Context , type , typename T , FMT_ENABLE_IF(!IS_PACKED) >
basic_format_arg< Context > make_arg (const T &value)
 
template<typename T >
const T & unwrap (const T &v)
 
template<typename T >
const T & unwrap (const std::reference_wrapper< T > &v)
 
template<typename Char , FMT_ENABLE_IF(!std::is_same< Char, char >::value) >
std::basic_string< Char > vformat (basic_string_view< Char > format_str, basic_format_args< buffer_context< type_identity_t< Char > > > args)
 
FMT_API std::string vformat (string_view format_str, format_args args)
 
template<typename Char >
void vformat_to (buffer< Char > &buf, basic_string_view< Char > format_str, basic_format_args< FMT_BUFFER_CONTEXT(type_identity_t< Char >)> args, detail::locale_ref loc={})
 
template<typename Char , typename Args , FMT_ENABLE_IF(!std::is_same< Char, char >::value) >
void vprint_mojibake (std::FILE *, basic_string_view< Char >, const Args &)
 
FMT_API void vprint_mojibake (std::FILE *, string_view, format_args)
 
int safe_strerror (int error_code, char *&buffer, size_t buffer_size) FMT_NOEXCEPT
 
FMT_FUNC void format_error_code (detail::buffer< char > &out, int error_code, string_view message) FMT_NOEXCEPT
 
FMT_FUNC void report_error (format_func func, int error_code, string_view message) FMT_NOEXCEPT
 
void fwrite_fully (const void *ptr, size_t size, size_t count, FILE *stream)
 
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 > (detail::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)
 
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, int num_digits, bool binary32, 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)
 
const char * utf8_decode (const char *buf, uint32_t *c, int *e)
 
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< int128_t > ()
 
template<>
constexpr int num_bits< uint128_t > ()
 
template<>
constexpr int num_bits< fallback_uintptr > ()
 
FMT_INLINE void assume (bool condition)
 
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, 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, size_t n)
 
template<typename T >
buffer_appender< T > reserve (buffer_appender< T > it, size_t n)
 
template<typename Iterator >
Iterator & reserve (Iterator &it, size_t)
 
template<typename T , typename OutputIt >
constexpr T * to_pointer (OutputIt, size_t)
 
template<typename T >
T * to_pointer (buffer_appender< T > it, size_t n)
 
template<typename Container , FMT_ENABLE_IF(is_contiguous< Container >::value) >
std::back_insert_iterator< Container > base_iterator (std::back_insert_iterator< Container > &it, checked_ptr< typename Container::value_type >)
 
template<typename Iterator >
Iterator base_iterator (Iterator, Iterator it)
 
template<typename Char >
size_t count_code_points (basic_string_view< Char > s)
 
size_t count_code_points (basic_string_view< char > s)
 
size_t count_code_points (basic_string_view< char8_type > 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_type > s, size_t n)
 
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 Char , typename InputIt >
counting_iterator copy_str (InputIt begin, InputIt end, counting_iterator it)
 
template<typename T , FMT_ENABLE_IF(is_signed< T >::value) >
FMT_CONSTEXPR bool is_negative (T value)
 
template<typename T , FMT_ENABLE_IF(std::is_floating_point< T >::value) >
FMT_CONSTEXPR bool is_supported_floating_point (T)
 
FMT_INLINE uint16_t bsr2log10 (int bsr)
 
int count_digits (uint64_t n)
 
template<unsigned BITS, typename UInt >
int count_digits (UInt n)
 
template<>
int count_digits< 4 > (detail::fallback_uintptr n)
 
template<typename Int >
constexpr int digits10 () FMT_NOEXCEPT
 
template<>
constexpr int digits10< int128_t > () FMT_NOEXCEPT
 
template<>
constexpr int digits10< uint128_t > () FMT_NOEXCEPT
 
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 Char >
bool equal2 (const Char *lhs, const char *rhs)
 
bool equal2 (const char *lhs, const char *rhs)
 
template<typename Char >
void copy2 (Char *dst, const char *src)
 
FMT_INLINE void copy2 (char *dst, const char *src)
 
template<typename Char , typename UInt >
format_decimal_result< Char * > format_decimal (Char *out, UInt value, int size)
 
template<typename Char , typename UInt , typename Iterator , FMT_ENABLE_IF(!std::is_pointer< remove_cvref_t< Iterator > >::value) >
format_decimal_result< Iterator > format_decimal (Iterator out, UInt value, int size)
 
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, detail::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 T >
constexpr dragonbox::float_info< T >::carrier_uint exponent_mask ()
 
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 OutputIt , typename Char >
FMT_NOINLINE OutputIt fill (OutputIt it, size_t n, const fill_t< Char > &fill)
 
template<align::type align = align::left, typename OutputIt , typename Char , typename F >
OutputIt write_padded (OutputIt out, const basic_format_specs< Char > &specs, size_t size, size_t width, F &&f)
 
template<align::type align = align::left, typename OutputIt , typename Char , typename F >
OutputIt write_padded (OutputIt out, const basic_format_specs< Char > &specs, size_t size, F &&f)
 
template<typename Char , typename OutputIt >
OutputIt write_bytes (OutputIt out, string_view bytes, const basic_format_specs< Char > &specs)
 
template<typename OutputIt , typename Char , typename F >
OutputIt write_int (OutputIt out, int num_digits, string_view prefix, const basic_format_specs< Char > &specs, F f)
 
template<typename StrChar , typename Char , typename OutputIt >
OutputIt write (OutputIt out, basic_string_view< StrChar > s, const basic_format_specs< Char > &specs)
 
template<typename Char , typename OutputIt >
OutputIt write_nonfinite (OutputIt out, bool isinf, const basic_format_specs< Char > &specs, const float_specs &fspecs)
 
int get_significand_size (const big_decimal_fp &fp)
 
template<typename T >
int get_significand_size (const dragonbox::decimal_fp< T > &fp)
 
template<typename Char , typename OutputIt >
OutputIt write_significand (OutputIt out, const char *significand, int &significand_size)
 
template<typename Char , typename OutputIt , typename UInt >
OutputIt write_significand (OutputIt out, UInt significand, int significand_size)
 
template<typename Char , typename UInt , FMT_ENABLE_IF(std::is_integral< UInt >::value) >
Char * write_significand (Char *out, UInt significand, int significand_size, int integral_size, Char decimal_point)
 
template<typename OutputIt , typename UInt , typename Char , FMT_ENABLE_IF(!std::is_pointer< remove_cvref_t< OutputIt > >::value) >
OutputIt write_significand (OutputIt out, UInt significand, int significand_size, int integral_size, Char decimal_point)
 
template<typename OutputIt , typename Char >
OutputIt write_significand (OutputIt out, const char *significand, int significand_size, int integral_size, Char decimal_point)
 
template<typename OutputIt , typename DecimalFP , typename Char >
OutputIt write_float (OutputIt out, const DecimalFP &fp, const basic_format_specs< Char > &specs, float_specs fspecs, Char decimal_point)
 
template<typename Char , typename OutputIt , typename T , FMT_ENABLE_IF(std::is_floating_point< T >::value) >
OutputIt write (OutputIt out, T value, basic_format_specs< Char > specs, locale_ref loc={})
 
template<typename Char , typename OutputIt , typename T , FMT_ENABLE_IF(is_fast_float< T >::value) >
OutputIt write (OutputIt out, T value)
 
template<typename Char , typename OutputIt >
OutputIt write_char (OutputIt out, Char value, const basic_format_specs< Char > &specs)
 
template<typename Char , typename OutputIt , typename UIntPtr >
OutputIt write_ptr (OutputIt out, UIntPtr value, const basic_format_specs< Char > *specs)
 
template<typename Char , typename OutputIt >
OutputIt write (OutputIt out, monostate)
 
template<typename Char , typename OutputIt , FMT_ENABLE_IF(!std::is_same< Char, char >::value) >
OutputIt write (OutputIt out, string_view value)
 
template<typename Char , typename OutputIt >
OutputIt write (OutputIt out, basic_string_view< Char > value)
 
template<typename Char >
buffer_appender< Char > write (buffer_appender< Char > out, basic_string_view< Char > value)
 
template<typename Char , typename OutputIt >
OutputIt write (OutputIt out, bool value)
 
template<typename Char , typename OutputIt >
OutputIt write (OutputIt out, Char value)
 
template<typename Char , typename OutputIt >
OutputIt write (OutputIt out, const Char *value)
 
template<typename Char , typename OutputIt >
OutputIt write (OutputIt out, const void *value)
 
template<typename Char , typename OutputIt , typename T >
auto write (OutputIt out, const T &value) -> typename std::enable_if< mapped_type_constant< T, basic_format_context< OutputIt, Char > >::value==type::custom_type, OutputIt >::type
 
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 , typename ID >
FMT_CONSTEXPR Context::format_arg get_arg (Context &ctx, ID id)
 
template<typename Char , typename IDHandler >
FMT_CONSTEXPR const Char * parse_arg_id (const Char *begin, const Char *end, IDHandler &&handler)
 
template<typename Char >
FMT_CONSTEXPR int code_point_length (const Char *begin)
 
template<typename Char >
constexpr bool is_ascii_letter (Char c)
 
template<typename Char , FMT_ENABLE_IF(std::is_integral< Char >::value) >
constexpr Char to_ascii (Char value)
 
template<typename Char , FMT_ENABLE_IF(std::is_enum< Char >::value) >
constexpr std::underlying_type< Char >::type to_ascii (Char value)
 
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<typename Char , typename Handler >
FMT_CONSTEXPR const Char * parse_replacement_field (const Char *begin, const Char *end, Handler &&handler)
 
template<bool IS_CONSTEXPR, typename Char , typename Handler >
FMT_CONSTEXPR_DECL FMT_INLINE 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 , size_t N>
FMT_CONSTEXPR basic_string_view< Char > compile_string_to_view (const Char(&s)[N])
 
template<typename Char >
FMT_CONSTEXPR basic_string_view< Char > compile_string_to_view (const std_string_view< Char > &s)
 
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 >
std::basic_string< Char > vformat (const std::locale &loc, basic_string_view< Char > format_str, basic_format_args< buffer_context< type_identity_t< Char > > > args)
 
template<typename Char , typename Traits >
void_t operator<< (std::basic_ostream< Char, Traits > &, Char)
 
template<typename Char , typename Traits >
void_t operator<< (std::basic_ostream< Char, Traits > &, char)
 
template<typename Traits >
void_t operator<< (std::basic_ostream< char, Traits > &, char)
 
template<typename Traits >
void_t operator<< (std::basic_ostream< char, Traits > &, signed char)
 
template<typename Traits >
void_t operator<< (std::basic_ostream< char, Traits > &, unsigned char)
 
template<typename Char >
void write_buffer (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 vprintf (buffer< Char > &buf, 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

◆ checked_ptr

template<typename T >
using checked_ptr = T*

Definition at line 364 of file format.h.

◆ format_func

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

Definition at line 3249 of file format.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 902 of file core.h.

◆ index_sequence

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

Definition at line 130 of file ranges.h.

◆ is_fast_float

template<typename T >
using is_fast_float
Initial value:
sizeof(T) <= sizeof(double)>
std::integral_constant< bool, B > bool_constant
Definition core.h:262

Definition at line 591 of file format.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>

Definition at line 2389 of file format.h.

◆ is_signed

template<typename T >
using is_signed
Initial value:
std::integral_constant<bool, std::numeric_limits<T>::is_signed ||
std::is_same<T, int128_t>::value>

Definition at line 785 of file format.h.

◆ iterator_t

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

Definition at line 345 of file format.h.

◆ long_type

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

Definition at line 1120 of file core.h.

◆ make_index_sequence

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

Definition at line 138 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 1238 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_type>::value>

Definition at line 566 of file format.h.

◆ sentinel_t

template<typename T >
using sentinel_t = decltype(std::end(std::declval<T&>()))

Definition at line 346 of file format.h.

◆ uint32_or_64_or_128_t

template<typename T >
using uint32_or_64_or_128_t
Initial value:
uint32_t,
conditional_t<num_bits<T>() <= 64, uint64_t, uint128_t>>
typename std::conditional< B, T, F >::type conditional_t
Definition core.h:261
#define FMT_REDUCE_INT_INSTANTIATIONS
Definition format.h:174

Definition at line 810 of file format.h.

◆ uintptr_t

Definition at line 314 of file format.h.

◆ ulong_type

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

Definition at line 1121 of file core.h.

◆ value_type

template<typename Range >
using value_type = remove_cvref_t<decltype(*std::declval<Range>().begin())>

Definition at line 161 of file ranges.h.

◆ void_t

template<typename... Ts>
using void_t = typename detail::void_t_impl<Ts...>::type

Definition at line 1364 of file core.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
long_short 

Definition at line 1119 of file core.h.

◆ anonymous enum

anonymous enum
Enumerator
packed_arg_bits 

Definition at line 1242 of file core.h.

◆ anonymous enum

anonymous enum
Enumerator
max_packed_args 

Definition at line 1244 of file core.h.

◆ anonymous enum

anonymous enum : unsigned long long
Enumerator
is_unpacked_bit 

Definition at line 1245 of file core.h.

◆ anonymous enum

anonymous enum : unsigned long long
Enumerator
has_named_args_bit 

Definition at line 1246 of file core.h.

◆ arg_id_kind

enum class arg_id_kind
strong
Enumerator
none 
index 
name 

Definition at line 2611 of file format.h.

◆ char8_type

enum char8_type : unsigned char

Definition at line 340 of file core.h.

◆ float_format

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

Definition at line 1280 of file format.h.

◆ numeric_system

enum class numeric_system
strong
Enumerator
standard 
alternative 

Definition at line 465 of file chrono.h.

◆ round_direction

enum class round_direction
strong
Enumerator
unknown 
up 
down 

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

◆ type

enum class type
strong
Enumerator
none_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 977 of file core.h.

Function Documentation

◆ assert_fail()

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

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

◆ assume()

FMT_INLINE void assume ( bool condition)

Definition at line 336 of file format.h.

Referenced by to_string().

◆ base_iterator() [1/2]

template<typename Iterator >
Iterator base_iterator ( Iterator ,
Iterator it )

Definition at line 411 of file format.h.

◆ base_iterator() [2/2]

template<typename Container , FMT_ENABLE_IF(is_contiguous< Container >::value) >
std::back_insert_iterator< Container > base_iterator ( std::back_insert_iterator< Container > & it,
checked_ptr< typename Container::value_type >  )

Definition at line 404 of file format.h.

Referenced by write(), write(), write(), write_float(), write_padded(), and write_ptr().

◆ bit_cast()

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

◆ bsr2log10()

FMT_INLINE uint16_t bsr2log10 ( int bsr)

Definition at line 902 of file format.h.

References bsr2log10().

Referenced by bsr2log10().

◆ check() [1/2]

template<typename T , typename U >
const U & check ( const U & val)

Definition at line 1428 of file core.h.

◆ check() [2/2]

template<typename T >
int check ( unformattable )

Definition at line 1421 of file core.h.

Referenced by make_arg().

◆ check_format_string() [1/2]

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

Definition at line 520 of file core.h.

Referenced by check_format_string(), and make_args_checked().

◆ check_format_string() [2/2]

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

Definition at line 3223 of file format.h.

References check_format_string(), FMT_CONSTEXPR_DECL, and to_string_view().

◆ check_pointer_type_spec()

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

◆ check_string_type_spec()

◆ code_point_index() [1/2]

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

Definition at line 548 of file format.h.

References basic_string_view< Char >::size().

Referenced by write().

◆ code_point_index() [2/2]

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

◆ code_point_length()

template<typename Char >
FMT_CONSTEXPR int code_point_length ( const Char * begin)

Definition at line 2767 of file format.h.

References code_point_length(), and const_check().

Referenced by code_point_length(), parse_align(), and utf8_decode().

◆ compile() [1/2]

template<typename... Args, typename Char , size_t N>
auto compile ( const Char(&) format_str[N]) -> detail::compiled_format<const Char*, Args...>

Definition at line 589 of file compile.h.

◆ compile() [2/2]

template<typename... Args, typename S , FMT_ENABLE_IF(is_compile_string< S >::value) >
auto compile ( S format_str) -> detail::compiled_format<S, Args...>
constexpr

Definition at line 582 of file compile.h.

References to_string_view().

Referenced by compile(), format(), format_to(), and format_to_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 )

◆ compile_string_to_view() [1/2]

template<typename Char , size_t N>
FMT_CONSTEXPR basic_string_view< Char > compile_string_to_view ( const Char(&) s[N])

Definition at line 3181 of file format.h.

References compile_string_to_view().

Referenced by compile_string_to_view(), and compile_string_to_view().

◆ compile_string_to_view() [2/2]

template<typename Char >
FMT_CONSTEXPR basic_string_view< Char > compile_string_to_view ( const std_string_view< Char > & s)

Definition at line 3191 of file format.h.

References compile_string_to_view().

◆ compile_to_parts()

◆ const_check()

◆ constexpr_max()

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

Definition at line 317 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 73 of file ranges.h.

◆ copy() [2/3]

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

Definition at line 67 of file ranges.h.

◆ copy() [3/3]

◆ copy2() [1/2]

template<typename Char >
void copy2 ( Char * dst,
const char * src )

Definition at line 1034 of file format.h.

References copy2().

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

◆ copy2() [2/2]

FMT_INLINE void copy2 ( char * dst,
const char * src )

Definition at line 1038 of file format.h.

References copy2().

◆ copy_str() [1/2]

template<typename Char , typename InputIt >
counting_iterator copy_str ( InputIt begin,
InputIt end,
counting_iterator it )

Definition at line 585 of file format.h.

◆ copy_str() [2/2]

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 573 of file format.h.

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

◆ copy_unit() [1/2]

template<typename Char , typename OutputIt >
OutputIt copy_unit ( string_view unit,
OutputIt out,
Char  )

Definition at line 767 of file chrono.h.

References basic_string_view< Char >::begin(), and basic_string_view< Char >::end().

Referenced by format_duration_unit().

◆ copy_unit() [2/2]

template<typename OutputIt >
OutputIt copy_unit ( string_view unit,
OutputIt out,
wchar_t  )

Definition at line 772 of file chrono.h.

References utf8_to_utf16::c_str(), and utf8_to_utf16::size().

◆ count() [1/2]

template<bool B = false>
size_t count ( )
constexpr

◆ count() [2/2]

template<bool B1, bool B2, bool... Tail>
size_t count ( )
constexpr

Definition at line 969 of file core.h.

References count().

◆ count_code_points() [1/3]

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

◆ count_code_points() [2/3]

size_t count_code_points ( basic_string_view< char > s)

◆ count_code_points() [3/3]

size_t count_code_points ( basic_string_view< char8_type > s)

◆ count_digits() [1/2]

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

Definition at line 962 of file format.h.

References count_digits().

◆ count_digits() [2/2]

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

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

References count_digits(), and fallback_uintptr::value.

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

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

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

References count_digits(), and fallback_uintptr::value.

◆ count_named_args()

template<typename... Args>
size_t count_named_args ( )
constexpr

Definition at line 973 of file core.h.

◆ count_parts()

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

Definition at line 119 of file compile.h.

References part_counter< Char >::num_parts, and parse_format_string().

◆ decimal_point() [1/2]

template<typename Char >
Char decimal_point ( locale_ref loc)

◆ decimal_point() [2/2]

template<>
wchar_t decimal_point ( locale_ref loc)

Definition at line 1021 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 190 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 190 of file format-inl.h.

References locale_ref::get().

◆ digits10()

template<typename Int >
int digits10 ( )
constexpr

Definition at line 995 of file format.h.

References digits10().

Referenced by digits10(), and to_string().

◆ digits10< int128_t >()

template<>
int digits10< int128_t > ( )
constexpr

Definition at line 998 of file format.h.

◆ digits10< uint128_t >()

template<>
int digits10< uint128_t > ( )
constexpr

Definition at line 999 of file format.h.

◆ encode_types() [1/2]

template<typename >
unsigned long long encode_types ( )
constexpr

Definition at line 1405 of file core.h.

Referenced by encode_types().

◆ encode_types() [2/2]

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

Definition at line 1408 of file core.h.

References encode_types(), and packed_arg_bits.

◆ equal2() [1/2]

template<typename Char >
bool equal2 ( const Char * lhs,
const char * rhs )

Definition at line 1026 of file format.h.

References equal2().

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

◆ equal2() [2/2]

bool equal2 ( const char * lhs,
const char * rhs )

Definition at line 1029 of file format.h.

References equal2().

◆ exponent_mask()

template<typename T >
dragonbox::float_info< T >::carrier_uint exponent_mask ( )
constexpr

Definition at line 1273 of file format.h.

References exponent_mask().

Referenced by fp::assign(), exponent_mask(), and detail::dragonbox::to_decimal().

◆ fallback_format()

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

◆ fill()

template<typename OutputIt , typename Char >
FMT_NOINLINE OutputIt fill ( OutputIt it,
size_t n,
const fill_t< Char > & fill )

Definition at line 1483 of file format.h.

References fill().

Referenced by fill(), specs_setter< Char >::on_fill(), and write_padded().

◆ 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 2929 of file format.h.

References find(), and first().

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 2937 of file format.h.

References first(), and to_unsigned().

◆ first()

template<typename T , typename... Tail>
const T & first ( const T & value,
const Tail & ... )

Definition at line 40 of file compile.h.

Referenced by find(), find< false, char >(), and format().

◆ FMT_NOMACRO()

null localtime_r FMT_NOMACRO ( ...)

Definition at line 285 of file chrono.h.

◆ FMT_SUPPRESS_MSC_WARNING()

FMT_SUPPRESS_MSC_WARNING ( 4566 ) const

◆ FMT_TYPE_CONSTANT() [1/14]

FMT_TYPE_CONSTANT ( basic_string_view< Char > ,
string_type  )

◆ FMT_TYPE_CONSTANT() [2/14]

FMT_TYPE_CONSTANT ( bool ,
bool_type  )

◆ FMT_TYPE_CONSTANT() [3/14]

FMT_TYPE_CONSTANT ( Char ,
char_type  )

◆ FMT_TYPE_CONSTANT() [4/14]

FMT_TYPE_CONSTANT ( const Char * ,
cstring_type  )

◆ FMT_TYPE_CONSTANT() [5/14]

FMT_TYPE_CONSTANT ( const void * ,
pointer_type  )

◆ FMT_TYPE_CONSTANT() [6/14]

FMT_TYPE_CONSTANT ( double ,
double_type  )

◆ FMT_TYPE_CONSTANT() [7/14]

FMT_TYPE_CONSTANT ( float ,
float_type  )

◆ FMT_TYPE_CONSTANT() [8/14]

FMT_TYPE_CONSTANT ( int ,
int_type  )

◆ FMT_TYPE_CONSTANT() [9/14]

FMT_TYPE_CONSTANT ( int128_t ,
int128_type  )

◆ FMT_TYPE_CONSTANT() [10/14]

FMT_TYPE_CONSTANT ( long double ,
long_double_type  )

◆ FMT_TYPE_CONSTANT() [11/14]

FMT_TYPE_CONSTANT ( long long ,
long_long_type  )

◆ FMT_TYPE_CONSTANT() [12/14]

FMT_TYPE_CONSTANT ( uint128_t ,
uint128_type  )

◆ FMT_TYPE_CONSTANT() [13/14]

FMT_TYPE_CONSTANT ( unsigned long long ,
ulong_long_type  )

◆ FMT_TYPE_CONSTANT() [14/14]

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 155 of file ranges.h.

References for_each(), and get_indexes().

◆ format_arg()

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

Definition at line 195 of file compile.h.

References visit_format_arg().

Referenced by detail::cf::vformat_to().

◆ format_decimal() [1/2]

template<typename Char , typename UInt >
format_decimal_result< Char * > format_decimal ( Char * out,
UInt value,
int size )

◆ format_decimal() [2/2]

template<typename Char , typename UInt , typename Iterator , FMT_ENABLE_IF(!std::is_pointer< remove_cvref_t< Iterator > >::value) >
format_decimal_result< Iterator > format_decimal ( Iterator out,
UInt value,
int size )

Definition at line 1073 of file format.h.

References copy_str(), and format_decimal().

◆ format_duration_unit()

template<typename Char , typename Period , typename OutputIt >
OutputIt format_duration_unit ( OutputIt out)

◆ format_duration_value()

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

◆ format_error_code()

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

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

References count_digits(), format_to(), inline_buffer_size, is_negative(), and to_unsigned().

Referenced by format_system_error().

◆ format_float()

◆ format_str_quoted() [1/5]

◆ 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,
detail::fallback_uintptr n,
int num_digits,
bool = false )

Definition at line 1096 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 1082 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 1118 of file format.h.

References copy_str(), format_uint(), ptr(), and to_unsigned().

◆ format_value()

◆ 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()

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

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

References count(), FMT_THROW, and ptr().

Referenced by vprint().

◆ get_arg()

◆ get_buffer() [1/2]

template<typename T >
buffer< T > & get_buffer ( buffer_appender< T > )

◆ get_buffer() [2/2]

template<typename T , typename OutputIt >
iterator_buffer< OutputIt, T > get_buffer ( OutputIt )

Referenced by vformat_to(), vformat_to(), and vformat_to().

◆ get_buffer_init() [1/2]

template<typename T >
buffer< T > & get_buffer_init ( buffer_appender< T > out)

Definition at line 883 of file core.h.

References get_container().

◆ get_buffer_init() [2/2]

template<typename OutputIt >
OutputIt get_buffer_init ( OutputIt out)

Definition at line 880 of file core.h.

Referenced by vformat_to(), vformat_to(), and vformat_to().

◆ get_cached_power()

fp get_cached_power ( int min_exponent,
int & pow10_exponent )

◆ get_container()

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

◆ get_data() [1/2]

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

Definition at line 353 of file format.h.

◆ get_data() [2/2]

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

Definition at line 349 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 2550 of file format.h.

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

Referenced by get_dynamic_spec(), and handle_dynamic_spec().

◆ get_indexes()

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

Definition at line 150 of file ranges.h.

Referenced by for_each().

◆ get_iterator() [1/2]

template<typename Buffer >
auto get_iterator ( Buffer & buf) -> decltype(buf.out())

Definition at line 888 of file core.h.

Referenced by vformat_to(), vformat_to(), and vformat_to().

◆ get_iterator() [2/2]

template<typename T >
buffer_appender< T > get_iterator ( buffer< T > & buf)

Definition at line 891 of file core.h.

◆ 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 1481 of file format-inl.h.

References down, FMT_ASSERT, unknown, and up.

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

◆ get_significand_size() [1/2]

int get_significand_size ( const big_decimal_fp & fp)

Definition at line 1741 of file format.h.

References get_significand_size(), and fp::significand_size.

Referenced by get_significand_size(), get_significand_size(), and write_float().

◆ get_significand_size() [2/2]

template<typename T >
int get_significand_size ( const dragonbox::decimal_fp< T > & fp)

Definition at line 1745 of file format.h.

References count_digits(), and get_significand_size().

◆ get_units()

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

Definition at line 438 of file chrono.h.

Referenced by format_duration_unit().

◆ get_units< std::atto >()

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

Definition at line 441 of file chrono.h.

◆ get_units< std::centi >()

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

Definition at line 447 of file chrono.h.

◆ get_units< std::deca >()

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

Definition at line 450 of file chrono.h.

◆ get_units< std::deci >()

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

Definition at line 448 of file chrono.h.

◆ get_units< std::exa >()

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

Definition at line 457 of file chrono.h.

◆ get_units< std::femto >()

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

Definition at line 442 of file chrono.h.

◆ get_units< std::giga >()

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

Definition at line 454 of file chrono.h.

◆ get_units< std::hecto >()

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

Definition at line 451 of file chrono.h.

◆ get_units< std::kilo >()

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

Definition at line 452 of file chrono.h.

◆ get_units< std::mega >()

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

Definition at line 453 of file chrono.h.

◆ get_units< std::micro >()

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

Definition at line 445 of file chrono.h.

◆ get_units< std::milli >()

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

Definition at line 446 of file chrono.h.

◆ get_units< std::nano >()

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

Definition at line 444 of file chrono.h.

◆ get_units< std::peta >()

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

Definition at line 456 of file chrono.h.

◆ get_units< std::pico >()

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

Definition at line 443 of file chrono.h.

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

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

Definition at line 449 of file chrono.h.

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

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

Definition at line 461 of file chrono.h.

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

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

Definition at line 458 of file chrono.h.

◆ get_units< std::tera >()

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

Definition at line 455 of file chrono.h.

◆ gmtime_r()

null gmtime_r ( ...)

Definition at line 287 of file chrono.h.

◆ gmtime_s()

null gmtime_s ( ...)

Definition at line 288 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 1002 of file format.h.

References grouping().

Referenced by grouping().

◆ grouping< wchar_t >()

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

Definition at line 1005 of file format.h.

◆ grouping_impl() [1/2]

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

Definition at line 183 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 183 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()

◆ handle_int_type_spec()

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

◆ init_named_args() [1/4]

template<typename Char >
void init_named_args ( named_arg_info< Char > * ,
int ,
int  )

◆ init_named_args() [2/4]

template<typename Char , typename T , typename... Tail>
void init_named_args ( named_arg_info< Char > * named_args,
int arg_count,
int named_arg_count,
const named_arg< Char, T > & arg,
const Tail &... args )

Definition at line 953 of file core.h.

References arg(), init_named_args(), and named_arg_info< Char >::name.

◆ init_named_args() [3/4]

template<typename Char , typename T , typename... Tail>
void init_named_args ( named_arg_info< Char > * named_args,
int arg_count,
int named_arg_count,
const T & ,
const Tail &... args )

Definition at line 947 of file core.h.

References init_named_args().

◆ init_named_args() [4/4]

template<typename... Args>
FMT_INLINE void init_named_args ( std::nullptr_t ,
int ,
int ,
const Args & ... )

Definition at line 961 of file core.h.

◆ is_arithmetic_type()

bool is_arithmetic_type ( type t)
constexpr

◆ is_ascii_letter()

template<typename Char >
bool is_ascii_letter ( Char c)
constexpr

◆ is_big_endian()

bool is_big_endian ( )

Definition at line 289 of file format.h.

References bit_cast().

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 2342 of file format.h.

References is_name_start().

Referenced by is_name_start(), and parse_arg_id().

◆ is_negative()

◆ is_supported_floating_point()

template<typename T , FMT_ENABLE_IF(std::is_floating_point< T >::value) >
FMT_CONSTEXPR bool is_supported_floating_point ( T )

◆ is_unicode()

template<typename Char >
bool is_unicode ( )
constexpr

Definition at line 332 of file core.h.

References FMT_UNICODE.

Referenced by print(), and print().

◆ 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 286 of file chrono.h.

◆ make_arg() [1/3]

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

Definition at line 1437 of file core.h.

References check().

◆ make_arg() [2/3]

◆ make_arg() [3/3]

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

Definition at line 1443 of file core.h.

References make_arg().

◆ make_background_color()

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

Definition at line 437 of file color.h.

References basic_data< T >::background_color.

Referenced by vformat_to().

◆ make_checked()

template<typename T >
T * make_checked ( T * p,
size_t  )

◆ make_emphasis()

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

Definition at line 443 of file color.h.

Referenced by vformat_to().

◆ make_foreground_color()

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

Definition at line 431 of file color.h.

References basic_data< T >::foreground_color.

Referenced by vformat_to().

◆ max_value()

◆ mod()

◆ multiply()

uint64_t multiply ( uint64_t lhs,
uint64_t rhs )

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

Referenced by operator*().

◆ normalize()

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

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

References fp::double_significand_size, fp::implicit_bit, and fp::significand_size.

Referenced by format_float().

◆ num_bits()

template<typename T >
int num_bits ( )
constexpr

Definition at line 325 of file format.h.

◆ num_bits< fallback_uintptr >()

template<>
int num_bits< fallback_uintptr > ( )
constexpr

Definition at line 331 of file format.h.

◆ num_bits< int128_t >()

template<>
int num_bits< int128_t > ( )
constexpr

Definition at line 329 of file format.h.

◆ num_bits< uint128_t >()

template<>
int num_bits< uint128_t > ( )
constexpr

Definition at line 330 of file format.h.

◆ operator*()

fp operator* ( fp x,
fp y )

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

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

◆ operator<<() [1/5]

template<typename Char , typename Traits >
void_t operator<< ( std::basic_ostream< Char, Traits > & ,
Char  )

◆ operator<<() [2/5]

template<typename Char , typename Traits >
void_t operator<< ( std::basic_ostream< Char, Traits > & ,
char  )

◆ operator<<() [3/5]

template<typename Traits >
void_t operator<< ( std::basic_ostream< char, Traits > & ,
char  )

◆ operator<<() [4/5]

template<typename Traits >
void_t operator<< ( std::basic_ostream< char, Traits > & ,
signed char  )

◆ operator<<() [5/5]

template<typename Traits >
void_t operator<< ( std::basic_ostream< char, Traits > & ,
unsigned char  )

◆ operator==()

bool operator== ( fp x,
fp y )

Definition at line 1175 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 473 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 3036 of file format.h.

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

◆ parse_format_string()

template<bool IS_CONSTEXPR, typename Char , typename Handler >
FMT_CONSTEXPR_DECL FMT_INLINE 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 2349 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_replacement_field()

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

Definition at line 2959 of file format.h.

References parse_arg_id(), and parse_replacement_field().

Referenced by parse_format_string(), and parse_replacement_field().

◆ parse_width()

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

◆ promote_float() [1/2]

double promote_float ( float value)

Definition at line 1328 of file format.h.

References promote_float().

◆ promote_float() [2/2]

template<typename T >
T promote_float ( T value)

Definition at line 1327 of file format.h.

References promote_float().

Referenced by promote_float(), and promote_float().

◆ report_error()

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

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

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

Referenced by report_system_error().

◆ reserve() [1/3]

template<typename T >
buffer_appender< T > reserve ( buffer_appender< T > it,
size_t n )

Definition at line 381 of file format.h.

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

◆ reserve() [2/3]

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

Definition at line 387 of file format.h.

◆ reserve() [3/3]

◆ reset_color() [1/2]

template<typename Char >
void reset_color ( 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.

Referenced by vformat_to().

◆ 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()

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

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

References FMT_ASSERT, FMT_MAYBE_UNUSED, 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]

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

Definition at line 375 of file chrono.h.

References count(), and format().

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

◆ strftime() [2/2]

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

Definition at line 380 of file chrono.h.

References count(), and format().

◆ thousands_sep() [1/2]

template<typename Char >
Char thousands_sep ( locale_ref loc)

Definition at line 1010 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 1013 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 186 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 186 of file format-inl.h.

References locale_ref::get().

◆ to_ascii() [1/2]

template<typename Char , FMT_ENABLE_IF(std::is_integral< Char >::value) >
Char to_ascii ( Char value)
constexpr

Definition at line 2785 of file format.h.

References to_ascii().

Referenced by parse_align(), parse_format_specs(), and to_ascii().

◆ to_ascii() [2/2]

template<typename Char , FMT_ENABLE_IF(std::is_enum< Char >::value) >
std::underlying_type< Char >::type to_ascii ( Char value)
constexpr

Definition at line 2789 of file format.h.

References to_ascii().

◆ to_nonnegative_int()

◆ to_pointer() [1/2]

template<typename T >
T * to_pointer ( buffer_appender< T > it,
size_t n )

◆ to_pointer() [2/2]

template<typename T , typename OutputIt >
T * to_pointer ( OutputIt ,
size_t  )
constexpr

Definition at line 392 of file format.h.

◆ to_string_view()

void to_string_view ( ...)

◆ to_uintptr()

fallback_uintptr to_uintptr ( const void * p)

◆ to_unsigned()

◆ unwrap() [1/2]

template<typename T >
const T & unwrap ( const std::reference_wrapper< T > & v)

Definition at line 1452 of file core.h.

◆ unwrap() [2/2]

template<typename T >
const T & unwrap ( const T & v)

◆ utf8_decode()

const char * utf8_decode ( const char * buf,
uint32_t * c,
int * e )

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

References code_point_length().

Referenced by utf8_to_utf16::utf8_to_utf16().

◆ vformat() [1/3]

template<typename Char , FMT_ENABLE_IF(!std::is_same< Char, char >::value) >
std::basic_string< Char > vformat ( basic_string_view< Char > format_str,
basic_format_args< buffer_context< type_identity_t< Char > > > args )

Definition at line 3845 of file format.h.

References to_string(), and vformat_to().

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

◆ vformat() [2/3]

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

Definition at line 19 of file locale.h.

References vformat_to().

◆ vformat() [3/3]

◆ vformat_to() [1/2]

template<typename Char >
void vformat_to ( buffer< Char > & buf,
basic_string_view< Char > format_str,
basic_format_args< FMT_BUFFER_CONTEXT(type_identity_t< Char >)> args,
detail::locale_ref loc = {} )

◆ vformat_to() [2/2]

◆ vprint_mojibake() [1/2]

template<typename Char , typename Args , FMT_ENABLE_IF(!std::is_same< Char, char >::value) >
void vprint_mojibake ( std::FILE * ,
basic_string_view< Char > ,
const Args &  )

Definition at line 1967 of file core.h.

Referenced by print(), and print().

◆ vprint_mojibake() [2/2]

void vprint_mojibake ( std::FILE * ,
string_view ,
format_args  )

Definition at line 1971 of file core.h.

◆ vprintf()

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

Definition at line 182 of file printf.h.

References format().

Referenced by printf().

◆ write() [1/12]

template<typename Char >
buffer_appender< Char > write ( buffer_appender< Char > out,
basic_string_view< Char > value )

Definition at line 2027 of file format.h.

References get_container(), and write().

◆ write() [2/12]

template<typename Char , typename OutputIt >
OutputIt write ( OutputIt out,
basic_string_view< Char > value )

Definition at line 2020 of file format.h.

References base_iterator(), reserve(), and write().

◆ write() [3/12]

◆ write() [4/12]

template<typename Char , typename OutputIt >
OutputIt write ( OutputIt out,
bool value )

Definition at line 2056 of file format.h.

References write().

◆ write() [5/12]

template<typename Char , typename OutputIt >
OutputIt write ( OutputIt out,
Char value )

Definition at line 2061 of file format.h.

References base_iterator(), reserve(), and write().

◆ write() [6/12]

template<typename Char , typename OutputIt >
OutputIt write ( OutputIt out,
const Char * value )

Definition at line 2068 of file format.h.

References FMT_THROW, and write().

◆ write() [7/12]

template<typename Char , typename OutputIt , typename T >
auto write ( OutputIt out,
const T & value ) -> typename std::enable_if< mapped_type_constant<T, basic_format_context<OutputIt, Char>>::value == type::custom_type, OutputIt>::type

Definition at line 2084 of file format.h.

References write().

◆ write() [8/12]

template<typename Char , typename OutputIt >
OutputIt write ( OutputIt out,
const void * value )

Definition at line 2079 of file format.h.

References to_uintptr(), and write().

◆ write() [9/12]

template<typename Char , typename OutputIt >
OutputIt write ( OutputIt out,
monostate  )

Definition at line 2006 of file format.h.

References FMT_ASSERT, and write().

◆ write() [10/12]

template<typename Char , typename OutputIt , FMT_ENABLE_IF(!std::is_same< Char, char >::value) >
OutputIt write ( OutputIt out,
string_view value )

Definition at line 2013 of file format.h.

References base_iterator(), reserve(), and write().

◆ write() [11/12]

template<typename Char , typename OutputIt , typename T , FMT_ENABLE_IF(is_fast_float< T >::value) >
OutputIt write ( OutputIt out,
T value )

◆ write() [12/12]

template<typename Char , typename OutputIt , typename T , FMT_ENABLE_IF(std::is_floating_point< T >::value) >
OutputIt write ( OutputIt out,
T value,
basic_format_specs< Char > specs,
locale_ref loc = {} )

Definition at line 1898 of file format.h.

References write().

◆ write_buffer()

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

Definition at line 93 of file ostream.h.

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

Referenced by vfprintf(), and vprint().

◆ write_bytes()

template<typename Char , typename OutputIt >
OutputIt write_bytes ( OutputIt out,
string_view bytes,
const basic_format_specs< Char > & specs )

Definition at line 1520 of file format.h.

References reserve(), write_bytes(), and write_padded().

Referenced by formatter< bytes >::format(), and write_bytes().

◆ write_char()

template<typename Char , typename OutputIt >
OutputIt write_char ( OutputIt out,
Char value,
const basic_format_specs< Char > & specs )

◆ write_exponent()

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

Definition at line 1299 of file format.h.

References exp, FMT_ASSERT, and write_exponent().

Referenced by write_exponent().

◆ write_float()

template<typename OutputIt , typename DecimalFP , typename Char >
OutputIt write_float ( OutputIt out,
const DecimalFP & fp,
const basic_format_specs< Char > & specs,
float_specs fspecs,
Char decimal_point )

◆ write_int()

template<typename OutputIt , typename Char , typename F >
OutputIt write_int ( OutputIt out,
int num_digits,
string_view prefix,
const basic_format_specs< Char > & specs,
F f )

◆ write_nonfinite()

template<typename Char , typename OutputIt >
OutputIt write_nonfinite ( OutputIt out,
bool isinf,
const basic_format_specs< Char > & specs,
const float_specs & fspecs )

Definition at line 1719 of file format.h.

References reserve(), float_specs::sign, float_specs::upper, write_nonfinite(), and write_padded().

Referenced by write(), and write_nonfinite().

◆ write_padded() [1/2]

template<align::type align = align::left, typename OutputIt , typename Char , typename F >
OutputIt write_padded ( OutputIt out,
const basic_format_specs< Char > & specs,
size_t size,
F && f )

Definition at line 1513 of file format.h.

References write_padded().

◆ write_padded() [2/2]

template<align::type align = align::left, typename OutputIt , typename Char , typename F >
OutputIt write_padded ( OutputIt out,
const basic_format_specs< Char > & specs,
size_t size,
size_t width,
F && f )

◆ write_ptr()

template<typename Char , typename OutputIt , typename UIntPtr >
OutputIt write_ptr ( OutputIt out,
UIntPtr value,
const basic_format_specs< Char > * specs )

Definition at line 1987 of file format.h.

References base_iterator(), reserve(), to_unsigned(), write(), and write_ptr().

Referenced by write_ptr().

◆ write_significand() [1/5]

template<typename Char , typename UInt , FMT_ENABLE_IF(std::is_integral< UInt >::value) >
Char * write_significand ( Char * out,
UInt significand,
int significand_size,
int integral_size,
Char decimal_point )

Definition at line 1762 of file format.h.

References decimal_point(), format_decimal(), and write_significand().

◆ write_significand() [2/5]

template<typename Char , typename OutputIt >
OutputIt write_significand ( OutputIt out,
const char * significand,
int & significand_size )

◆ write_significand() [3/5]

template<typename OutputIt , typename Char >
OutputIt write_significand ( OutputIt out,
const char * significand,
int significand_size,
int integral_size,
Char decimal_point )

Definition at line 1789 of file format.h.

References copy_str(), decimal_point(), and write_significand().

◆ write_significand() [4/5]

template<typename Char , typename OutputIt , typename UInt >
OutputIt write_significand ( OutputIt out,
UInt significand,
int significand_size )

Definition at line 1755 of file format.h.

References write_significand().

◆ write_significand() [5/5]

template<typename OutputIt , typename UInt , typename Char , FMT_ENABLE_IF(!std::is_pointer< remove_cvref_t< OutputIt > >::value) >
OutputIt write_significand ( OutputIt out,
UInt significand,
int significand_size,
int integral_size,
Char decimal_point )

Definition at line 1778 of file format.h.

References copy_str(), decimal_point(), and write_significand().

Variable Documentation

◆ basic_data< void >

FMT_EXTERN template struct basic_data< void >

Definition at line 912 of file format.h.