LibSWOC++ 1.5.14
Solid Wall of C++
Loading...
Searching...
No Matches
swoc::bwf::Format::FormatExtractor Struct Reference

Extraction support for pre-parsed format strings. More...

#include <bwf_base.h>

Collaboration diagram for swoc::bwf::Format::FormatExtractor:
Collaboration graph

Public Member Functions

 operator bool () const
 
bool operator() (std::string_view &literal_v, Spec &spec)
 

Public Attributes

MemSpan< Spec const > _fmt
 Parsed format string.
 
int _idx = 0
 

Detailed Description

Extraction support for pre-parsed format strings.

Definition at line 187 of file bwf_base.h.

Member Function Documentation

◆ operator bool()

swoc::bwf::Format::FormatExtractor::operator bool ( ) const
inlineexplicit
Returns
true if more format string, false if none.

Definition at line 540 of file bwf_base.h.

◆ operator()()

bool swoc::bwf::Format::FormatExtractor::operator() ( std::string_view & literal_v,
Spec & spec )

Extract next formatting elements.

Parameters
literal_v[out] The next literal.
spec[out] The next format specifier.
Returns
true if spec was filled out, false if no specifier was found.

Definition at line 251 of file bw_format.cc.

Member Data Documentation

◆ _fmt

MemSpan<Spec const> swoc::bwf::Format::FormatExtractor::_fmt

Parsed format string.

Definition at line 188 of file bwf_base.h.

◆ _idx

int swoc::bwf::Format::FormatExtractor::_idx = 0

Element index.

Definition at line 189 of file bwf_base.h.


The documentation for this struct was generated from the following files: