SoPlex Documentation
Loading...
Searching...
No Matches
compile.h File Reference
#include <vector>
#include "format.h"

Go to the source code of this file.

Classes

struct  format_part< Char >
 
struct  format_part< Char >::replacement
 
union  format_part< Char >::value
 
struct  part_counter< Char >
 
class  format_string_compiler< Char, PartHandler >
 
struct  basic_compiled_format
 
struct  compiled_format_base< S, typename >
 
struct  format_part_array< Char, N >
 
struct  compiled_format_base< S, enable_if_t< is_compile_string< S >::value > >
 
class  compiled_format< S, Args >
 

Namespaces

namespace  internal
 
namespace  internal::cf
 

Functions

template<typename Char >
FMT_CONSTEXPR unsigned count_parts (basic_string_view< Char > format_str)
 
template<bool IS_CONSTEXPR, typename Char , typename PartHandler >
FMT_CONSTEXPR void compile_format_string (basic_string_view< Char > format_str, PartHandler handler)
 
template<typename Range , typename Context , typename Id >
void format_arg (basic_format_parse_context< typename Range::value_type > &parse_ctx, Context &ctx, Id arg_id)
 
template<typename Context , typename Range , typename CompiledFormat >
auto vformat_to (Range out, CompiledFormat &cf, basic_format_args< Context > args) -> typename Context::iterator
 
template<typename Char , unsigned N>
FMT_CONSTEXPR format_part_array< Char, N > compile_to_parts (basic_string_view< Char > format_str)
 
template<typename T >
constexpr const T & constexpr_max (const T &a, const T &b)
 
template<typename... Args, typename Char , size_t N>
auto compile (const Char(&format_str)[N]) -> internal::compiled_format< const Char *, Args... >
 
template<typename CompiledFormat , typename... Args, typename Char = typename CompiledFormat::char_type, FMT_ENABLE_IF(std::is_base_of< internal::basic_compiled_format, CompiledFormat >::value) >
std::basic_string< Char > format (const CompiledFormat &cf, const Args &... args)
 
template<typename OutputIt , typename CompiledFormat , typename... Args, FMT_ENABLE_IF(std::is_base_of< internal::basic_compiled_format, CompiledFormat >::value) >
OutputIt format_to (OutputIt out, const CompiledFormat &cf, const Args &... args)
 
template<typename OutputIt , typename CompiledFormat , typename... Args, FMT_ENABLE_IF(internal::is_output_iterator< OutputIt >::value) >
format_to_n_result< OutputIt > format_to_n (OutputIt out, size_t n, const CompiledFormat &cf, const Args &... args)
 
template<typename CompiledFormat , typename... Args>
std::size_t formatted_size (const CompiledFormat &cf, const Args &... args)
 

Function Documentation

◆ compile()

template<typename... Args, typename Char , size_t N>
auto compile ( const Char(&) format_str[N]) -> internal::compiled_format<const Char*, Args...>

Definition at line 537 of file compile.h.

◆ format()

template<typename CompiledFormat , typename... Args, typename Char = typename CompiledFormat::char_type, FMT_ENABLE_IF(std::is_base_of< internal::basic_compiled_format, CompiledFormat >::value) >
std::basic_string< Char > format ( const CompiledFormat & cf,
const Args &... args )

Definition at line 547 of file compile.h.

References to_string().

◆ format_to()

template<typename OutputIt , typename CompiledFormat , typename... Args, FMT_ENABLE_IF(std::is_base_of< internal::basic_compiled_format, CompiledFormat >::value) >
OutputIt format_to ( OutputIt out,
const CompiledFormat & cf,
const Args &... args )

◆ format_to_n()

template<typename OutputIt , typename CompiledFormat , typename... Args, FMT_ENABLE_IF(internal::is_output_iterator< OutputIt >::value) >
format_to_n_result< OutputIt > format_to_n ( OutputIt out,
size_t n,
const CompiledFormat & cf,
const Args &... args )

Definition at line 570 of file compile.h.

References format_to().

◆ formatted_size()

template<typename CompiledFormat , typename... Args>
std::size_t formatted_size ( const CompiledFormat & cf,
const Args &... args )

Definition at line 579 of file compile.h.

References format_to().