Agora
1.2.0
Agora project
|
Go to the documentation of this file.
11 #ifdef SPDLOG_USE_STD_FORMAT
19 namespace fmt_helper {
28 auto *buf_ptr = view.
data();
32 #ifdef SPDLOG_USE_STD_FORMAT
41 if (ec == std::errc())
55 dest.
append(
i.data(),
i.data() +
i.size());
63 unsigned int count = 1;
85 using count_type =
typename std::conditional<(
sizeof(
T) >
sizeof(uint32_t)), uint64_t, uint32_t>::
type;
86 #ifdef SPDLOG_USE_STD_FORMAT
89 return static_cast<unsigned int>(
fmt::
92 # if FMT_VERSION < 70000
103 if (
n >= 0 &&
n < 100)
105 dest.
push_back(
static_cast<char>(
'0' +
n / 10));
106 dest.
push_back(
static_cast<char>(
'0' +
n % 10));
118 for (
auto digits =
count_digits(
n); digits < width; digits++)
131 dest.
push_back(
static_cast<char>(
n / 100 +
'0'));
133 dest.
push_back(
static_cast<char>((
n / 10) +
'0'));
134 dest.
push_back(
static_cast<char>((
n % 10) +
'0'));
157 template<
typename ToDuration>
160 using std::chrono::duration_cast;
161 using std::chrono::seconds;
162 auto duration = tp.time_since_epoch();
163 auto secs = duration_cast<seconds>(duration);
164 return duration_cast<ToDuration>(duration) - duration_cast<ToDuration>(secs);
auto format_to(OutputIt out, const text_style &ts, const S &format_str, Args &&... args) -> typename std::enable_if< enable, OutputIt >::type
Definition: color.h:628
#define SPDLOG_NOEXCEPT
Definition: common.h:64
void push_back(const T &value)
Definition: core.h:849
SPDLOG_CONSTEXPR_FUNC unsigned int count_digits_fallback(T n)
Definition: fmt_helper.h:60
GeneratorWrapper< T > value(T &&value)
Definition: catch.hpp:3999
constexpr auto size() const -> size_t
Definition: core.h:495
count
Definition: inspect_agora_results.m:96
char * to_chars(char *first, const char *last, FloatType value)
generates a decimal representation of the floating-point number value in [first, last).
Definition: json.hpp:17639
SPDLOG_INLINE void throw_spdlog_ex(const std::string &msg, int last_errno)
Definition: common-inl.h:72
auto ptr(T p) -> const void *
Definition: format.h:2680
for i
Definition: generate_data.m:107
Plot Rx waveform for u
Definition: inspect_single_frame.m:108
#define SPDLOG_CONSTEXPR_FUNC
Definition: common.h:69
spdlog::string_view_t to_string_view(const memory_buf_t &buf) SPDLOG_NOEXCEPT
Definition: fmt_helper.h:21
void pad3(T n, memory_buf_t &dest)
Definition: fmt_helper.h:126
void append(const ContiguousRange &range)
Definition: format.h:771
constexpr auto digits10() -> int
Definition: format.h:1042
constexpr auto data() const -> const Char *
Definition: core.h:492
void pad_uint(T n, unsigned int width, memory_buf_t &dest)
Definition: fmt_helper.h:115
unsigned int count_digits(T n)
Definition: fmt_helper.h:83
void append_string_view(spdlog::string_view_t view, memory_buf_t &dest)
Definition: fmt_helper.h:26
ToDuration time_fraction(log_clock::time_point tp)
Definition: fmt_helper.h:158
Definition: bin_to_hex.h:102
void pad6(T n, memory_buf_t &dest)
Definition: fmt_helper.h:143
void append_int(T n, memory_buf_t &dest)
Definition: fmt_helper.h:52
void pad2(int n, memory_buf_t &dest)
Definition: fmt_helper.h:101
#define SPDLOG_CONSTEXPR
Definition: common.h:65
type
Definition: core.h:1131
void pad9(T n, memory_buf_t &dest)
Definition: fmt_helper.h:149