TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
fmt::FormatSpec Struct Reference

#include <format.h>

Public Member Functions

 FormatSpec (unsigned width=0, char type=0, wchar_t fill= ' ')
 
bool flag (unsigned f) const
 
int precision () const
 
char type () const
 
- Public Member Functions inherited from fmt::AlignSpec
 AlignSpec (unsigned width, wchar_t fill, Alignment align=ALIGN_DEFAULT)
 
Alignment align () const
 
int precision () const
 
- Public Member Functions inherited from fmt::WidthSpec
 WidthSpec (unsigned width, wchar_t fill)
 
unsigned width () const
 
wchar_t fill () const
 

Public Attributes

unsigned flags_
 
int precision_
 
char type_
 
- Public Attributes inherited from fmt::AlignSpec
Alignment align_
 
- Public Attributes inherited from fmt::WidthSpec
unsigned width_
 
wchar_t fill_
 

Constructor & Destructor Documentation

fmt::FormatSpec::FormatSpec ( unsigned  width = 0,
char  type = 0,
wchar_t  fill = ' ' 
)
inline
1525  : AlignSpec(width, fill), flags_(0), precision_(-1), type_(type) {}
wchar_t fill() const
Definition: format.h:1493
char type() const
Definition: format.h:1529
unsigned flags_
Definition: format.h:1519
int precision_
Definition: format.h:1520
AlignSpec(unsigned width, wchar_t fill, Alignment align=ALIGN_DEFAULT)
Definition: format.h:1500
unsigned width() const
Definition: format.h:1492
char type_
Definition: format.h:1521

Member Function Documentation

bool fmt::FormatSpec::flag ( unsigned  f) const
inline
1527 { return (flags_ & f) != 0; }
unsigned flags_
Definition: format.h:1519

+ Here is the caller graph for this function:

int fmt::FormatSpec::precision ( ) const
inline
1528 { return precision_; }
int precision_
Definition: format.h:1520

+ Here is the caller graph for this function:

char fmt::FormatSpec::type ( ) const
inline
1529 { return type_; }
char type_
Definition: format.h:1521

+ Here is the caller graph for this function:

Member Data Documentation

unsigned fmt::FormatSpec::flags_
int fmt::FormatSpec::precision_
char fmt::FormatSpec::type_

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