Namespaces | |
cf | |
digits | |
Typedefs | |
template<typename T , typename Context > | |
using | has_fallback_formatter = std::is_constructible< fallback_formatter< T, typename Context::char_type > > |
using | long_type = conditional_t< long_short, int, long long > |
using | ulong_type = conditional_t< long_short, unsigned, unsigned long long > |
template<typename T , typename Context > | |
using | mapped_type_constant = type_constant< decltype(arg_mapper< Context >().map(std::declval< const T & >())), typename Context::char_type > |
template<bool... Args> | |
using | all_true = std::is_same< bool_pack< Args..., true >, bool_pack< true, Args... > > |
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 = bool_constant< std::is_same< typename std::iterator_traits< InputIt >::value_type, char >::value &&std::is_same< OutChar, char8_t >::value > |
template<typename T > | |
using | uint32_or_64_or_128_t = conditional_t< std::numeric_limits< T >::digits<=32, uint32_t, conditional_t< std::numeric_limits< T >::digits<=64, uint64_t, uint128_t > > |
using | writer = basic_writer< buffer_range< char > > |
template<typename T > | |
using | is_integer = 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 > |
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 | 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 | float_format : unsigned char { general, exp, fixed, hex } |
enum | 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) > | |
T | mod (T x, int y) |
template<typename To , typename FromRep , typename FromPeriod > | |
To | fmt_safe_duration_cast (std::chrono::duration< FromRep, FromPeriod > from) |
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 > | |
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 > | |
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 > |
using checked_ptr = T* |
using format_func = void (*)(internal::buffer<char>&, int, string_view) |
Definition at line 76 of file format-inl.h.
using has_fallback_formatter = std::is_constructible<fallback_formatter<T, typename Context::char_type> > |
using index_sequence = integer_sequence<std::size_t, N...> |
using is_integer = 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> |
using iterator_t = decltype(std::begin(std::declval<T&>())) |
using long_type = conditional_t<long_short, int, long long> |
using make_index_sequence = make_integer_sequence<std::size_t, N> |
using mapped_type_constant = type_constant<decltype(arg_mapper<Context>().map(std::declval<const T&>())), typename Context::char_type> |
using needs_conversion = bool_constant< std::is_same<typename std::iterator_traits<InputIt>::value_type, char>::value && std::is_same<OutChar, char8_t>::value> |
using uint32_or_64_or_128_t = conditional_t< std::numeric_limits<T>::digits <= 32, uint32_t, conditional_t<std::numeric_limits<T>::digits <= 64, uint64_t, uint128_t> > |
using uintptr_t = fallback_uintptr |
using ulong_type = conditional_t<long_short, unsigned, unsigned long long> |
using writer = basic_writer<buffer_range<char> > |
anonymous enum : unsigned long long |
|
strong |
|
strong |
|
strong |
enum round_direction |
Enumerator | |
---|---|
unknown | |
up | |
down |
Definition at line 750 of file format-inl.h.
enum type |
FMT_FUNC void assert_fail | ( | const char * | file, |
int | line, | ||
const char * | message | ||
) |
Definition at line 58 of file format-inl.h.
References print().
Dest internal::bit_cast | ( | const Source & | source | ) |
Definition at line 214 of file format.h.
Referenced by fp::assign(), fallback_uintptr::fallback_uintptr(), and is_big_endian().
void internal::check_format_string | ( | const S & | ) |
Definition at line 1369 of file core.h.
References check_format_string(), and FMT_ENABLE_IF.
Referenced by format_to(), format_to_n(), and print().
void check_format_string | ( | S | format_str | ) |
Definition at line 2626 of file format.h.
References char_type, do_check_format_string(), FMT_CONSTEXPR_DECL, and to_string_view().
Referenced by check_format_string().
FMT_CONSTEXPR void internal::check_pointer_type_spec | ( | Char | spec, |
ErrorHandler && | eh | ||
) |
Definition at line 1300 of file format.h.
Referenced by arg_formatter_base< Range >::operator()(), and formatter< T, Char, enable_if_t< internal::type_constant< T, Char >::value !=internal::custom_type > >::parse().
FMT_CONSTEXPR void internal::check_string_type_spec | ( | Char | spec, |
ErrorHandler && | eh | ||
) |
Definition at line 1295 of file format.h.
Referenced by arg_formatter_base< Range >::operator()(), and formatter< T, Char, enable_if_t< internal::type_constant< T, Char >::value !=internal::custom_type > >::parse().
size_t internal::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().
Referenced by basic_writer< Range >::write().
size_t internal::code_point_index | ( | basic_string_view< char8_t > | s, |
size_t | n | ||
) |
Definition at line 485 of file format.h.
References basic_string_view< Char >::data(), and basic_string_view< Char >::size().
FMT_CONSTEXPR void internal::compile_format_string | ( | basic_string_view< Char > | format_str, |
PartHandler | handler | ||
) |
Definition at line 155 of file compile.h.
Referenced by compiled_format< S, Args >::compiled_format().
FMT_CONSTEXPR format_part_array<Char, N> internal::compile_to_parts | ( | basic_string_view< Char > | format_str | ) |
Definition at line 262 of file compile.h.
References format_part_array< Char, N >::data, FMT_CONSTEXPR, and format_part< Char >::make_text().
T internal::const_check | ( | T | value | ) |
Definition at line 208 of file format.h.
Referenced by arg_converter< T, Context >::operator()(), and basic_writer< Range >::write().
constexpr const T& internal::constexpr_max | ( | const T & | a, |
const T & | b | ||
) |
Definition at line 282 of file compile.h.
Referenced by compiled_format_base< S, enable_if_t< is_compile_string< S >::value > >::compiled_format_base().
void internal::convert_arg | ( | basic_format_arg< Context > & | arg, |
Char | type | ||
) |
Definition at line 122 of file printf.h.
References visit_format_arg().
Referenced by basic_printf_context< OutputIt, Char >::format().
OutputIterator internal::copy | ( | const RangeT & | range, |
OutputIterator | out | ||
) |
Definition at line 58 of file ranges.h.
Referenced by bigint::assign(), compiled_format< S, Args >::compiled_format(), copy_str(), DataHashTable< soplex::NameSet::Name, soplex::DataKey >::DataHashTable(), formatter< TupleT, Char, enable_if_t< fmt::is_tuple_like< TupleT >::value > >::format(), formatter< RangeT, Char, enable_if_t< fmt::is_range< RangeT, Char >::value > >::format(), basic_printf_context< OutputIt, Char >::format(), formatter< std::tm, Char >::format(), formatter< arg_join< It, Char >, Char >::format(), chrono_formatter< FormatContext, OutputIt, Rep, Period >::format_localized(), chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_text(), formatter< TupleT, Char, enable_if_t< fmt::is_tuple_like< TupleT >::value > >::format_each< FormatContext >::operator()(), DataHashTable< soplex::NameSet::Name, soplex::DataKey >::operator=(), and basic_writer< Range >::write().
OutputIterator internal::copy | ( | const char * | str, |
OutputIterator | out | ||
) |
OutputIterator internal::copy | ( | char | ch, |
OutputIterator | out | ||
) |
Definition at line 71 of file ranges.h.
Referenced by formatter< tuple_arg_join< Char, T... >, Char >::format_args().
OutputIt copy_str | ( | InputIt | begin, |
InputIt | end, | ||
OutputIt | it | ||
) |
Definition at line 506 of file format.h.
References copy(), FMT_ENABLE_IF, and to_char8_t().
size_t internal::count_code_points | ( | basic_string_view< Char > | s | ) |
Definition at line 464 of file format.h.
References basic_string_view< Char >::size().
Referenced by basic_writer< Range >::str_writer< Char >::width().
size_t internal::count_code_points | ( | basic_string_view< char8_t > | s | ) |
Definition at line 469 of file format.h.
References basic_string_view< Char >::data(), and basic_string_view< Char >::size().
int internal::count_digits | ( | uint64_t | n | ) |
Definition at line 755 of file format.h.
Referenced by format_error_code(), grisu_gen_digits(), basic_writer< Range >::int_writer< Int, Specs >::on_dec(), basic_writer< Range >::int_writer< Int, Specs >::on_num(), chrono_formatter< FormatContext, OutputIt, Rep, Period >::write(), and basic_writer< Range >::write_decimal().
int internal::count_digits | ( | UInt | n | ) |
Definition at line 789 of file format.h.
References count_digits< 4 >().
FMT_FUNC int internal::count_digits< 4 > | ( | internal::fallback_uintptr | n | ) |
Definition at line 244 of file format-inl.h.
Referenced by count_digits(), basic_writer< Range >::int_writer< Int, Specs >::on_hex(), and basic_writer< Range >::write_pointer().
int internal::count_digits< 4 > | ( | internal::fallback_uintptr | n | ) |
Definition at line 244 of file format-inl.h.
Referenced by count_digits(), basic_writer< Range >::int_writer< Int, Specs >::on_hex(), and basic_writer< Range >::write_pointer().
FMT_CONSTEXPR unsigned internal::count_parts | ( | basic_string_view< Char > | format_str | ) |
Definition at line 90 of file compile.h.
References part_counter< Char >::num_parts.
Referenced by compiled_format_base< S, enable_if_t< is_compile_string< S >::value > >::compiled_format_base().
Char internal::decimal_point | ( | locale_ref | loc | ) |
wchar_t internal::decimal_point | ( | locale_ref | loc | ) |
FMT_FUNC Char internal::decimal_point_impl | ( | locale_ref | loc | ) |
Definition at line 210 of file format-inl.h.
References decimal_point_impl(), FMT_API, FMT_FUNC, FMT_NOEXCEPT, locale_ref::get(), grouping_impl(), thousands_sep_impl(), format_error::~format_error(), and system_error::~system_error().
Referenced by decimal_point_impl(), and thousands_sep().
FMT_API Char internal::decimal_point_impl | ( | locale_ref | loc | ) |
Definition at line 210 of file format-inl.h.
References decimal_point_impl(), FMT_API, FMT_FUNC, FMT_NOEXCEPT, locale_ref::get(), grouping_impl(), thousands_sep_impl(), format_error::~format_error(), and system_error::~system_error().
Referenced by decimal_point_impl(), and thousands_sep().
|
noexcept |
|
noexcept |
FMT_CONSTEXPR bool internal::do_check_format_string | ( | basic_string_view< Char > | s, |
ErrorHandler | eh = ErrorHandler() |
||
) |
Definition at line 2617 of file format.h.
Referenced by check_format_string().
constexpr unsigned long long internal::encode_types | ( | ) |
Definition at line 1108 of file core.h.
References packed_arg_bits.
void internal::fallback_format | ( | Double | d, |
buffer< char > & | buf, | ||
int & | exp10 | ||
) |
Definition at line 964 of file format-inl.h.
References fp::assign(), bigint::assign(), bigint::assign_pow10(), buffer< T >::data(), bigint::divmod_assign(), fp::e, fp::f, and buffer< T >::resize().
Referenced by format_float().
FMT_CONSTEXPR bool internal::find | ( | Ptr | first, |
Ptr | last, | ||
T | value, | ||
Ptr & | out | ||
) |
Definition at line 2471 of file format.h.
Referenced by IsList< soplex::SVSetBase::DLPSV >::insert(), IdList< soplex::SVSetBase::DLPSV >::insert(), IsList< soplex::SVSetBase::DLPSV >::isConsistent(), IsList< soplex::SVSetBase::DLPSV >::IsList(), IsList< soplex::SVSetBase::DLPSV >::remove(), IdList< soplex::SVSetBase::DLPSV >::remove(), IsList< soplex::SVSetBase::DLPSV >::remove_next(), and IsList< soplex::SVSetBase::DLPSV >::sublist().
bool internal::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().
To internal::fmt_safe_duration_cast | ( | std::chrono::duration< FromRep, FromPeriod > | from | ) |
Definition at line 720 of file chrono.h.
References FMT_ENABLE_IF, FMT_THROW, and safe_duration_cast::safe_duration_cast().
Referenced by chrono_formatter< FormatContext, OutputIt, Rep, Period >::chrono_formatter(), get_milliseconds(), and chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_second().
internal::FMT_TYPE_CONSTANT | ( | const named_arg_base< Char > & | , |
named_arg_type | |||
) |
internal::FMT_TYPE_CONSTANT | ( | int | , |
int_type | |||
) |
internal::FMT_TYPE_CONSTANT | ( | unsigned | , |
uint_type | |||
) |
internal::FMT_TYPE_CONSTANT | ( | long | long, |
long_long_type | |||
) |
internal::FMT_TYPE_CONSTANT | ( | unsigned long | long, |
ulong_long_type | |||
) |
internal::FMT_TYPE_CONSTANT | ( | int128_t | , |
int128_type | |||
) |
internal::FMT_TYPE_CONSTANT | ( | uint128_t | , |
uint128_type | |||
) |
internal::FMT_TYPE_CONSTANT | ( | bool | , |
bool_type | |||
) |
internal::FMT_TYPE_CONSTANT | ( | Char | , |
char_type | |||
) |
internal::FMT_TYPE_CONSTANT | ( | float | , |
float_type | |||
) |
internal::FMT_TYPE_CONSTANT | ( | double | , |
double_type | |||
) |
internal::FMT_TYPE_CONSTANT | ( | long | double, |
long_double_type | |||
) |
internal::FMT_TYPE_CONSTANT | ( | const Char * | , |
cstring_type | |||
) |
internal::FMT_TYPE_CONSTANT | ( | basic_string_view< Char > | , |
string_type | |||
) |
internal::FMT_TYPE_CONSTANT | ( | const void * | , |
pointer_type | |||
) |
void internal::for_each | ( | index_sequence< Is... > | , |
Tuple && | tup, | ||
F && | f | ||
) |
Definition at line 145 of file ranges.h.
Referenced by formatter< TupleT, Char, enable_if_t< fmt::is_tuple_like< TupleT >::value > >::format().
void internal::for_each | ( | Tuple && | tup, |
F && | f | ||
) |
Definition at line 158 of file ranges.h.
References FMT_ENABLE_IF, and get_indexes().
void internal::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().
|
static |
Definition at line 770 of file chrono.h.
References format_to().
OutputIt internal::format_chrono_duration_value | ( | OutputIt | out, |
Rep | val, | ||
int | precision | ||
) |
Definition at line 763 of file chrono.h.
References format_to().
Referenced by formatter< std::chrono::duration< Rep, Period >, Char >::format(), and chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_duration_value().
Char* internal::format_decimal | ( | Char * | buffer, |
UInt | value, | ||
int | num_digits, | ||
F | add_thousands_sep | ||
) |
Definition at line 841 of file format.h.
References basic_data<>::digits, FMT_ASSERT, and index.
Referenced by format_decimal(), and format_int::format_signed().
Iterator internal::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().
It internal::format_decimal | ( | It | out, |
UInt | value, | ||
int | num_digits | ||
) |
FMT_FUNC void internal::format_error_code | ( | internal::buffer< char > & | out, |
int | error_code, | ||
string_view | message | ||
) |
Definition at line 145 of file format-inl.h.
References count_digits(), inline_buffer_size, is_negative(), to_unsigned(), and basic_writer< Range >::write().
Referenced by formatter< internal::bigint >::format(), and format_system_error().
int format_float | ( | T | value, |
int | precision, | ||
float_specs | specs, | ||
buffer< char > & | buf | ||
) |
Definition at line 1045 of file format-inl.h.
References fp::assign_float_with_boundaries(), fp::assign_with_boundaries(), float_specs::binary32, buffer< T >::data(), fp::e, internal::digits::error, exp, fp::f, fallback_format(), fixed, FMT_ASSERT, float_specs::format, get_cached_power(), grisu_gen_digits(), boundaries::lower, multiply(), normalize(), buffer< T >::push_back(), buffer< T >::resize(), fp::significand_size, snprintf_float(), to_unsigned(), boundaries::upper, and float_specs::use_grisu.
Referenced by float_writer< Char >::operator()(), and basic_writer< Range >::write().
FMT_CONSTEXPR const char * format_str_quoted | ( | bool | add_space, |
const Arg & | |||
) |
Definition at line 165 of file ranges.h.
References FMT_CONSTEXPR, FMT_ENABLE_IF, and format_str_quoted().
Referenced by formatter< RangeT, Char, enable_if_t< fmt::is_range< RangeT, Char >::value > >::format(), and formatter< TupleT, Char, enable_if_t< fmt::is_tuple_like< TupleT >::value > >::format_each< FormatContext >::operator()().
FMT_CONSTEXPR const char* internal::format_str_quoted | ( | bool | add_space, |
const char * | |||
) |
FMT_CONSTEXPR const wchar_t* internal::format_str_quoted | ( | bool | add_space, |
const wchar_t * | |||
) |
FMT_CONSTEXPR const char* internal::format_str_quoted | ( | bool | add_space, |
const char | |||
) |
FMT_CONSTEXPR const wchar_t* internal::format_str_quoted | ( | bool | add_space, |
const wchar_t | |||
) |
Definition at line 185 of file ranges.h.
Referenced by format_str_quoted().
Char* internal::format_uint | ( | Char * | buffer, |
UInt | value, | ||
int | num_digits, | ||
bool | upper = false |
||
) |
Definition at line 891 of file format.h.
References basic_data<>::hex_digits.
Char* internal::format_uint | ( | Char * | buffer, |
internal::fallback_uintptr | n, | ||
int | num_digits, | ||
bool | = false |
||
) |
Definition at line 905 of file format.h.
References basic_data<>::hex_digits, and fallback_uintptr::value.
It internal::format_uint | ( | It | out, |
UInt | value, | ||
int | num_digits, | ||
bool | upper = false |
||
) |
void internal::format_value | ( | buffer< Char > & | buf, |
const T & | value, | ||
locale_ref | loc = locale_ref() |
||
) |
Definition at line 92 of file ostream.h.
References buffer< T >::resize(), and buffer< T >::size().
Referenced by fallback_formatter< T, Char, enable_if_t< is_streamable< T, Char >::value > >::format(), and printf_formatter< T >::format().
void internal::fputs | ( | const Char * | chars, |
FILE * | stream | ||
) |
Definition at line 448 of file color.h.
Referenced by reset_color(), reset_color< wchar_t >(), and vprint().
void internal::fputs< wchar_t > | ( | const wchar_t * | chars, |
FILE * | stream | ||
) |
FMT_FUNC void internal::fwrite_fully | ( | const void * | ptr, |
size_t | size, | ||
size_t | count, | ||
FILE * | stream | ||
) |
FMT_CONSTEXPR Context::format_arg internal::get_arg | ( | Context & | ctx, |
int | id | ||
) |
Definition at line 2136 of file format.h.
References arg().
Referenced by basic_printf_context< OutputIt, Char >::format(), basic_printf_context< OutputIt, Char >::get_arg(), specs_handler< ParseContext, Context >::get_arg(), format_handler< ArgFormatter, Char, Context >::get_arg(), format_handler< ArgFormatter, Char, Context >::on_arg_id(), specs_handler< ParseContext, Context >::on_dynamic_precision(), specs_handler< ParseContext, Context >::on_dynamic_width(), and basic_printf_context< OutputIt, Char >::parse_header().
Definition at line 480 of file format-inl.h.
References index, basic_data<>::pow10_exponents, basic_data<>::pow10_significands, and fp::significand_size.
Referenced by format_float().
Container& internal::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().
Char* internal::get_data | ( | std::basic_string< Char > & | s | ) |
Container::value_type* internal::get_data | ( | Container & | c | ) |
Definition at line 307 of file format.h.
References make_checked().
FMT_CONSTEXPR int internal::get_dynamic_spec | ( | FormatArg | arg, |
ErrorHandler | eh | ||
) |
Definition at line 2127 of file format.h.
References to_unsigned(), and visit_format_arg().
FMT_CONSTEXPR make_index_sequence<std::tuple_size<T>::value> internal::get_indexes | ( | T const & | ) |
Definition at line 153 of file ranges.h.
Referenced by for_each().
std::chrono::duration< Rep, std::milli > get_milliseconds | ( | std::chrono::duration< Rep, Period > | d | ) |
Definition at line 730 of file chrono.h.
References FMT_ENABLE_IF, fmt_safe_duration_cast(), and mod().
Referenced by chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_second().
round_direction internal::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().
FMT_CONSTEXPR const char* internal::get_units | ( | ) |
FMT_CONSTEXPR const char* internal::get_units< std::atto > | ( | ) |
FMT_CONSTEXPR const char* internal::get_units< std::centi > | ( | ) |
FMT_CONSTEXPR const char* internal::get_units< std::deca > | ( | ) |
FMT_CONSTEXPR const char* internal::get_units< std::deci > | ( | ) |
FMT_CONSTEXPR const char* internal::get_units< std::exa > | ( | ) |
FMT_CONSTEXPR const char* internal::get_units< std::femto > | ( | ) |
FMT_CONSTEXPR const char* internal::get_units< std::giga > | ( | ) |
FMT_CONSTEXPR const char* internal::get_units< std::hecto > | ( | ) |
FMT_CONSTEXPR const char* internal::get_units< std::kilo > | ( | ) |
FMT_CONSTEXPR const char* internal::get_units< std::mega > | ( | ) |
FMT_CONSTEXPR const char* internal::get_units< std::micro > | ( | ) |
FMT_CONSTEXPR const char* internal::get_units< std::milli > | ( | ) |
FMT_CONSTEXPR const char* internal::get_units< std::nano > | ( | ) |
FMT_CONSTEXPR const char* internal::get_units< std::peta > | ( | ) |
FMT_CONSTEXPR const char* internal::get_units< std::pico > | ( | ) |
FMT_CONSTEXPR const char* internal::get_units< std::ratio< 1 > > | ( | ) |
FMT_CONSTEXPR const char* internal::get_units< std::ratio< 3600 > > | ( | ) |
FMT_CONSTEXPR const char* internal::get_units< std::ratio< 60 > > | ( | ) |
FMT_CONSTEXPR const char* internal::get_units< std::tera > | ( | ) |
FMT_ALWAYS_INLINE digits::result internal::grisu_gen_digits | ( | fp | value, |
uint64_t | error, | ||
int & | exp, | ||
Handler & | handler | ||
) |
Definition at line 784 of file format-inl.h.
References count_digits(), fp::e, exp, fp::f, FMT_ASSERT, internal::digits::more, and basic_data<>::powers_of_10_64.
Referenced by format_float().
std::string internal::grouping | ( | locale_ref | loc | ) |
std::string internal::grouping< wchar_t > | ( | locale_ref | loc | ) |
Definition at line 817 of file format.h.
References FMT_API, and thousands_sep_impl().
FMT_FUNC std::string internal::grouping_impl | ( | locale_ref | loc | ) |
Definition at line 203 of file format-inl.h.
References locale_ref::get().
Referenced by decimal_point_impl().
FMT_API std::string internal::grouping_impl | ( | locale_ref | loc | ) |
Definition at line 203 of file format-inl.h.
References locale_ref::get().
Referenced by decimal_point_impl().
FMT_CONSTEXPR void internal::handle_char_specs | ( | const basic_format_specs< Char > * | specs, |
Handler && | handler | ||
) |
Definition at line 1275 of file format.h.
References basic_format_specs< Char >::align, basic_format_specs< Char >::alt, none, align::numeric, basic_format_specs< Char >::sign, and basic_format_specs< Char >::type.
Referenced by arg_formatter_base< Range >::operator()(), and formatter< T, Char, enable_if_t< internal::type_constant< T, Char >::value !=internal::custom_type > >::parse().
FMT_CONSTEXPR void internal::handle_cstring_type_spec | ( | Char | spec, |
Handler && | handler | ||
) |
Definition at line 1285 of file format.h.
Referenced by arg_formatter_base< Range >::operator()(), and formatter< T, Char, enable_if_t< internal::type_constant< T, Char >::value !=internal::custom_type > >::parse().
void internal::handle_dynamic_spec | ( | int & | value, |
arg_ref< typename Context::char_type > | ref, | ||
Context & | ctx | ||
) |
Definition at line 2635 of file format.h.
References index, arg_ref< Char >::value::index, arg_ref< Char >::kind, name, arg_ref< Char >::value::name, none, and arg_ref< Char >::val.
FMT_CONSTEXPR void internal::handle_int_type_spec | ( | char | spec, |
Handler && | handler | ||
) |
Definition at line 1197 of file format.h.
Referenced by char_specs_checker< ErrorHandler >::on_int(), formatter< T, Char, enable_if_t< internal::type_constant< T, Char >::value !=internal::custom_type > >::parse(), and basic_writer< Range >::write_int().
FMT_CONSTEXPR bool internal::is_arithmetic_type | ( | type | t | ) |
Definition at line 740 of file core.h.
References FMT_ASSERT, last_numeric_type, named_arg_type, and none_type.
Referenced by basic_format_arg< Context >::is_arithmetic(), and numeric_specs_checker< Handler >::require_numeric_argument().
bool internal::is_big_endian | ( | ) |
Definition at line 221 of file format.h.
References bit_cast().
Referenced by fallback_uintptr::fallback_uintptr().
FMT_CONSTEXPR bool internal::is_integral_type | ( | type | t | ) |
Definition at line 735 of file core.h.
References FMT_ASSERT, last_integer_type, named_arg_type, and none_type.
Referenced by numeric_specs_checker< Handler >::check_precision(), numeric_specs_checker< Handler >::check_sign(), and basic_format_arg< Context >::is_integral().
FMT_CONSTEXPR bool internal::is_name_start | ( | Char | c | ) |
Definition at line 1919 of file format.h.
Referenced by parse_arg_id().
FMT_CONSTEXPR bool is_negative | ( | T | value | ) |
Definition at line 708 of file format.h.
References FMT_CONSTEXPR.
Referenced by format_error_code(), basic_writer< Range >::int_writer< Int, Specs >::int_writer(), safe_duration_cast::lossless_integral_conversion(), printf_width_handler< Char >::operator()(), width_checker< ErrorHandler >::operator()(), precision_checker< ErrorHandler >::operator()(), and basic_writer< Range >::write_decimal().
bool isfinite | ( | T | value | ) |
Definition at line 673 of file chrono.h.
Referenced by chrono_formatter< FormatContext, OutputIt, Rep, Period >::handle_nan_inf(), safe_duration_cast::safe_float_conversion(), and basic_writer< Range >::write().
bool isnan | ( | T | value | ) |
Definition at line 664 of file chrono.h.
Referenced by chrono_formatter< FormatContext, OutputIt, Rep, Period >::format_localized(), chrono_formatter< FormatContext, OutputIt, Rep, Period >::handle_nan_inf(), safe_duration_cast::safe_duration_cast(), to_nonnegative_int(), and chrono_formatter< FormatContext, OutputIt, Rep, Period >::write().
null internal::localtime_s | ( | ... | ) |
Definition at line 311 of file chrono.h.
Referenced by localtime().
FMT_CONSTEXPR basic_format_arg< Context > make_arg | ( | const T & | value | ) |
Definition at line 1114 of file core.h.
References arg(), FMT_ENABLE_IF, basic_format_arg< Context >::type_, and basic_format_arg< Context >::value_.
value<Context> internal::make_arg | ( | const T & | val | ) |
Definition at line 1123 of file core.h.
References FMT_ENABLE_IF.
basic_format_arg<Context> internal::make_arg | ( | const T & | value | ) |
Definition at line 1129 of file core.h.
Referenced by value< basic_format_context >::format_custom_arg().
format_arg_store<buffer_context<Char>, remove_reference_t<Args>...> internal::make_args_checked | ( | const S & | format_str, |
const remove_reference_t< Args > &... | args | ||
) |
Definition at line 1387 of file core.h.
References vformat(), and vformat_to().
Referenced by format(), format_to(), and print().
FMT_CONSTEXPR ansi_color_escape<Char> internal::make_background_color | ( | internal::color_type | background | ) |
Definition at line 437 of file color.h.
References basic_data<>::background_color.
T* internal::make_checked | ( | T * | p, |
std::size_t | |||
) |
Definition at line 319 of file format.h.
Referenced by buffer< Char >::append(), get_data(), basic_memory_buffer< Char >::grow(), basic_memory_buffer< Char >::move(), basic_writer< Range >::int_writer< Int, Specs >::num_writer::operator()(), and reserve().
FMT_CONSTEXPR ansi_color_escape<Char> internal::make_emphasis | ( | emphasis | em | ) |
FMT_CONSTEXPR ansi_color_escape<Char> internal::make_foreground_color | ( | internal::color_type | foreground | ) |
Definition at line 431 of file color.h.
References basic_data<>::foreground_color.
T mod | ( | T | x, |
int | y | ||
) |
Definition at line 698 of file chrono.h.
Referenced by get_milliseconds(), chrono_formatter< FormatContext, OutputIt, Rep, Period >::hour(), chrono_formatter< FormatContext, OutputIt, Rep, Period >::hour12(), chrono_formatter< FormatContext, OutputIt, Rep, Period >::minute(), and chrono_formatter< FormatContext, OutputIt, Rep, Period >::second().
uint64_t internal::multiply | ( | uint64_t | lhs, |
uint64_t | rhs | ||
) |
Definition at line 459 of file format-inl.h.
Referenced by format_float(), operator*(), and bigint::operator*=().
Definition at line 382 of file format-inl.h.
References fp::double_significand_size, fp::e, fp::f, fp::implicit_bit, and fp::significand_size.
Referenced by format_float().
constexpr int internal::num_bits< fallback_uintptr > | ( | ) |
Definition at line 476 of file format-inl.h.
References fp::e, fp::f, and multiply().
Definition at line 456 of file format-inl.h.
Referenced by soplex::ratFromString().
FMT_CONSTEXPR const Char* internal::parse_align | ( | const Char * | begin, |
const Char * | end, | ||
Handler && | handler | ||
) |
Definition at line 2340 of file format.h.
References align::center, FMT_ASSERT, align::left, none, align::numeric, and align::right.
Referenced by formatter< std::chrono::duration< Rep, Period >, Char >::do_parse(), and parse_format_specs().
FMT_CONSTEXPR const Char* internal::parse_arg_id | ( | const Char * | begin, |
const Char * | end, | ||
IDHandler && | handler | ||
) |
Definition at line 2276 of file format.h.
References FMT_ASSERT, index, is_name_start(), parse_nonnegative_int(), and to_unsigned().
Referenced by parse_format_string(), parse_precision(), and parse_width().
FMT_CONSTEXPR const Char* internal::parse_chrono_format | ( | const Char * | begin, |
const Char * | end, | ||
Handler && | handler | ||
) |
Definition at line 478 of file chrono.h.
References FMT_THROW, and ptr().
Referenced by formatter< std::chrono::duration< Rep, Period >, Char >::do_parse(), and formatter< std::chrono::duration< Rep, Period >, Char >::format().
FMT_CONSTEXPR float_specs internal::parse_float_type_spec | ( | const basic_format_specs< Char > & | specs, |
ErrorHandler && | eh = {} |
||
) |
Definition at line 1223 of file format.h.
References basic_format_specs< Char >::alt, exp, fixed, FMT_FALLTHROUGH, general, hex, basic_format_specs< Char >::precision, and basic_format_specs< Char >::type.
Referenced by formatter< T, Char, enable_if_t< internal::type_constant< T, Char >::value !=internal::custom_type > >::parse(), and basic_writer< Range >::write().
FMT_CONSTEXPR const Char* internal::parse_format_specs | ( | const Char * | begin, |
const Char * | end, | ||
SpecHandler && | handler | ||
) |
Definition at line 2421 of file format.h.
References parse_align(), parse_precision(), and parse_width().
Referenced by format_string_compiler< Char, PartHandler >::on_format_specs(), format_handler< ArgFormatter, Char, Context >::on_format_specs(), formatter< T, Char, enable_if_t< internal::type_constant< T, Char >::value !=internal::custom_type > >::parse(), and dynamic_formatter< Char >::parse().
FMT_CONSTEXPR const ParseContext::char_type* internal::parse_format_specs | ( | ParseContext & | ctx | ) |
Definition at line 2551 of file format.h.
References char_type, and custom_type.
FMT_CONSTEXPR void internal::parse_format_string | ( | basic_string_view< Char > | format_str, |
Handler && | handler | ||
) |
Definition at line 2499 of file format.h.
References basic_string_view< Char >::data(), FMT_CONSTEXPR, parse_arg_id(), basic_string_view< Char >::size(), and write().
FMT_CONSTEXPR int internal::parse_nonnegative_int | ( | const Char *& | begin, |
const Char * | end, | ||
ErrorHandler && | eh | ||
) |
Definition at line 1926 of file format.h.
References FMT_ASSERT.
Referenced by basic_printf_context< OutputIt, Char >::format(), parse_arg_id(), basic_printf_context< OutputIt, Char >::parse_header(), parse_precision(), and parse_width().
FMT_CONSTEXPR const Char* internal::parse_precision | ( | const Char * | begin, |
const Char * | end, | ||
Handler && | handler | ||
) |
Definition at line 2397 of file format.h.
References parse_arg_id(), and parse_nonnegative_int().
Referenced by formatter< std::chrono::duration< Rep, Period >, Char >::do_parse(), and parse_format_specs().
FMT_CONSTEXPR const Char* internal::parse_width | ( | const Char * | begin, |
const Char * | end, | ||
Handler && | handler | ||
) |
Definition at line 2380 of file format.h.
References FMT_ASSERT, parse_arg_id(), and parse_nonnegative_int().
Referenced by formatter< std::chrono::duration< Rep, Period >, Char >::do_parse(), and parse_format_specs().
void internal::printf | ( | buffer< Char > & | buf, |
basic_string_view< Char > | format, | ||
basic_format_args< Context > | args | ||
) |
Definition at line 175 of file printf.h.
Referenced by printf(), vfprintf(), and vsprintf().
internal::truncating_iterator<OutputIt> internal::printf | ( | internal::truncating_iterator< OutputIt > | it, |
basic_string_view< Char > | format, | ||
basic_format_args< Context > | args | ||
) |
T internal::promote_float | ( | T | value | ) |
Definition at line 1193 of file format.h.
Referenced by basic_writer< Range >::write().
FMT_FUNC void internal::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().
checked_ptr<typename Container::value_type> internal::reserve | ( | std::back_insert_iterator< Container > & | it, |
std::size_t | n | ||
) |
Definition at line 323 of file format.h.
References get_container(), get_data(), and make_checked().
Referenced by buffer< Char >::append(), format_handler< ArgFormatter, Char, Context >::on_text(), buffer< Char >::push_back(), basic_writer< Range >::reserve(), buffer< Char >::resize(), internal::cf::vformat_to(), basic_writer< Range >::write(), basic_writer< Range >::write_decimal(), basic_writer< Range >::write_padded(), and basic_writer< Range >::write_pointer().
void internal::reset_color | ( | FILE * | stream | ) |
Definition at line 457 of file color.h.
References fputs(), and basic_data<>::reset_color.
void internal::reset_color | ( | basic_memory_buffer< Char > & | buffer | ) |
Definition at line 466 of file color.h.
References buffer< T >::append().
void internal::reset_color< wchar_t > | ( | FILE * | stream | ) |
Definition at line 461 of file color.h.
References fputs(), and basic_data<>::wreset_color.
FMT_FUNC int internal::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().
int snprintf_float | ( | T | value, |
int | precision, | ||
float_specs | specs, | ||
buffer< char > & | buf | ||
) |
Definition at line 1117 of file format-inl.h.
References buffer< T >::capacity(), buffer< T >::data(), exp, fixed, FMT_ASSERT, FMT_SNPRINTF, format(), float_specs::format, general, hex, buffer< T >::reserve(), buffer< T >::resize(), buffer< T >::size(), to_unsigned(), float_specs::trailing_zeros, and float_specs::upper.
Referenced by format_float(), float_writer< Char >::operator()(), and basic_writer< Range >::write().
std::size_t internal::strftime | ( | char * | str, |
std::size_t | count, | ||
const char * | format, | ||
const std::tm * | time | ||
) |
Definition at line 390 of file chrono.h.
References strftime().
Referenced by formatter< std::tm, Char >::format().
std::size_t internal::strftime | ( | wchar_t * | str, |
std::size_t | count, | ||
const wchar_t * | format, | ||
const std::tm * | time | ||
) |
Definition at line 395 of file chrono.h.
Referenced by strftime().
Char internal::thousands_sep | ( | locale_ref | loc | ) |
wchar_t internal::thousands_sep | ( | locale_ref | loc | ) |
Definition at line 825 of file format.h.
References decimal_point_impl(), and FMT_API.
FMT_FUNC Char internal::thousands_sep_impl | ( | locale_ref | loc | ) |
Definition at line 206 of file format-inl.h.
References locale_ref::get().
Referenced by decimal_point_impl(), and grouping< wchar_t >().
FMT_API Char internal::thousands_sep_impl | ( | locale_ref | loc | ) |
Definition at line 206 of file format-inl.h.
References locale_ref::get().
Referenced by decimal_point_impl(), and grouping< wchar_t >().
char8_t internal::to_char8_t | ( | char | c | ) |
Definition at line 496 of file format.h.
Referenced by copy_str().
int to_nonnegative_int | ( | T | value, |
int | upper | ||
) |
Definition at line 683 of file chrono.h.
References FMT_ASSERT, and isnan().
Referenced by chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_12_hour(), chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_24_hour(), chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_minute(), chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_second(), chrono_formatter< FormatContext, OutputIt, Rep, Period >::time(), and chrono_formatter< FormatContext, OutputIt, Rep, Period >::write().
void internal::to_string_view | ( | ... | ) |
Referenced by check_format_string(), compiled_format< S, Args >::compiled_format(), compiled_format_base< S, enable_if_t< is_compile_string< S >::value > >::compiled_format_base(), format(), format_to(), format_to_n(), fprintf(), compiled_format_base< S, enable_if_t< is_compile_string< S >::value > >::parts(), print(), printf(), sprintf(), vformat(), internal::cf::vformat_to(), vformat_to(), vformat_to(), vfprintf(), vprintf(), and vsprintf().
fallback_uintptr internal::to_uintptr | ( | const void * | p | ) |
Definition at line 247 of file format.h.
Referenced by fallback_uintptr::fallback_uintptr(), and arg_formatter_base< Range >::write_pointer().
FMT_CONSTEXPR std::make_unsigned<Int>::type internal::to_unsigned | ( | Int | value | ) |
Definition at line 265 of file core.h.
References FMT_ASSERT.
Referenced by basic_format_parse_context< Char >::advance_to(), buffer< Char >::append(), find< false, char >(), format_error_code(), format_float(), get_dynamic_spec(), arg_map< basic_format_context >::init(), dynamic_specs_handler< ParseContext >::make_arg_ref(), format_string_compiler< Char, PartHandler >::on_text(), format_handler< ArgFormatter, Char, Context >::on_text(), formatter< std::tm, Char >::parse(), formatter< std::chrono::duration< Rep, Period >, Char >::parse(), parse_arg_id(), basic_writer< Range >::pointer_writer< UIntPtr >::size(), format_int::size(), snprintf_float(), write(), chrono_formatter< FormatContext, OutputIt, Rep, Period >::write(), basic_writer< Range >::write(), basic_writer< Range >::write_int(), basic_writer< Range >::write_padded(), and basic_writer< Range >::write_pointer().
constexpr bool internal::use_grisu | ( | ) |
Definition at line 520 of file format.h.
References FMT_USE_GRISU.
std::basic_string<Char> internal::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 to_string(), and vformat_to().
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 formatter< internal::bigint >::format(), format(), system_error::init(), and vformat().
buffer_context<Char>::iterator internal::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().
void internal::vformat_to | ( | basic_memory_buffer< Char > & | buf, |
const text_style & | ts, | ||
basic_string_view< Char > | format_str, | ||
basic_format_args< buffer_context< Char >> | args | ||
) |
Definition at line 473 of file color.h.
References buffer< T >::append(), text_style::get_background(), text_style::get_emphasis(), text_style::get_foreground(), text_style::has_background(), text_style::has_emphasis(), and text_style::has_foreground().
Referenced by format_to(), vformat(), vformat(), vformat_to(), vformat_to_n(), and vprint().
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().
void internal::write | ( | std::basic_ostream< Char > & | os, |
buffer< Char > & | buf | ||
) |
Definition at line 78 of file ostream.h.
References buffer< T >::data(), buffer< T >::size(), and to_unsigned().
Referenced by chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_12_hour(), chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_24_hour(), chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_24_hour_time(), chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_iso_time(), chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_minute(), chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_second(), printf_arg_formatter< Range >::operator()(), arg_formatter_base< Range >::operator()(), parse_format_string(), buffered_file::print(), vfprintf(), vprint(), basic_writer< Range >::write(), and printf_arg_formatter< Range >::write_null_pointer().
It internal::write_exponent | ( | int | exp, |
It | it | ||
) |
Definition at line 1059 of file format.h.
References basic_data<>::digits, exp, and FMT_ASSERT.
FMT_EXTERN template struct basic_data< void > |