Classes | Namespaces | Typedefs | Functions
xchar.h File Reference
#include <cwchar>
#include "format.h"
#include <locale>
Include dependency graph for xchar.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  is_char< char16_t >
 
struct  is_char< char32_t >
 
struct  is_char< detail::char8_type >
 
struct  is_char< wchar_t >
 

Namespaces

 detail
 
 literals
 

Typedefs

template<typename T >
using detail::is_exotic_char = bool_constant<!std::is_same< T, char >::value >
 
using wformat_args = basic_format_args< wformat_context >
 
using wformat_context = buffer_context< wchar_t >
 
using wformat_parse_context = basic_format_parse_context< wchar_t >
 
template<typename... Args>
using wformat_string = basic_format_string< wchar_t, type_identity_t< Args >... >
 
using wmemory_buffer = basic_memory_buffer< wchar_t >
 
using wstring_view = basic_string_view< wchar_t >
 

Functions

template<typename Locale , typename S , typename... T, typename Char = char_t<S>, FMT_ENABLE_IF(detail::is_locale< Locale >::value && detail::is_exotic_char< Char >::value) >
auto format (const Locale &loc, const S &format_str, T &&... args) -> std::basic_string< Char >
 
template<typename S , typename... T, typename Char = char_t<S>, FMT_ENABLE_IF(!std::is_same< Char, char >::value && !std::is_same< Char, wchar_t >::value) >
auto format (const S &format_str, T &&... args) -> std::basic_string< Char >
 
template<typename... T>
auto format (wformat_string< T... > fmt, T &&... args) -> std::wstring
 
template<typename OutputIt , typename Locale , typename S , typename... T, typename Char = char_t<S>, bool enable = detail::is_output_iterator<OutputIt, Char>::value && detail::is_locale<Locale>::value && detail::is_exotic_char<Char>::value>
auto format_to (OutputIt out, const Locale &loc, const S &format_str, T &&... args) -> typename std::enable_if< enable, OutputIt >::type
 
template<typename OutputIt , typename S , typename... T, typename Char = char_t<S>, FMT_ENABLE_IF(detail::is_output_iterator< OutputIt, Char >::value && detail::is_exotic_char< Char >::value) >
auto format_to (OutputIt out, const S &fmt, T &&... args) -> OutputIt
 
template<typename OutputIt , typename S , typename... T, typename Char = char_t<S>, FMT_ENABLE_IF(detail::is_output_iterator< OutputIt, Char >::value && detail::is_exotic_char< Char >::value) >
auto format_to_n (OutputIt out, size_t n, const S &fmt, T &&... args) -> format_to_n_result< OutputIt >
 
template<typename S , typename... T, typename Char = char_t<S>, FMT_ENABLE_IF(detail::is_exotic_char< Char >::value) >
auto formatted_size (const S &fmt, T &&... args) -> size_t
 
template<typename It , typename Sentinel >
auto join (It begin, Sentinel end, wstring_view sep) -> join_view< It, Sentinel, wchar_t >
 
template<typename Range >
auto join (Range &&range, wstring_view sep) -> join_view< detail::iterator_t< Range >, detail::sentinel_t< Range >, wchar_t >
 
template<typename T >
auto join (std::initializer_list< T > list, wstring_view sep) -> join_view< const T *, const T *, wchar_t >
 
template<typename... T>
constexpr auto make_wformat_args (const T &... args) -> format_arg_store< wformat_context, T... >
 
template<typename... T>
void print (std::FILE *f, wformat_string< T... > fmt, T &&... args)
 
template<typename... T>
void print (wformat_string< T... > fmt, T &&... args)
 
template<typename... T>
void println (std::FILE *f, wformat_string< T... > fmt, T &&... args)
 
template<typename... T>
void println (wformat_string< T... > fmt, T &&... args)
 
auto runtime (wstring_view s) -> runtime_format_string< wchar_t >
 
template<typename T >
auto to_wstring (const T &value) -> std::wstring
 
template<typename Char , FMT_ENABLE_IF(!std::is_same< Char, char >::value) >
auto vformat (basic_string_view< Char > format_str, basic_format_args< buffer_context< type_identity_t< Char >>> args) -> std::basic_string< Char >
 
template<typename Locale , typename S , typename Char = char_t<S>, FMT_ENABLE_IF(detail::is_locale< Locale >::value && detail::is_exotic_char< Char >::value) >
auto vformat (const Locale &loc, const S &format_str, basic_format_args< buffer_context< type_identity_t< Char >>> args) -> std::basic_string< Char >
 
