Namespaces | Functions
locale.h File Reference
#include "format.h"
#include <locale>

Go to the source code of this file.

Namespaces

 internal
 

Functions

template<typename Char >
buffer_context< Char >::type::iterator internal::vformat_to (const std::locale &loc, basic_buffer< Char > &buf, basic_string_view< Char > format_str, basic_format_args< typename buffer_context< Char >::type > args)
 
template<typename Char >
std::basic_string< Char > internal::vformat (const std::locale &loc, basic_string_view< Char > format_str, basic_format_args< typename buffer_context< Char >::type > args)
 
template<typename S , typename Char = FMT_CHAR(S)>
std::basic_string< Char > vformat (const std::locale &loc, const S &format_str, basic_format_args< typename buffer_context< Char >::type > args)
 
template<typename S , typename... Args>
std::basic_string< FMT_CHAR(S)> format (const std::locale &loc, 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 vformat_to (OutputIt out, const std::locale &loc, const String &format_str, typename format_args_t< OutputIt, FMT_CHAR(String)>::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 format_to (OutputIt out, const std::locale &loc, const S &format_str, const Args &...args)
 

Function Documentation

template<typename S , typename... Args>
std::basic_string<FMT_CHAR(S)> format ( const std::locale &  loc,
const S format_str,
const Args &...  args 
)
inline

Definition at line 45 of file locale.h.

46  {
47  return internal::vformat(
48  loc, to_string_view(format_str),
49  *internal::checked_args<S, Args...>(format_str, args...));
50 }
static QCString args
Definition: declinfo.cpp:674
std::basic_string< Char > vformat(basic_string_view< Char > format_str, basic_format_args< typename buffer_context< Char >::type > args)
Definition: format.h:3410
string_view_t & to_string_view(spdlog::level::level_enum l) SPDLOG_NOEXCEPT
Definition: common.h:132
template<typename OutputIt , typename S , typename... Args>
std::enable_if< internal::is_string<S>::value && internal::is_output_iterator<OutputIt>::value, OutputIt>::type format_to ( OutputIt  out,
const std::locale &  loc,
const S format_str,
const Args &...  args 
)
inline

Definition at line 66 of file locale.h.

67  {
70  format_arg_store<context, Args...> as{args...};
71  return vformat_to(out, loc, to_string_view(format_str),
73 }
const S & format_str
Definition: format.h:3342
format_arg_store< context, Args... > as
Definition: format.h:3345
static QCString args
Definition: declinfo.cpp:674
std::enable_if<!is_compile_string< S >::value >::type check_format_string(const S &)
Definition: core.h:1352
format_context_t< OutputIt, FMT_CHAR(S)>::type context
Definition: format.h:3344
string_view_t & to_string_view(spdlog::level::level_enum l) SPDLOG_NOEXCEPT
Definition: common.h:132
std::enable_if< internal::is_output_iterator< OutputIt >::value, OutputIt >::type vformat_to(OutputIt out, const std::locale &loc, const String &format_str, typename format_args_t< OutputIt, FMT_CHAR(String)>::type args)
Definition: locale.h:55
template<typename S , typename Char = FMT_CHAR(S)>
std::basic_string<Char> vformat ( const std::locale &  loc,
const S format_str,
basic_format_args< typename buffer_context< Char >::type args 
)
inline

Definition at line 38 of file locale.h.

40  {
41  return internal::vformat(loc, to_string_view(format_str), args);
42 }
std::basic_string< Char > vformat(basic_string_view< Char > format_str, basic_format_args< typename buffer_context< Char >::type > args)
Definition: format.h:3410
string_view_t & to_string_view(spdlog::level::level_enum l) SPDLOG_NOEXCEPT
Definition: common.h:132
template<typename String , typename OutputIt , typename... Args>
std::enable_if<internal::is_output_iterator<OutputIt>::value, OutputIt>::type vformat_to ( OutputIt  out,
const std::locale &  loc,
const String format_str,
typename format_args_t< OutputIt, FMT_CHAR(String)>::type  args 
)
inline

Definition at line 55 of file locale.h.

56  {
58  return vformat_to<arg_formatter<range>>(
59  range(out), to_string_view(format_str), args, internal::locale_ref(loc));
60 }
static QCString args
Definition: declinfo.cpp:674
string_view_t & to_string_view(spdlog::level::level_enum l) SPDLOG_NOEXCEPT
Definition: common.h:132