Gamp v0.0.7-67-g7798ac4
Gamp: Graphics, Audio, Multimedia and Processing
Loading...
Searching...
No Matches
jau::cfmt::FormatOpts Struct Reference

#include <string_cfmt.hpp>

Collaboration diagram for jau::cfmt::FormatOpts:

Public Member Functions

constexpr FormatOpts () noexcept
 
constexpr bool addFlag (char c) noexcept
 
constexpr void reset () noexcept
 
constexpr bool setConversion (char fmt_literal) noexcept
 
constexpr void setPrecision (uint32_t v)
 
constexpr void setWidth (uint32_t v)
 
std::string toFormat () const
 Reconstructs format string.
 
std::string toString () const
 
constexpr void validateFlags () noexcept
 

Public Attributes

cspec_t conversion
 
flags_t flags
 
std::string_view fmt
 
plength_t length_mod
 
uint32_t precision
 
bool precision_set:1
 
uint32_t radix
 
uint32_t width
 
bool width_set:1
 

Detailed Description

Definition at line 279 of file string_cfmt.hpp.

Constructor & Destructor Documentation

◆ FormatOpts()

jau::cfmt::FormatOpts::FormatOpts ( )
inlineconstexprnoexcept

Definition at line 290 of file string_cfmt.hpp.

Member Function Documentation

◆ setWidth()

void jau::cfmt::FormatOpts::setWidth ( uint32_t v)
inlineconstexpr

Definition at line 298 of file string_cfmt.hpp.

Here is the caller graph for this function:

◆ setPrecision()

void jau::cfmt::FormatOpts::setPrecision ( uint32_t v)
inlineconstexpr

Definition at line 299 of file string_cfmt.hpp.

Here is the caller graph for this function:

◆ addFlag()

bool jau::cfmt::FormatOpts::addFlag ( char c)
inlineconstexprnoexcept

Definition at line 300 of file string_cfmt.hpp.

Here is the caller graph for this function:

◆ validateFlags()

void jau::cfmt::FormatOpts::validateFlags ( )
inlineconstexprnoexcept

Definition at line 313 of file string_cfmt.hpp.

Here is the caller graph for this function:

◆ setConversion()

bool jau::cfmt::FormatOpts::setConversion ( char fmt_literal)
inlineconstexprnoexcept

Definition at line 338 of file string_cfmt.hpp.

Here is the caller graph for this function:

◆ reset()

void jau::cfmt::FormatOpts::reset ( )
inlineconstexprnoexcept

Definition at line 414 of file string_cfmt.hpp.

◆ toFormat()

std::string jau::cfmt::FormatOpts::toFormat ( ) const

Reconstructs format string.

Definition at line 1286 of file basic_types.cpp.

Here is the caller graph for this function:

◆ toString()

std::string jau::cfmt::FormatOpts::toString ( ) const

Definition at line 1348 of file basic_types.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ fmt

std::string_view jau::cfmt::FormatOpts::fmt

Definition at line 280 of file string_cfmt.hpp.

◆ width

uint32_t jau::cfmt::FormatOpts::width
Examples
test_stringfmt_format.cpp.

Definition at line 281 of file string_cfmt.hpp.

◆ precision

uint32_t jau::cfmt::FormatOpts::precision
Examples
test_stringfmt_format.cpp.

Definition at line 282 of file string_cfmt.hpp.

◆ radix

uint32_t jau::cfmt::FormatOpts::radix

Definition at line 283 of file string_cfmt.hpp.

◆ flags

flags_t jau::cfmt::FormatOpts::flags
Examples
test_stringfmt_format.cpp.

Definition at line 284 of file string_cfmt.hpp.

◆ length_mod

plength_t jau::cfmt::FormatOpts::length_mod
Examples
test_stringfmt_format.cpp.

Definition at line 285 of file string_cfmt.hpp.

◆ conversion

cspec_t jau::cfmt::FormatOpts::conversion

Definition at line 286 of file string_cfmt.hpp.

◆ width_set

bool jau::cfmt::FormatOpts::width_set
Examples
test_stringfmt_format.cpp.

Definition at line 287 of file string_cfmt.hpp.

◆ precision_set

bool jau::cfmt::FormatOpts::precision_set
Examples
test_stringfmt_format.cpp.

Definition at line 288 of file string_cfmt.hpp.


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