template<typename Locale , typename S , typename OutputIt , typename... Args, typename Char = char_t<S>, FMT_ENABLE_IF(detail::is_output_iterator< OutputIt, Char >::value && detail::is_locale< Locale >::value && detail::is_exotic_char< Char >::value) >
auto vformat_to (OutputIt out, const Locale &loc, const S &format_str, basic_format_args< buffer_context< type_identity_t< Char >>> args) -> OutputIt
 
template<typename OutputIt , typename S , typename Char = char_t<S>, FMT_ENABLE_IF(detail::is_output_iterator< OutputIt, Char >::value && detail::is_exotic_char< Char >::value) >
auto vformat_to (OutputIt out, const S &format_str, basic_format_args< buffer_context< type_identity_t< Char >>> args) -> OutputIt
 
template<typename OutputIt , typename Char , typename... Args, FMT_ENABLE_IF(detail::is_output_iterator< OutputIt, Char >::value && detail::is_exotic_char< Char >::value) >
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 >
 
void vprint (std::FILE *f, wstring_view fmt, wformat_args args)
 
void vprint (wstring_view fmt, wformat_args args)
 
auto detail::write_loc (std::back_insert_iterator< detail::buffer< wchar_t >> out, loc_value value, const format_specs< wchar_t > &specs, locale_ref loc) -> bool
 

Typedef Documentation

◆ wformat_args

Definition at line 45 of file xchar.h.

◆ wformat_context

using wformat_context = buffer_context<wchar_t>

Definition at line 44 of file xchar.h.

◆ wformat_parse_context

Definition at line 43 of file xchar.h.

◆ wformat_string

template<typename... Args>
using wformat_string = basic_format_string<wchar_t, type_identity_t<Args>...>

Definition at line 54 of file xchar.h.

◆ wmemory_buffer

Definition at line 46 of file xchar.h.

◆ wstring_view

using wstring_view = basic_string_view<wchar_t>

Definition at line 42 of file xchar.h.

Function Documentation

◆ format() [1/3]

template<typename Locale , typename S , typename... T, typename Char = char_t<S>, FMT_ENABLE_IF(detail::is_locale< Locale >::value && detail::is_exotic_char< Char >::value) >
auto format ( const Locale &  loc,
const S format_str,
T &&...  args 
) -> std::basic_string<Char>
inline

Definition at line 136 of file xchar.h.

◆ format() [2/3]

template<typename S , typename... T, typename Char = char_t<S>, FMT_ENABLE_IF(!std::is_same< Char, char >::value && !std::is_same< Char, wchar_t >::value) >
auto format ( const S format_str,
T &&...  args 
) -> std::basic_string<Char>

Definition at line 118 of file xchar.h.

◆ format() [3/3]

template<typename... T>
auto format ( wformat_string< T... >  fmt,
T &&...  args 
) -> std::wstring

Definition at line 109 of file xchar.h.

◆ format_to() [1/2]

template<typename OutputIt , typename Locale , typename S , typename... T, typename Char = char_t<S>, bool enable = detail::is_output_iterator<OutputIt, Char>::value && detail::is_locale<Locale>::value && detail::is_exotic_char<Char>::value>
auto format_to ( OutputIt  out,
const Locale &  loc,
const S format_str,
T &&...  args 
) -> typename std::enable_if<enable, OutputIt>::type
inline

Definition at line 181 of file xchar.h.

◆ format_to() [2/2]

template<typename OutputIt , typename S , typename... T, typename Char = char_t<S>, FMT_ENABLE_IF(detail::is_output_iterator< OutputIt, Char >::value && detail::is_exotic_char< Char >::value) >
auto format_to ( OutputIt  out,
const S fmt,
T &&...  args 
) -> OutputIt
inline

Definition at line 157 of file xchar.h.

◆ format_to_n()

template<typename OutputIt , typename S , typename... T, typename Char = char_t<S>, FMT_ENABLE_IF(detail::is_output_iterator< OutputIt, Char >::value && detail::is_exotic_char< Char >::value) >
auto format_to_n ( OutputIt  out,
size_t  n,
const S fmt,
T &&...  args 
) -> format_to_n_result<OutputIt>
inline

Definition at line 205 of file xchar.h.

◆ formatted_size()

template<typename S , typename... T, typename Char = char_t<S>, FMT_ENABLE_IF(detail::is_exotic_char< Char >::value) >
auto formatted_size ( const S fmt,
T &&...  args 
) -> size_t
inline

Definition at line 213 of file xchar.h.

◆ join() [1/3]

template<typename It , typename Sentinel >
auto join ( It  begin,
Sentinel  end,
wstring_view  sep 
) -> join_view<It, Sentinel, wchar_t>

Definition at line 81 of file xchar.h.

◆ join() [2/3]

template<typename Range >
auto join ( Range &&  range,
wstring_view  sep 
) -> join_view<detail::iterator_t<Range>, detail::sentinel_t<Range>, wchar_t>

Definition at line 87 of file xchar.h.

◆ join() [3/3]

template<typename T >
auto join ( std::initializer_list< T >  list,
wstring_view  sep 
) -> join_view<const T*, const T*, wchar_t>

Definition at line 94 of file xchar.h.

◆ make_wformat_args()

template<typename... T>
constexpr auto make_wformat_args ( const T &...  args) -> format_arg_store<wformat_context, T...>
constexpr

Definition at line 66 of file xchar.h.

◆ print() [1/2]

template<typename... T>
void print ( std::FILE *  f,
wformat_string< T... >  fmt,
T &&...  args 
)

Definition at line 233 of file xchar.h.

◆ print() [2/2]

template<typename... T>
void print ( wformat_string< T... >  fmt,
T &&...  args 
)

Definition at line 237 of file xchar.h.

◆ println() [1/2]

template<typename... T>
void println ( std::FILE *  f,
wformat_string< T... >  fmt,
T &&...  args 
)

Definition at line 242 of file xchar.h.

◆ println() [2/2]

template<typename... T>
void println ( wformat_string< T... >  fmt,
T &&...  args 
)

Definition at line 246 of file xchar.h.

◆ runtime()

auto runtime ( wstring_view  s) -> runtime_format_string<wchar_t>
inline

Definition at line 55 of file xchar.h.

◆ to_wstring()

template<typename T >
auto to_wstring ( const T &  value) -> std::wstring
inline

Converts value to std::wstring using the default format for type T.

Definition at line 253 of file xchar.h.

◆ vformat() [1/2]

template<typename Char , FMT_ENABLE_IF(!std::is_same< Char, char >::value) >
auto vformat ( basic_string_view< Char >  format_str,
basic_format_args< buffer_context< type_identity_t< Char >>>  args 
) -> std::basic_string<Char>

Definition at line 100 of file xchar.h.

◆ vformat() [2/2]

template<typename Locale , typename S , typename Char = char_t<S>, FMT_ENABLE_IF(detail::is_locale< Locale >::value && detail::is_exotic_char< Char >::value) >
auto vformat ( const Locale &  loc,
const S format_str,
basic_format_args< buffer_context< type_identity_t< Char >>>  args 
) -> std::basic_string<Char>
inline

Definition at line 126 of file xchar.h.

◆ vformat_to() [1/2]

template<typename Locale , typename S , typename OutputIt , typename... Args, typename Char = char_t<S>, FMT_ENABLE_IF(detail::is_output_iterator< OutputIt, Char >::value && detail::is_locale< Locale >::value && detail::is_exotic_char< Char >::value) >
auto vformat_to ( OutputIt  out,
const Locale &  loc,
const S format_str,
basic_format_args< buffer_context< type_identity_t< Char >>>  args 
) -> OutputIt
inline

Definition at line 167 of file xchar.h.

◆ vformat_to() [2/2]

template<typename OutputIt , typename S , typename Char = char_t<S>, FMT_ENABLE_IF(detail::is_output_iterator< OutputIt, Char >::value && detail::is_exotic_char< Char >::value) >
auto vformat_to ( OutputIt  out,
const S format_str,
basic_format_args< buffer_context< type_identity_t< Char >>>  args 
) -> OutputIt

Definition at line 145 of file xchar.h.

◆ vformat_to_n()

template<typename OutputIt , typename Char , typename... Args, FMT_ENABLE_IF(detail::is_output_iterator< OutputIt, Char >::value && detail::is_exotic_char< Char >::value) >
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>
inline

Definition at line 191 of file xchar.h.

◆ vprint() [1/2]

void vprint ( std::FILE *  f,
wstring_view  fmt,
wformat_args  args 
)
inline

Definition at line 220 of file xchar.h.

◆ vprint() [2/2]

void vprint ( wstring_view  fmt,
wformat_args  args 
)
inline

Definition at line 228 of file xchar.h.



plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:49