Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

Styled Class Reference

Inheritance diagram for Styled:

DGDouble Double Format Number Int Long List of all members.

Public Types

enum  Flags {
  Fill = 1, Left = Fill << 1, Prec = Left << 1, Hash = Prec << 1,
  Space = Hash << 1, Zero = Space << 1, Sign = Zero << 1, Comma = Sign << 1,
  Plus = Comma << 1, Array = Plus << 1
}

Static Public Member Functions

static void error (char[] msg)

Private Types

typedef int(* Utf8Sink )(char[])
typedef int function (double, inout Style) DblFormat

Static Private Attributes

static char[256] Spaces = ' '

Classes

struct  Style

Detailed Description

Root class of the formatting hierarchy.

While these functions are all static, they are encapsulated within a class inheritance to preserve some namespace cohesion. One might use structs for encapsualtion instead, but then inheritance would be lost. Note that this root class is abstract to prevent accidental instantiation of subclasses.

See Styled.parse() for format specifiers.

Definition at line 62 of file Styled.d.


Member Typedef Documentation

typedef int(* Utf8Sink)(char[]) [private]
 

Definition at line 64 of file Styled.d.

typedef int function(double, inout Style) DblFormat [private]
 

Definition at line 65 of file Styled.d.


Member Enumeration Documentation

enum Flags
 

Declare stylistic flags

Enumeration values:
Fill 
Left 
Prec 
Hash 
Space 
Zero 
Sign 
Comma 
Plus 
Array 

Definition at line 76 of file Styled.d.


Member Function Documentation

static void error char[]  msg  )  [inline, static]
 

Throw an exception with the provided messsage

Definition at line 338 of file Styled.d.

Referenced by Number::format(), Format::print(), and Format::Sprintf::utf8().


Member Data Documentation

char [256] Spaces = ' ' [static, private]
 

Definition at line 68 of file Styled.d.


The documentation for this class was generated from the following file:
Generated on Fri Nov 11 18:44:44 2005 for Mango by  doxygen 1.4.0