scnlib  0.1.2
FormattedinputformodernC++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
scn::basic_scanf_parse_context< Char > Class Template Reference

#include <parse_context.h>

Inheritance diagram for scn::basic_scanf_parse_context< Char >:
scn::detail::basic_parse_context_base< Char > scn::detail::parse_context_base

Public Types

using char_type = Char
 
using string_view_type = basic_string_view< char_type >
 
using iterator = typename string_view_type::iterator
 

Public Member Functions

SCN_CONSTEXPR basic_scanf_parse_context (basic_string_view< char_type > f)
 
template<typename Locale >
bool should_skip_ws (const Locale &loc)
 
template<typename Locale >
bool should_read_literal (const Locale &)
 
SCN_CONSTEXPR bool check_literal (char_type ch) const
 
SCN_CONSTEXPR bool good () const
 
SCN_CONSTEXPR operator bool () const
 
SCN_CONSTEXPR14 void advance (size_t n=1) noexcept
 
SCN_CONSTEXPR char_type next () const
 
template<typename Locale >
bool check_arg_begin (const Locale &) const
 
template<typename Locale >
bool check_arg_end (const Locale &loc) const
 
SCN_CONSTEXPR14 void arg_begin ()
 
SCN_CONSTEXPR14 void arg_end ()
 
SCN_CONSTEXPR14 void arg_handled () const noexcept
 
template<typename Scanner , typename Context >
error parse (Scanner &s, Context &ctx)
 
template<typename Locale >
SCN_CONSTEXPR expected
< string_view_type
parse_arg_id (const Locale &) const
 
- Public Member Functions inherited from scn::detail::basic_parse_context_base< Char >
SCN_CONSTEXPR14 void check_arg_id (basic_string_view< Char >)
 
- Public Member Functions inherited from scn::detail::parse_context_base
SCN_CONSTEXPR14 size_t next_arg_id ()
 
SCN_CONSTEXPR14 bool check_arg_id (size_t)
 

Additional Inherited Members

- Protected Member Functions inherited from scn::detail::parse_context_base
 parse_context_base ()=default
 
- Protected Attributes inherited from scn::detail::parse_context_base
int m_next_arg_id {0}
 

Detailed Description

template<typename Char>
class scn::basic_scanf_parse_context< Char >

Definition at line 174 of file parse_context.h.

Member Typedef Documentation

template<typename Char>
using scn::basic_scanf_parse_context< Char >::char_type = Char

Definition at line 177 of file parse_context.h.

template<typename Char>
using scn::basic_scanf_parse_context< Char >::iterator = typename string_view_type::iterator

Definition at line 179 of file parse_context.h.

Definition at line 178 of file parse_context.h.

Constructor & Destructor Documentation

template<typename Char>
SCN_CONSTEXPR scn::basic_scanf_parse_context< Char >::basic_scanf_parse_context ( basic_string_view< char_type f)
inlineexplicit

Definition at line 181 of file parse_context.h.

Member Function Documentation

template<typename Char>
SCN_CONSTEXPR14 void scn::basic_scanf_parse_context< Char >::advance ( size_t  n = 1)
inlinenoexcept

Definition at line 225 of file parse_context.h.

template<typename Char>
SCN_CONSTEXPR14 void scn::basic_scanf_parse_context< Char >::arg_begin ( )
inline

Definition at line 246 of file parse_context.h.

template<typename Char>
SCN_CONSTEXPR14 void scn::basic_scanf_parse_context< Char >::arg_end ( )
inline

Definition at line 250 of file parse_context.h.

template<typename Char>
SCN_CONSTEXPR14 void scn::basic_scanf_parse_context< Char >::arg_handled ( ) const
inlinenoexcept

Definition at line 257 of file parse_context.h.

template<typename Char>
template<typename Locale >
bool scn::basic_scanf_parse_context< Char >::check_arg_begin ( const Locale &  ) const
inline

Definition at line 236 of file parse_context.h.

template<typename Char>
template<typename Locale >
bool scn::basic_scanf_parse_context< Char >::check_arg_end ( const Locale &  loc) const
inline

Definition at line 241 of file parse_context.h.

template<typename Char>
SCN_CONSTEXPR bool scn::basic_scanf_parse_context< Char >::check_literal ( char_type  ch) const
inline

Definition at line 211 of file parse_context.h.

template<typename Char>
SCN_CONSTEXPR bool scn::basic_scanf_parse_context< Char >::good ( ) const
inline

Definition at line 216 of file parse_context.h.

template<typename Char>
SCN_CONSTEXPR char_type scn::basic_scanf_parse_context< Char >::next ( ) const
inline

Definition at line 230 of file parse_context.h.

template<typename Char>
SCN_CONSTEXPR scn::basic_scanf_parse_context< Char >::operator bool ( ) const
inlineexplicit

Definition at line 220 of file parse_context.h.

template<typename Char>
template<typename Scanner , typename Context >
error scn::basic_scanf_parse_context< Char >::parse ( Scanner &  s,
Context &  ctx 
)
inline

Definition at line 260 of file parse_context.h.

template<typename Char>
template<typename Locale >
SCN_CONSTEXPR expected<string_view_type> scn::basic_scanf_parse_context< Char >::parse_arg_id ( const Locale &  ) const
inline

Definition at line 266 of file parse_context.h.

template<typename Char>
template<typename Locale >
bool scn::basic_scanf_parse_context< Char >::should_read_literal ( const Locale &  )
inline

Definition at line 198 of file parse_context.h.

template<typename Char>
template<typename Locale >
bool scn::basic_scanf_parse_context< Char >::should_skip_ws ( const Locale &  loc)
inline

Definition at line 188 of file parse_context.h.


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