Public Member Functions | Private Types | Private Attributes | Static Private Attributes | List of all members
detail::format_string_checker< Char, Args > Class Template Reference

#include <core.h>

Public Member Functions

FMT_CONSTEXPR format_string_checker (basic_string_view< Char > fmt)
 
FMT_CONSTEXPR auto on_arg_id () -> int
 
FMT_CONSTEXPR auto on_arg_id (basic_string_view< Char > id) -> int
 
FMT_CONSTEXPR auto on_arg_id (int id) -> int
 
FMT_CONSTEXPR void on_error (const char *message)
 
FMT_CONSTEXPR auto on_format_specs (int id, const Char *begin, const Char *) -> const Char *
 
FMT_CONSTEXPR void on_replacement_field (int id, const Char *begin)
 
FMT_CONSTEXPR void on_text (const Char *, const Char *)
 

Private Types

using parse_context_type = compile_parse_context< Char >
 
using parse_func = const Char *(*)(parse_context_type &)
 

Private Attributes

parse_context_type context_
 
parse_func parse_funcs_ [num_args > 0 ? static_cast< size_t >(num_args) :1]
 
type types_ [num_args > 0 ? static_cast< size_t >(num_args) :1]
 

Static Private Attributes

static constexpr int num_args = sizeof...(Args)
 

Detailed Description

template<typename Char, typename... Args>
class detail::format_string_checker< Char, Args >

Definition at line 2637 of file core.h.

Member Typedef Documentation

◆ parse_context_type

template<typename Char , typename... Args>
using detail::format_string_checker< Char, Args >::parse_context_type = compile_parse_context<Char>
private

Definition at line 2639 of file core.h.

◆ parse_func

template<typename Char , typename... Args>
using detail::format_string_checker< Char, Args >::parse_func = const Char* (*)(parse_context_type&)
private

Definition at line 2646 of file core.h.

Constructor & Destructor Documentation

◆ format_string_checker()

template<typename Char , typename... Args>
FMT_CONSTEXPR detail::format_string_checker< Char, Args >::format_string_checker ( basic_string_view< Char >  fmt)
inlineexplicit

Definition at line 2653 of file core.h.

Member Function Documentation

◆ on_arg_id() [1/3]

template<typename Char , typename... Args>
FMT_CONSTEXPR auto detail::format_string_checker< Char, Args >::on_arg_id ( ) -> int
inline

Definition at line 2660 of file core.h.

◆ on_arg_id() [2/3]

template<typename Char , typename... Args>
FMT_CONSTEXPR auto detail::format_string_checker< Char, Args >::on_arg_id ( basic_string_view< Char >  id) -> int
inline

Definition at line 2664 of file core.h.

◆ on_arg_id() [3/3]

template<typename Char , typename... Args>
FMT_CONSTEXPR auto detail::format_string_checker< Char, Args >::on_arg_id ( int  id) -> int
inline

Definition at line 2661 of file core.h.

◆ on_error()

template<typename Char , typename... Args>
FMT_CONSTEXPR void detail::format_string_checker< Char, Args >::on_error ( const char *  message)
inline

Definition at line 2687 of file core.h.

◆ on_format_specs()

template<typename Char , typename... Args>
FMT_CONSTEXPR auto detail::format_string_checker< Char, Args >::on_format_specs ( int  id,
const Char *  begin,
const Char *   
) -> const Char*
inline

Definition at line 2680 of file core.h.

◆ on_replacement_field()

template<typename Char , typename... Args>
FMT_CONSTEXPR void detail::format_string_checker< Char, Args >::on_replacement_field ( int  id,
const Char *  begin 
)
inline

Definition at line 2676 of file core.h.

◆ on_text()

template<typename Char , typename... Args>
FMT_CONSTEXPR void detail::format_string_checker< Char, Args >::on_text ( const Char *  ,
const Char *   
)
inline

Definition at line 2658 of file core.h.

Member Data Documentation

◆ context_

template<typename Char , typename... Args>
parse_context_type detail::format_string_checker< Char, Args >::context_
private

Definition at line 2649 of file core.h.

◆ num_args

template<typename Char , typename... Args>
constexpr int detail::format_string_checker< Char, Args >::num_args = sizeof...(Args)
staticconstexprprivate

Definition at line 2640 of file core.h.

◆ parse_funcs_

template<typename Char , typename... Args>
parse_func detail::format_string_checker< Char, Args >::parse_funcs_[num_args > 0 ? static_cast< size_t >(num_args) :1]
private

Definition at line 2650 of file core.h.

◆ types_

template<typename Char , typename... Args>
type detail::format_string_checker< Char, Args >::types_[num_args > 0 ? static_cast< size_t >(num_args) :1]
private

Definition at line 2648 of file core.h.


The documentation for this class was generated from the following file:


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