Livox SDK API  V2.2.0
format.h File Reference
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstring>
#include <limits>
#include <memory>
#include <stdexcept>
#include <stdint.h>
#include "core.h"

Go to the source code of this file.

Classes

struct  fmt::v5::internal::function< Result >
 
struct  fmt::v5::internal::function< Result >::result< T >
 
struct  fmt::v5::internal::dummy_int
 
class  std::numeric_limits< fmt::internal::dummy_int >
 
class  fmt::v5::basic_writer< Range >
 
class  fmt::v5::output_range< OutputIt, T >
 
class  fmt::v5::back_insert_range< Container >
 
class  fmt::v5::format_error
 
struct  fmt::v5::internal::checked< T >
 
class  fmt::v5::u8string_view
 
class  fmt::v5::basic_memory_buffer< T, SIZE, Allocator >
 
struct  fmt::v5::internal::char_traits< Char >
 
struct  fmt::v5::internal::char_traits< char >
 
struct  fmt::v5::internal::char_traits< wchar_t >
 
class  fmt::v5::internal::null_terminating_iterator< Char >
 
class  fmt::v5::internal::counting_iterator< T >
 
class  fmt::v5::internal::truncating_iterator_base< OutputIt >
 
class  fmt::v5::internal::truncating_iterator< OutputIt, Enable >
 
class  fmt::v5::internal::truncating_iterator< OutputIt, std::false_type >
 
class  fmt::v5::internal::truncating_iterator< OutputIt, std::true_type >
 
struct  fmt::v5::internal::int_traits< T >
 
struct  fmt::v5::internal::basic_data< T >
 
struct  fmt::v5::internal::needs_conversion< InputIt, OutChar >
 
class  fmt::v5::internal::decimal_formatter
 
class  fmt::v5::internal::decimal_formatter_null
 
struct  fmt::v5::internal::no_thousands_sep
 
class  fmt::v5::internal::add_thousands_sep< Char >
 
struct  fmt::v5::internal::null< T >
 
struct  fmt::v5::align_spec
 
struct  fmt::v5::core_format_specs
 
struct  fmt::v5::basic_format_specs< Char >
 
class  fmt::v5::internal::int_type_checker< ErrorHandler >
 
class  fmt::v5::internal::float_type_checker< ErrorHandler >
 
class  fmt::v5::internal::char_specs_checker< ErrorHandler >
 
class  fmt::v5::internal::cstring_type_checker< ErrorHandler >
 
class  fmt::v5::internal::arg_formatter_base< Range >
 
struct  fmt::v5::internal::arg_formatter_base< Range >::char_spec_handler
 
struct  fmt::v5::internal::arg_formatter_base< Range >::cstring_spec_handler
 
class  fmt::v5::internal::custom_formatter< Char, Context >
 
struct  fmt::v5::internal::is_integer< T >
 
class  fmt::v5::internal::width_checker< ErrorHandler >
 
class  fmt::v5::internal::precision_checker< ErrorHandler >
 
class  fmt::v5::internal::specs_setter< Char >
 
class  fmt::v5::internal::specs_checker< Handler >
 
struct  fmt::v5::internal::auto_id
 
class  fmt::v5::internal::specs_handler< Context >
 
struct  fmt::v5::internal::arg_ref< Char >
 
struct  fmt::v5::internal::dynamic_format_specs< Char >
 
class  fmt::v5::internal::dynamic_specs_handler< ParseContext >
 
struct  fmt::v5::internal::width_adapter< SpecHandler, Char >
 
struct  fmt::v5::internal::precision_adapter< SpecHandler, Char >
 
struct  fmt::v5::internal::id_adapter< Handler, Char >
 
class  fmt::v5::internal::format_string_checker< Char, ErrorHandler, Args >
 
struct  fmt::v5::internal::format_type< Context, T >
 
class  fmt::v5::arg_formatter< Range >
 
class  fmt::v5::system_error
 
class  fmt::v5::basic_writer< Range >
 
struct  fmt::v5::basic_writer< Range >::int_writer< Int, Spec >::dec_writer
 
