fmt
Loading...
Searching...
No Matches
fmt::ParseContext< Char > Class Template Referenceexport
module fmt

Public Types

using char_type = Char
using iterator = const Char*

Public Member Functions

constexpr ParseContext (BasicStringView< Char > fmt, int next_arg_id=0)
constexpr auto begin () const noexcept -> iterator
constexpr auto end () const noexcept -> iterator
constexpr auto advanceTo (iterator it) -> void
constexpr auto nextArgId () -> int
constexpr auto checkArgId (int id) -> void
constexpr auto checkArgId (BasicStringView< Char >) -> void
constexpr auto checkDynamicSpec (int arg_id) -> void

Detailed Description

template<typename Char = char>
class fmt::ParseContext< Char >

Parsing context consisting of a format string range being parsed and an argument counter for automatic indexing.

Member Function Documentation

◆ advanceTo()

template<typename Char = char>
auto fmt::ParseContext< Char >::advanceTo ( iterator it) -> void
inlineconstexpr

Advances the begin iterator to it.

◆ begin()

template<typename Char = char>
auto fmt::ParseContext< Char >::begin ( ) const -> iterator
inlineconstexprnoexcept

Returns an iterator to the beginning of the format string range being parsed.

◆ checkArgId()

template<typename Char = char>
auto fmt::ParseContext< Char >::checkArgId ( int id) -> void
inlineconstexpr

Reports an error if using the automatic argument indexing; otherwise switches to the manual indexing.

◆ end()

template<typename Char = char>
auto fmt::ParseContext< Char >::end ( ) const -> iterator
inlineconstexprnoexcept

Returns an iterator past the end of the format string range being parsed.

◆ nextArgId()

template<typename Char = char>
auto fmt::ParseContext< Char >::nextArgId ( ) -> int
inlineconstexpr

Reports an error if using the manual argument indexing; otherwise returns the next argument index and switches to the automatic indexing.


The documentation for this class was generated from the following file:
  • /home/mccakit/desktop/mccakit-fmt/fmt/src/fmt/iface/base.cppm