Agora
1.2.0
Agora project
|
Go to the documentation of this file.
30 #if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
34 template <
typename... Args>
38 template <>
struct is_char<wchar_t> : std::true_type {};
40 template <>
struct is_char<char16_t> : std::true_type {};
41 template <>
struct is_char<char32_t> : std::true_type {};
43 template <
typename... Args>
45 const Args&... args) {
49 inline namespace literals {
50 constexpr
auto operator"" _format(
const wchar_t*
s,
size_t n)
51 -> detail::udl_formatter<wchar_t> {
55 #if FMT_USE_USER_DEFINED_LITERALS && !FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
56 constexpr detail::udl_arg<wchar_t>
operator"" _a(
const wchar_t*
s,
size_t) {
62 template <
typename It,
typename Sentinel>
68 template <
typename Range>
81 template <
typename Char, FMT_ENABLE_IF(!std::is_same<Char,
char>::value)>
84 -> std::basic_string<Char> {
92 template <
typename S,
typename... Args,
typename Char =
char_t<S>,
94 auto format(
const S& format_str, Args&&... args) -> std::basic_string<Char> {
99 template <
typename Locale,
typename S,
typename Char =
char_t<S>,
100 FMT_ENABLE_IF(detail::is_locale<Locale>::value&&
101 detail::is_exotic_
char<Char>::value)>
103 const Locale& loc,
const S& format_str,
105 -> std::basic_string<Char> {
109 template <
typename Locale,
typename S,
typename... Args,
113 inline auto format(
const Locale& loc,
const S& format_str, Args&&... args)
114 -> std::basic_string<Char> {
116 fmt::make_args_checked<Args...>(format_str, args...));
119 template <
typename OutputIt,
typename S,
typename Char =
char_t<S>,
120 FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, Char>::value&&
121 detail::is_exotic_
char<Char>::value)>
125 auto&& buf = detail::get_buffer<Char>(out);
130 template <
typename OutputIt,
typename S,
typename... Args,
134 inline auto format_to(OutputIt out,
const S&
fmt, Args&&... args) -> OutputIt {
139 template <
typename S,
typename... Args,
typename Char,
size_t SIZE,
142 const S& format_str, Args&&... args) ->
149 template <
typename Locale,
typename S,
typename OutputIt,
typename... Args,
155 OutputIt out,
const Locale& loc,
const S& format_str,
157 auto&& buf = detail::get_buffer<Char>(out);
163 typename OutputIt,
typename Locale,
typename S,
typename... Args,
167 inline auto format_to(OutputIt out,
const Locale& loc,
const S& format_str,
174 template <
typename OutputIt,
typename Char,
typename... Args,
187 template <
typename OutputIt,
typename S,
typename... Args,
197 template <
typename S,
typename... Args,
typename Char =
char_t<S>,
210 if (std::fputws(buffer.
data(), f) == -1)
218 template <
typename...
T>
236 #endif // FMT_XCHAR_H_
const SPDLOG_INLINE string_view_t & to_string_view(spdlog::level::level_enum l) SPDLOG_NOEXCEPT
Definition: common-inl.h:23
typename detail::char_t_impl< S >::type char_t
Definition: core.h:623
auto join(std::initializer_list< T > list, wstring_view sep) -> join_view< const T *, const T *, wchar_t >
Definition: xchar.h:76
void push_back(const T &value)
Definition: core.h:849
GeneratorWrapper< T > value(T &&value)
Definition: catch.hpp:3999
auto count() -> size_t
Definition: core.h:1018
basic_string_view< wchar_t > wstring_view
Definition: xchar.h:24
GeneratorWrapper< T > range(T const &start, T const &end, T const &step)
Definition: catch.hpp:4693
void vprint(wstring_view fmt, wformat_args args)
Definition: xchar.h:214
auto vformat_to(OutputIt out, const Locale &loc, const S &format_str, basic_format_args< buffer_context< type_identity_t< Char >>> args) -> OutputIt
Definition: xchar.h:154
#define FMT_ENABLE_IF(...)
Definition: core.h:344
auto count() const -> size_t
Definition: core.h:917
Definition: format.h:2772
auto format_to_n(OutputIt out, size_t n, const S &fmt, const Args &... args) -> format_to_n_result< OutputIt >
Definition: xchar.h:191
OutputIt iterator
Definition: core.h:1753
std::integral_constant< bool, B > bool_constant
Definition: core.h:324
auto vformat_to_n(OutputIt out, size_t n, basic_string_view< Char > format_str, basic_format_args< buffer_context< type_identity_t< Char >>> args) -> format_to_n_result< OutputIt >
Definition: xchar.h:177
#define FMT_END_NAMESPACE
Definition: core.h:240
bool_constant<!std::is_same< T, char >::value > is_exotic_char
Definition: xchar.h:19
buffer_context< wchar_t > wformat_context
Definition: xchar.h:26
A range type with an inclusive start bound and an exclusive end bound.
Definition: utils.h:146
auto make_args_checked(const S &fmt, const remove_reference_t< Args > &... args) -> format_arg_store< buffer_context< Char >, remove_reference_t< Args >... >
Definition: format.h:835
char8_type
Definition: format.h:465
auto to_wstring(const T &value) -> std::wstring
Definition: xchar.h:230
auto data() -> T *
Definition: core.h:826
constexpr format_arg_store< wformat_context, Args... > make_wformat_args(const Args &... args)
Definition: xchar.h:44
auto system_error(int error_code, format_string< T... > fmt, T &&... args) -> std::system_error
Definition: format.h:2471
#define FMT_MODULE_EXPORT_END
Definition: core.h:248
#define FMT_MODULE_EXPORT_BEGIN
Definition: core.h:247
auto out() -> OutputIt
Definition: core.h:913
Definition: bin_to_hex.h:102
auto vformat(const Locale &loc, const S &format_str, basic_format_args< buffer_context< type_identity_t< Char >>> args) -> std::basic_string< Char >
Definition: xchar.h:102
#define FMT_BEGIN_NAMESPACE
Definition: core.h:237
std::string to_string() const
Definition: eth_common.h:64
typename type_identity< T >::type type_identity_t
Definition: core.h:332
decltype(std::end(std::declval< T & >())) sentinel_t
Definition: format.h:364
#define FMT_DEPRECATED
Definition: core.h:231
void print(wformat_string< T... > fmt, T &&... args)
Definition: xchar.h:223
auto get_iterator(Buffer &buf) -> decltype(buf.out())
Definition: core.h:1032
auto format_to(OutputIt out, const Locale &loc, const S &format_str, Args &&... args) -> typename std::enable_if< enable, OutputIt >::type
Definition: xchar.h:167
auto formatted_size(const S &fmt, Args &&... args) -> size_t
Definition: xchar.h:199
conditional_t< std::is_same< T, char >::value, appender, std::back_insert_iterator< buffer< T > >> buffer_appender
Definition: core.h:1023
auto format(const Locale &loc, const S &format_str, Args &&... args) -> std::basic_string< Char >
Definition: xchar.h:113
type
Definition: core.h:1131