Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
Gray::StrFormatBase Class Reference

#include <StrFormat.h>

Inheritance diagram for Gray::StrFormatBase:
Gray::StrFormat< TYPE >

Static Public Member Functions

static char FindSpec (char ch) noexcept
 

Public Attributes

char m_nSpec
 % type. 0 = invalid. from k_Specs. More...
 
BYTE m_nWidthMin
 specifies minimum field width. Total width of what we place in pszOut More...
 
short m_nPrecision
 how many chars from pszParam do we take? (not including '\0') -1 = default. More...
 
BYTE m_nLong
 0=int, 1=long (32 bit usually), or 2=long long (64 bit usually). 'l' or 'll'. (char or wchar_t?) More...
 
bool m_bAlignLeft
 
bool m_bPlusSign
 
bool m_bLeadZero
 StrNum::k_LEN_MAX_DIGITS_INT. More...
 
bool m_bWidthArg
 Get an argument that will supply the m_nWidth. More...
 
bool m_bAddPrefix
 Add a prefix 0x for hex or 0 for octal. More...
 

Static Public Attributes

static const char k_Specs [16] = "EFGXcdefgiopsux"
 

Detailed Description

Stuff common for char and wchar_t StrFormat for use with printf() type functions. "%[flags][width][.precision][length]specifier" http://en.cppreference.com/w/cpp/io/c/fprintf

Member Function Documentation

◆ FindSpec()

static char Gray::StrFormatBase::FindSpec ( char  ch)
inlinestaticnoexcept

Find a valid spec char.

Member Data Documentation

◆ k_Specs

const char Gray::StrFormatBase::k_Specs = "EFGXcdefgiopsux"
static

◆ m_bAddPrefix

bool Gray::StrFormatBase::m_bAddPrefix

Add a prefix 0x for hex or 0 for octal.

◆ m_bAlignLeft

bool Gray::StrFormatBase::m_bAlignLeft
  • sign indicates left align.

◆ m_bLeadZero

bool Gray::StrFormatBase::m_bLeadZero

◆ m_bPlusSign

bool Gray::StrFormatBase::m_bPlusSign
  • indicates to Show sign.

◆ m_bWidthArg

bool Gray::StrFormatBase::m_bWidthArg

Get an argument that will supply the m_nWidth.

◆ m_nLong

BYTE Gray::StrFormatBase::m_nLong

0=int, 1=long (32 bit usually), or 2=long long (64 bit usually). 'l' or 'll'. (char or wchar_t?)

◆ m_nPrecision

short Gray::StrFormatBase::m_nPrecision

how many chars from pszParam do we take? (not including '\0') -1 = default.

◆ m_nSpec

char Gray::StrFormatBase::m_nSpec

% type. 0 = invalid. from k_Specs.

◆ m_nWidthMin

BYTE Gray::StrFormatBase::m_nWidthMin

specifies minimum field width. Total width of what we place in pszOut


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