struct  fmt::v5::basic_writer< Range >::int_writer< Int, Spec >::hex_writer
 
struct  fmt::v5::basic_writer< Range >::int_writer< Int, Spec >::bin_writer< BITS >
 
struct  fmt::v5::basic_writer< Range >::int_writer< Int, Spec >::num_writer
 
struct  fmt::v5::float_spec_handler
 
class  fmt::v5::format_int
 
struct  fmt::v5::formatter< T, Char, typename std::enable_if< internal::format_type< typename buffer_context< Char >::type, T >::value >::type >
 
class  fmt::v5::dynamic_formatter< Char >
 
struct  fmt::v5::format_handler< ArgFormatter, Char, Context >
 
struct  fmt::v5::arg_join< It, Char >
 
struct  fmt::v5::formatter< arg_join< It, Char >, Char >
 
struct  fmt::v5::internal::void_< Ts >
 
struct  fmt::v5::internal::it_category< T, Enable >
 
struct  fmt::v5::internal::it_category< T * >
 
struct  fmt::v5::internal::it_category< T, typename void_< typename T::iterator_category >::type >
 
class  fmt::v5::internal::is_output_iterator< It >
 
struct  fmt::v5::format_context_t< OutputIt, Char >
 
struct  fmt::v5::format_args_t< OutputIt, Char >
 
struct  fmt::v5::format_to_n_result< OutputIt >
 
struct  fmt::v5::format_to_n_context< OutputIt, Char >
 
struct  fmt::v5::format_to_n_args< OutputIt, Char >
 

Namespaces

 fmt
 
 fmt::v5
 
 fmt::v5::internal
 
 std
 

Macros

#define FMT_CLANG_VERSION   0
 
#define FMT_ICC_VERSION   0
 
#define FMT_CUDA_VERSION   0
 
#define FMT_SECURE_SCL   0
 
#define FMT_HAS_BUILTIN(x)   0
 
#define FMT_THROW(x)   throw x
 
#define FMT_USE_USER_DEFINED_LITERALS   0
 
#define FMT_UDL_TEMPLATE   0
 
#define FMT_USE_EXTERN_TEMPLATES
 
#define FMT_USE_TRAILING_RETURN   0
 
#define FMT_USE_GRISU   0
 
#define FMT_ALWAYS_INLINE
 
#define FMT_USE_WINDOWS_H   0
 
#define FMT_STRING(s)
 
#define FMT_FUNC
 

Typedefs

typedef std::numeric_limits< internal::dummy_int > fmt::v5::internal::fputil
 
typedef basic_writer< back_insert_range< internal::buffer > > fmt::v5::writer
 
typedef basic_writer< back_insert_range< internal::wbuffer > > fmt::v5::wwriter
 
typedef basic_memory_buffer< char > fmt::v5::memory_buffer
 
typedef basic_memory_buffer< wchar_t > fmt::v5::wmemory_buffer
 
typedef basic_data fmt::v5::internal::data
 
typedef basic_format_specs< char > fmt::v5::format_specs
 

Enumerations

enum  fmt::v5::char8_t : unsigned char
 
enum  { fmt::v5::inline_buffer_size = 500 }
 
enum  fmt::v5::alignment {
  fmt::v5::ALIGN_DEFAULT, fmt::v5::ALIGN_LEFT, fmt::v5::ALIGN_RIGHT, fmt::v5::ALIGN_CENTER,
  fmt::v5::ALIGN_NUMERIC
}
 
enum  { fmt::v5::SIGN_FLAG = 1, fmt::v5::PLUS_FLAG = 2, fmt::v5::MINUS_FLAG = 4, fmt::v5::HASH_FLAG = 8 }
 

Functions

template<typename Dest , typename Source >
Dest fmt::v5::internal::bit_cast (const Source &source)
 
template<typename C >
auto fmt::v5::internal::begin (const C &c) -> decltype(c.begin())
 
template<typename T , std::size_t N>
T * fmt::v5::internal::begin (T(&array)[N]) throw ()
 
template<typename C >
auto fmt::v5::internal::end (const C &c) -> decltype(c.end())
 
