scnlib  0.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
scn::basic_scanf_parse_context< Locale > Class Template Reference

#include <parse_context.h>

Inheritance diagram for scn::basic_scanf_parse_context< Locale >:
scn::detail::basic_parse_context_base< Locale::char_type > scn::detail::parse_context_base

Public Types

using locale_type = Locale
 
using char_type = typename Locale::char_type
 
using string_view_type = basic_string_view< char_type >
 
using iterator = typename string_view_type::iterator
 

Public Member Functions

constexpr basic_scanf_parse_context (basic_string_view< char_type > f, locale_type &loc)
 
bool should_skip_ws ()
 
bool should_read_literal ()
 
constexpr bool check_literal (char_type ch) const
 
constexpr bool good () const
 
constexpr operator bool () const
 
SCN_CONSTEXPR14 void advance (std::ptrdiff_t n=1) noexcept
 
constexpr char_type next () const
 
bool check_arg_begin () const
 
bool check_arg_end () const
 
SCN_CONSTEXPR14 void arg_begin ()
 
SCN_CONSTEXPR14 void arg_end ()
 
SCN_CONSTEXPR14 void arg_handled () const noexcept
 
template<typename Scanner >
error parse (Scanner &s)
 
constexpr bool has_arg_id () const
 
constexpr expected
< string_view_type
parse_arg_id () const
 
- Public Member Functions inherited from scn::detail::basic_parse_context_base< Locale::char_type >
SCN_CONSTEXPR14 void check_arg_id (basic_string_view< Locale::char_type >)
 
- Public Member Functions inherited from scn::detail::parse_context_base
SCN_CONSTEXPR14 std::ptrdiff_t next_arg_id ()
 
SCN_CONSTEXPR14 bool check_arg_id (std::ptrdiff_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
std::ptrdiff_t m_next_arg_id {0}
 

Detailed Description

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

Definition at line 191 of file parse_context.h.

Member Typedef Documentation

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

Definition at line 195 of file parse_context.h.

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

Definition at line 197 of file parse_context.h.

template<typename Locale >
using scn::basic_scanf_parse_context< Locale >::locale_type = Locale

Definition at line 194 of file parse_context.h.

template<typename Locale >
using scn::basic_scanf_parse_context< Locale >::string_view_type = basic_string_view<char_type>

Definition at line 196 of file parse_context.h.

Constructor & Destructor Documentation

template<typename Locale >
constexpr scn::basic_scanf_parse_context< Locale >::basic_scanf_parse_context ( basic_string_view< char_type f,
locale_type loc 
)
inlineexplicit

Definition at line 199 of file parse_context.h.

Member Function Documentation

template<typename Locale >
SCN_CONSTEXPR14 void scn::basic_scanf_parse_context< Locale >::advance ( std::ptrdiff_t  n = 1)
inlinenoexcept

Definition at line 242 of file parse_context.h.

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

Definition at line 261 of file parse_context.h.

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

Definition at line 265 of file parse_context.h.

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

Definition at line 272 of file parse_context.h.

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

Definition at line 252 of file parse_context.h.

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

Definition at line 256 of file parse_context.h.

template<typename Locale >
constexpr bool scn::basic_scanf_parse_context< Locale >::check_literal ( char_type  ch) const
inline

Definition at line 228 of file parse_context.h.

template<typename Locale >
constexpr bool scn::basic_scanf_parse_context< Locale >::good ( ) const
inline

Definition at line 233 of file parse_context.h.

template<typename Locale >
constexpr bool scn::basic_scanf_parse_context< Locale >::has_arg_id ( ) const
inline

Definition at line 280 of file parse_context.h.

template<typename Locale >
constexpr char_type scn::basic_scanf_parse_context< Locale >::next ( ) const
inline

Definition at line 247 of file parse_context.h.

template<typename Locale >
constexpr scn::basic_scanf_parse_context< Locale >::operator bool ( ) const
inlineexplicit

Definition at line 237 of file parse_context.h.

template<typename Locale >
template<typename Scanner >
error scn::basic_scanf_parse_context< Locale >::parse ( Scanner &  s)
inline

Definition at line 275 of file parse_context.h.

template<typename Locale >
constexpr expected<string_view_type> scn::basic_scanf_parse_context< Locale >::parse_arg_id ( ) const
inline

Definition at line 284 of file parse_context.h.

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

Definition at line 215 of file parse_context.h.

template<typename Locale >
bool scn::basic_scanf_parse_context< Locale >::should_skip_ws ( )
inline

Definition at line 206 of file parse_context.h.


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