CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
Formattable interface

Data Structures

struct  FMTVar
 Format variable descriptor for Formattable interface implementations. More...
 

Typedefs

typedef struct FMTVar FMTVar
 Format variable descriptor for Formattable interface implementations.
 

Enumerations

enum  FMTVarFlags {
  FMTVar_NoGenCase = 0x0001 , FMTVar_NoGenWidth = 0x0002 , FMTVar_SignPrefix = 0x0010 , FMTVar_SignAlways = 0x0020 ,
  FMTVar_LeadingZeros = 0x0040 , FMTVar_Left = 0x0100 , FMTVar_Center = 0x0200 , FMTVar_Right = 0x0400 ,
  FMTVar_Upper = 0x0800 , FMTVar_Lower = 0x1000
}
 Format variable flags for Formattable interface implementations. More...
 

Detailed Description

Types and structures for implementing the Formattable interface in custom objects.

Not needed for normal API usage; only for objects that implement Formattable.

Enumeration Type Documentation

◆ FMTVarFlags

Format variable flags for Formattable interface implementations.

Enumerator
FMTVar_NoGenCase 

no generic case conversions

FMTVar_NoGenWidth 

no generic width handling

FMTVar_SignPrefix 

had the - prefix to leave space for sign

FMTVar_SignAlways 

had the + prefix to always print sign

FMTVar_LeadingZeros 

had the 0 prefix to add leading zeros

FMTVar_Left 

left format option

FMTVar_Center 

center format option

FMTVar_Right 

right format option

FMTVar_Upper 

uppercase option

FMTVar_Lower 

lowercase option

Definition at line 147 of file format.h.