Loading...
Searching...
No Matches
basic_format_parse_context< Char, ErrorHandler > Class Template Reference
Inheritance diagram for basic_format_parse_context< Char, ErrorHandler >:
![]()
Detailed Descriptiontemplate<typename Char, typename ErrorHandler = detail::error_handler> class basic_format_parse_context< Char, ErrorHandler > \rst Parsing context consisting of a format string range being parsed and an argument counter for automatic indexing. You can use one of the following type aliases for common character types: +--------------------—+----------------------------------—+ | Type | Definition | +=======================+=====================================+ | format_parse_context | basic_format_parse_context<char> | +--------------------—+----------------------------------—+ | wformat_parse_context | basic_format_parse_context<wchar_t> | +--------------------—+----------------------------------—+ \endrst Member Typedef Documentation◆ char_type
template<typename Char , typename ErrorHandler = detail::error_handler>
◆ iterator
template<typename Char , typename ErrorHandler = detail::error_handler>
Constructor & Destructor Documentation◆ basic_format_parse_context()
template<typename Char , typename ErrorHandler = detail::error_handler>
Member Function Documentation◆ advance_to()
template<typename Char , typename ErrorHandler = detail::error_handler>
Advances the begin iterator to Definition at line 585 of file core.h. References basic_format_parse_context< Char, ErrorHandler >::begin(), basic_format_parse_context< Char, ErrorHandler >::format_str_, and detail::to_unsigned(). Referenced by advance_to(). ◆ begin()
template<typename Char , typename ErrorHandler = detail::error_handler>
Returns an iterator to the beginning of the format string range being parsed. Definition at line 577 of file core.h. References basic_format_parse_context< Char, ErrorHandler >::format_str_. Referenced by advance_to(), basic_format_parse_context< Char, ErrorHandler >::advance_to(), formatter< std::chrono::duration< Rep, Period >, Char >::do_parse(), format_handler< OutputIt, Char, Context >::on_format_specs(), and formatter< detail::bigint >::parse(). ◆ check_arg_id() [1/2]
template<typename Char , typename ErrorHandler = detail::error_handler>
◆ check_arg_id() [2/2]
template<typename Char , typename ErrorHandler = detail::error_handler>
Reports an error if using the automatic argument indexing; otherwise switches to the manual indexing. Definition at line 605 of file core.h. References basic_format_parse_context< Char, ErrorHandler >::next_arg_id_, and basic_format_parse_context< Char, ErrorHandler >::on_error(). Referenced by formatter< std::chrono::duration< Rep, Period >, Char >::spec_handler::make_arg_ref(), formatter< std::chrono::duration< Rep, Period >, Char >::spec_handler::make_arg_ref(), and format_handler< OutputIt, Char, Context >::on_arg_id(). ◆ end()
template<typename Char , typename ErrorHandler = detail::error_handler>
Returns an iterator past the end of the format string range being parsed. Definition at line 582 of file core.h. References basic_format_parse_context< Char, ErrorHandler >::format_str_. Referenced by formatter< std::chrono::duration< Rep, Period >, Char >::do_parse(). ◆ error_handler()
template<typename Char , typename ErrorHandler = detail::error_handler>
◆ next_arg_id()
template<typename Char , typename ErrorHandler = detail::error_handler>
Reports an error if using the manual argument indexing; otherwise returns the next argument index and switches to the automatic indexing. Definition at line 593 of file core.h. References basic_format_parse_context< Char, ErrorHandler >::next_arg_id_, and basic_format_parse_context< Char, ErrorHandler >::on_error(). Referenced by formatter< std::chrono::duration< Rep, Period >, Char >::spec_handler::make_arg_ref(), and format_handler< OutputIt, Char, Context >::on_arg_id(). ◆ on_error()
template<typename Char , typename ErrorHandler = detail::error_handler>
Definition at line 614 of file core.h. Referenced by basic_format_parse_context< Char, ErrorHandler >::check_arg_id(), basic_format_parse_context< Char, ErrorHandler >::next_arg_id(), and basic_printf_context< OutputIt, Char >::on_error(). Member Data Documentation◆ format_str_
template<typename Char , typename ErrorHandler = detail::error_handler>
Definition at line 561 of file core.h. Referenced by basic_format_parse_context< Char, ErrorHandler >::advance_to(), basic_format_parse_context< Char, ErrorHandler >::begin(), and basic_format_parse_context< Char, ErrorHandler >::end(). ◆ next_arg_id_
template<typename Char , typename ErrorHandler = detail::error_handler>
Definition at line 562 of file core.h. Referenced by basic_format_parse_context< Char, ErrorHandler >::check_arg_id(), and basic_format_parse_context< Char, ErrorHandler >::next_arg_id().
|