template<typename T , std::size_t N>
T * fmt::v5::internal::end (T(&array)[N]) throw ()
 
dummy_int fmt::v5::internal::isinf (...)
 
dummy_int fmt::v5::internal::_finite (...)
 
dummy_int fmt::v5::internal::isnan (...)
 
dummy_int fmt::v5::internal::_isnan (...)
 
template<typename Allocator >
Allocator::value_type * fmt::v5::internal::allocate (Allocator &alloc, std::size_t n)
 
template<typename T >
fmt::v5::internal::const_check (T value)
 
template<typename T >
T * fmt::v5::internal::make_checked (T *p, std::size_t)
 
template<typename Container >
std::enable_if< is_contiguous< Container >::value, typename checked< typename Container::value_type >::type >::type fmt::v5::internal::reserve (std::back_insert_iterator< Container > &it, std::size_t n)
 
template<typename Iterator >
Iterator & fmt::v5::internal::reserve (Iterator &it, std::size_t)
 
template<typename Char >
const Char * fmt::v5::internal::pointer_from (null_terminating_iterator< Char > it)
 
template<typename T >
std::enable_if< std::numeric_limits< T >::is_signed, bool >::type fmt::v5::internal::is_negative (T value)
 
template<typename T >
std::enable_if< !std::numeric_limits< T >::is_signed, bool >::type fmt::v5::internal::is_negative (T)
 
int fmt::v5::internal::count_digits (uint64_t n)
 
template<typename Char >
size_t fmt::v5::internal::count_code_points (basic_string_view< Char > s)
 
size_t fmt::v5::internal::count_code_points (basic_string_view< char8_t > s)
 
char8_t fmt::v5::internal::to_char8_t (char c)
 
template<typename OutChar , typename InputIt , typename OutputIt >
std::enable_if< !needs_conversion< InputIt, OutChar >::value, OutputIt >::type fmt::v5::internal::copy_str (InputIt begin, InputIt end, OutputIt it)
 
template<typename OutChar , typename InputIt , typename OutputIt >
std::enable_if< needs_conversion< InputIt, OutChar >::value, OutputIt >::type fmt::v5::internal::copy_str (InputIt begin, InputIt end, OutputIt it)
 
template<typename Handler >
char * fmt::v5::internal::lg (uint32_t n, Handler h)
 
template<typename Char >
Char fmt::v5::internal::thousands_sep_impl (locale_ref loc)
 
template<typename Char >
Char fmt::v5::internal::thousands_sep (locale_ref loc)
 
template<>
wchar_t fmt::v5::internal::thousands_sep (locale_ref loc)
 
template<typename UInt , typename Char , typename ThousandsSep >
Char * fmt::v5::internal::format_decimal (Char *buffer, UInt value, int num_digits, ThousandsSep thousands_sep)
 
template<typename OutChar , typename UInt , typename Iterator , typename ThousandsSep >
Iterator fmt::v5::internal::format_decimal (Iterator out, UInt value, int num_digits, ThousandsSep sep)
 
template<typename OutChar , typename It , typename UInt >
It fmt::v5::internal::format_decimal (It out, UInt value, int num_digits)
 
template<unsigned BASE_BITS, typename Char , typename UInt >
Char * fmt::v5::internal::format_uint (Char *buffer, UInt value, int num_digits, bool upper=false)
 
template<unsigned BASE_BITS, typename Char , typename It , typename UInt >
It fmt::v5::internal::format_uint (It out, UInt value, int num_digits, bool upper=false)
 
template<typename Double >
std::enable_if< sizeof(Double)==sizeof(uint64_t), bool >::type fmt::v5::internal::grisu2_format (Double value, buffer &buf, core_format_specs specs)
 
template<typename Double >
std::enable_if< sizeof(Double)!=sizeof(uint64_t), bool >::type fmt::v5::internal::grisu2_format (Double, buffer &, core_format_specs)
 
template<typename Double >
void fmt::v5::internal::sprintf_format (Double value, internal::buffer &buf, core_format_specs spec)
 
