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

Format::Sprintf Struct Reference

List of all members.

Public Member Functions

void opCall (char[] dst, char[] workspace=null, DblFormat df=null)
int utf8 (char[] s)
int format (char[] fmt,...)
int format (char[] fmt, TypeInfo[] ti, void *args)

Public Attributes

Style style
char[80] local
char[] buffer
char * p
char limit

Detailed Description

Equivalent to vsprintf(). State is maintained on the stack only, making this thread-safe. You may supply a workspace buffer as an optional initialization arg, which should typically also be allocated on the stack.

See Styled.parse() for the list of format specifiers.

Definition at line 91 of file Format.d.


Member Function Documentation

void opCall char[]  dst,
char[]  workspace = null,
DblFormat  df = null
[inline]
 

Definition at line 98 of file Format.d.

References buffer, limit, local, p, style, and utf8().

int utf8 char[]  s  )  [inline]
 

Definition at line 105 of file Format.d.

References Styled::error(), limit, and p.

Referenced by opCall().

int format char[]  fmt,
  ...
[inline]
 

Definition at line 117 of file Format.d.

References Format::print(), and style.

int format char[]  fmt,
TypeInfo[]  ti,
void *  args
[inline]
 

Definition at line 123 of file Format.d.

References Format::print(), and style.


Member Data Documentation

Style style
 

Definition at line 93 of file Format.d.

Referenced by format(), and opCall().

char [80] local
 

Definition at line 94 of file Format.d.

Referenced by opCall().

char [] buffer
 

Definition at line 95 of file Format.d.

Referenced by opCall().

char* p
 

Definition at line 96 of file Format.d.

Referenced by opCall(), and utf8().

char limit
 

Definition at line 96 of file Format.d.

Referenced by opCall(), and utf8().


The documentation for this struct was generated from the following file:
Generated on Fri May 27 18:12:00 2005 for Mango by  doxygen 1.4.0