jaulib v1.4.1-10-ga2c96e0
Jau Support Library (C++, Java, ..)
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 (size_t v)
 
constexpr void setWidth (size_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
 
size_t precision
 
bool precision_set
 
nsize_t radix
 
size_t width
 
bool width_set
 

Detailed Description

Definition at line 260 of file string_cfmt.hpp.

Constructor & Destructor Documentation

◆ FormatOpts()

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

Definition at line 271 of file string_cfmt.hpp.

Member Function Documentation

◆ setWidth()

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

Definition at line 278 of file string_cfmt.hpp.

◆ setPrecision()

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

Definition at line 279 of file string_cfmt.hpp.

◆ addFlag()

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

Definition at line 280 of file string_cfmt.hpp.

◆ validateFlags()

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

Definition at line 293 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 318 of file string_cfmt.hpp.

◆ toFormat()

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

Reconstructs format string.

Definition at line 395 of file string_cfmt.hpp.

Here is the caller graph for this function:

◆ reset()

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

Definition at line 456 of file string_cfmt.hpp.

◆ toString()

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

Definition at line 468 of file string_cfmt.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ fmt

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

Definition at line 261 of file string_cfmt.hpp.

◆ flags

flags_t jau::cfmt::FormatOpts::flags

Definition at line 262 of file string_cfmt.hpp.

◆ width

size_t jau::cfmt::FormatOpts::width

Definition at line 263 of file string_cfmt.hpp.

◆ width_set

bool jau::cfmt::FormatOpts::width_set

Definition at line 264 of file string_cfmt.hpp.

◆ precision

size_t jau::cfmt::FormatOpts::precision

Definition at line 265 of file string_cfmt.hpp.

◆ precision_set

bool jau::cfmt::FormatOpts::precision_set

Definition at line 266 of file string_cfmt.hpp.

◆ length_mod

plength_t jau::cfmt::FormatOpts::length_mod

Definition at line 267 of file string_cfmt.hpp.

◆ conversion

cspec_t jau::cfmt::FormatOpts::conversion

Definition at line 268 of file string_cfmt.hpp.

◆ radix

nsize_t jau::cfmt::FormatOpts::radix

Definition at line 269 of file string_cfmt.hpp.


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