template<typename Handler >
void fmt::v5::internal::handle_int_type_spec (char spec, Handler &&handler)
 
template<typename Handler >
void fmt::v5::internal::handle_float_type_spec (char spec, Handler &&handler)
 
template<typename Char , typename Handler >
void fmt::v5::internal::handle_char_specs (const basic_format_specs< Char > *specs, Handler &&handler)
 
template<typename Char , typename Handler >
void fmt::v5::internal::handle_cstring_type_spec (Char spec, Handler &&handler)
 
template<typename Char , typename ErrorHandler >
void fmt::v5::internal::check_string_type_spec (Char spec, ErrorHandler &&eh)
 
template<typename Char , typename ErrorHandler >
void fmt::v5::internal::check_pointer_type_spec (Char spec, ErrorHandler &&eh)
 
template<typename Char >
bool fmt::v5::internal::is_name_start (Char c)
 
template<typename Char , typename ErrorHandler >
unsigned fmt::v5::internal::parse_nonnegative_int (const Char *&begin, const Char *end, ErrorHandler &&eh)
 
template<template< typename > class Handler, typename T , typename Context , typename ErrorHandler >
void fmt::v5::internal::set_dynamic_spec (T &value, basic_format_arg< Context > arg, ErrorHandler eh)
 
template<typename Char , typename IDHandler >
const Char * fmt::v5::internal::parse_arg_id (const Char *begin, const Char *end, IDHandler &&handler)
 
template<typename Char , typename Handler >
const Char * fmt::v5::internal::parse_align (const Char *begin, const Char *end, Handler &&handler)
 
template<typename Char , typename Handler >
const Char * fmt::v5::internal::parse_width (const Char *begin, const Char *end, Handler &&handler)
 
template<typename Char , typename SpecHandler >
const Char * fmt::v5::internal::parse_format_specs (const Char *begin, const Char *end, SpecHandler &&handler)
 
template<bool IS_CONSTEXPR, typename T , typename Ptr = const T*>
bool fmt::v5::internal::find (Ptr first, Ptr last, T value, Ptr &out)
 
template<>
bool fmt::v5::internal::find< false, char > (const char *first, const char *last, char value, const char *&out)
 
template<bool IS_CONSTEXPR, typename Char , typename Handler >
void fmt::v5::internal::parse_format_string (basic_string_view< Char > format_str, Handler &&handler)
 
template<typename T , typename ParseContext >
const ParseContext::char_type * fmt::v5::internal::parse_format_specs (ParseContext &ctx)
 
template<typename Char , typename ErrorHandler , typename... Args>
bool fmt::v5::internal::do_check_format_string (basic_string_view< Char > s, ErrorHandler eh=ErrorHandler())
 
template<typename... Args, typename S >
std::enable_if< is_compile_string< S >::value >::type fmt::v5::internal::check_format_string (S)
 
template<template< typename > class Handler, typename Spec , typename Context >
void fmt::v5::internal::handle_dynamic_spec (Spec &value, arg_ref< typename Context::char_type > ref, Context &ctx)
 
void fmt::v5::format_system_error (internal::buffer &out, int error_code, string_view message) throw ()
 
void fmt::v5::report_system_error (int error_code, fmt::string_view message) throw ()
 
template<typename T >
void fmt::v5::format_decimal (char *&buffer, T value)
 
template<typename ArgFormatter , typename Char , typename Context >
Context::iterator fmt::v5::vformat_to (typename ArgFormatter::range out, basic_string_view< Char > format_str, basic_format_args< Context > args, internal::locale_ref loc=internal::locale_ref())
 
template<typename T >
const void * fmt::v5::ptr (const T *p)
 
template<typename It >
arg_join< It, char > fmt::v5::join (It begin, It end, string_view sep)
 
template<typename It >
arg_join< It, wchar_t > fmt::v5::join (It begin, It end, wstring_view sep)
 
template<typename T >
std::string fmt::v5::to_string (const T &value)
 
template<typename T >
std::wstring fmt::v5::to_wstring (const T &value)
 
