Inheritance diagram for Styled:
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 |
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.
|
|
|
|
|
Declare stylistic flags |
|
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(). |
|
|