template<typename Char , std::size_t SIZE>
std::basic_string< Char > fmt::v5::to_string (const basic_memory_buffer< Char, SIZE > &buf)
 
template<typename S , typename Char = typename char_t< S >::type>
buffer_context< Char >::type::iterator fmt::v5::vformat_to (internal::basic_buffer< Char > &buf, const S &format_str, basic_format_args< typename buffer_context< Char >::type > args)
 
template<typename S , typename... Args, std::size_t SIZE = inline_buffer_size, typename Char = typename internal::char_t<S>::type>
buffer_context< Char >::type::iterator fmt::v5::format_to (basic_memory_buffer< Char, SIZE > &buf, const S &format_str, const Args &...args)
 
template<typename String , typename OutputIt , typename... Args>
std::enable_if< internal::is_output_iterator< OutputIt >::value, OutputIt >::type fmt::v5::vformat_to (OutputIt out, const String &format_str, typename format_args_t< OutputIt, typename char_t< String >::type >::type args)
 
template<typename OutputIt , typename S , typename... Args>
std::enable_if< internal::is_string< S >::value &&internal::is_output_iterator< OutputIt >::value, OutputIt >::type fmt::v5::format_to (OutputIt out, const S &format_str, const Args &...args)
 
template<typename OutputIt , typename Char , typename... Args>
format_arg_store< typename format_to_n_context< OutputIt, Char >::type, Args... > fmt::v5::make_format_to_n_args (const Args &...args)
 
template<typename OutputIt , typename Char , typename... Args>
std::enable_if< internal::is_output_iterator< OutputIt >::value, format_to_n_result< OutputIt > >::type fmt::v5::vformat_to_n (OutputIt out, std::size_t n, basic_string_view< Char > format_str, typename format_to_n_args< OutputIt, Char >::type args)
 
template<typename OutputIt , typename S , typename... Args>
std::enable_if< internal::is_string< S >::value &&internal::is_output_iterator< OutputIt >::value, format_to_n_result< OutputIt > >::type fmt::v5::format_to_n (OutputIt out, std::size_t n, const S &format_str, const Args &...args)
 
template<typename... Args>
std::size_t fmt::v5::formatted_size (string_view format_str, const Args &...args)
 

Macro Definition Documentation

#define FMT_ALWAYS_INLINE

Definition at line 824 of file format.h.

#define FMT_CLANG_VERSION   0

Definition at line 43 of file format.h.

#define FMT_CUDA_VERSION   0

Definition at line 57 of file format.h.

#define FMT_FUNC

Definition at line 3547 of file format.h.

#define FMT_HAS_BUILTIN (   x)    0

Definition at line 91 of file format.h.

#define FMT_ICC_VERSION   0

Definition at line 51 of file format.h.

#define FMT_SECURE_SCL   0

Definition at line 81 of file format.h.

#define FMT_STRING (   s)
Value:
[] { \
typedef typename std::remove_cv<std::remove_pointer< \
struct str : fmt::compile_string { \
typedef ct char_type; \
return {s, sizeof(s) / sizeof(ct) - 1}; \
} \
}; \
return str{}; \
}()
#define FMT_CONSTEXPR
Definition: core.h:69

Definition at line 3513 of file format.h.

#define FMT_THROW (   x)    throw x

Definition at line 115 of file format.h.

#define FMT_UDL_TEMPLATE   0

Definition at line 144 of file format.h.

#define FMT_USE_EXTERN_TEMPLATES
Value:
((FMT_CLANG_VERSION >= 209 && __cplusplus >= 201103L) || \
#define FMT_CLANG_VERSION
Definition: format.h:43
#define FMT_GCC_VERSION
Definition: core.h:43
#define FMT_HAS_GXX_CXX11
Definition: core.h:49

Definition at line 149 of file format.h.

#define FMT_USE_GRISU   0

Definition at line 165 of file format.h.

#define FMT_USE_TRAILING_RETURN   0

Definition at line 161 of file format.h.

#define FMT_USE_USER_DEFINED_LITERALS   0

Definition at line 131 of file format.h.

#define FMT_USE_WINDOWS_H   0

Definition at line 1029 of file format.h.