Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Examples

vos/corelibs/vos/snprintf.cc File Reference

Go to the source code of this file.

Defines

Functions


Define Documentation

#define char_to_int (  p   )     (p - '0')
 

Definition at line 153 of file snprintf.cc.

Referenced by dopr().

#define DP_C_LDOUBLE   3
 

Definition at line 151 of file snprintf.cc.

Referenced by dopr().

#define DP_C_LONG   2
 

Definition at line 150 of file snprintf.cc.

Referenced by dopr().

#define DP_C_SHORT   1
 

Definition at line 149 of file snprintf.cc.

Referenced by dopr().

#define DP_F_MINUS   (1 << 0)
 

Definition at line 140 of file snprintf.cc.

Referenced by dopr(), fmtfp(), fmtint(), and fmtstr().

#define DP_F_NUM   (1 << 3)
 

Definition at line 143 of file snprintf.cc.

Referenced by dopr().

#define DP_F_PLUS   (1 << 1)
 

Definition at line 141 of file snprintf.cc.

Referenced by dopr(), fmtfp(), and fmtint().

#define DP_F_SPACE   (1 << 2)
 

Definition at line 142 of file snprintf.cc.

Referenced by dopr(), fmtfp(), and fmtint().

#define DP_F_UNSIGNED   (1 << 6)
 

Definition at line 146 of file snprintf.cc.

Referenced by dopr(), and fmtint().

#define DP_F_UP   (1 << 5)
 

Definition at line 145 of file snprintf.cc.

Referenced by dopr(), fmtfp(), and fmtint().

#define DP_F_ZERO   (1 << 4)
 

Definition at line 144 of file snprintf.cc.

Referenced by dopr(), fmtfp(), and fmtint().

#define DP_S_CONV   6
 

Definition at line 136 of file snprintf.cc.

Referenced by dopr().

#define DP_S_DEFAULT   0
 

Definition at line 130 of file snprintf.cc.

Referenced by dopr().

#define DP_S_DONE   7
 

Definition at line 137 of file snprintf.cc.

Referenced by dopr().

#define DP_S_DOT   3
 

Definition at line 133 of file snprintf.cc.

Referenced by dopr().

#define DP_S_FLAGS   1
 

Definition at line 131 of file snprintf.cc.

Referenced by dopr().

#define DP_S_MAX   4
 

Definition at line 134 of file snprintf.cc.

Referenced by dopr().

#define DP_S_MIN   2
 

Definition at line 132 of file snprintf.cc.

Referenced by dopr().

#define DP_S_MOD   5
 

Definition at line 135 of file snprintf.cc.

Referenced by dopr().

#define HAVE_VARARGS_H
 

Definition at line 72 of file snprintf.cc.

#define LDOUBLE   double
 

Definition at line 99 of file snprintf.cc.

Referenced by abs_val(), dopr(), fmtfp(), and pow10().

#define MAX (  p,
q   )     ((p >= q) ? p : q)
 

Definition at line 154 of file snprintf.cc.

Referenced by fmtint().

#define MIN (  p,
q   )     ((p <= q) ? p : q)
 

Definition at line 155 of file snprintf.cc.

#define VA_END   va_end(ap)
 

Definition at line 90 of file snprintf.cc.

Referenced by snprintf().

#define VA_LOCAL_DECL   va_list ap
 

Definition at line 87 of file snprintf.cc.

Referenced by snprintf().

#define VA_SHIFT (  v,
t   )     v = va_arg(ap,t)
 

Definition at line 89 of file snprintf.cc.

Referenced by snprintf().

#define VA_START (  f   )     va_start(ap)
 

Definition at line 88 of file snprintf.cc.

Referenced by snprintf().

#define VOS_API
 

Definition at line 109 of file snprintf.cc.

Referenced by VOS::getTimer(), snprintf(), and vsnprintf().


Function Documentation

LDOUBLE abs_val (  LDOUBLE  value  )  [static]
 

Definition at line 549 of file snprintf.cc.

Referenced by fmtfp().

int dopr (  char *  buffer,
size_t  maxlen,
const char *  format,
va_list  args
)  [static]
 

Definition at line 157 of file snprintf.cc.

Referenced by vsnprintf().

int dopr_outch (  char *  buffer,
size_t *  currlen,
size_t  maxlen,
char  c
)  [static]
 

Definition at line 726 of file snprintf.cc.

Referenced by dopr(), fmtfp(), fmtint(), and fmtstr().

int fmtfp (  char *  buffer,
size_t *  currlen,
size_t  maxlen,
LDOUBLE  fvalue,
int  min,
int  max,
int  flags
)  [static]
 

Definition at line 584 of file snprintf.cc.

Referenced by dopr().

int fmtint (  char *  buffer,
size_t *  currlen,
size_t  maxlen,
long  value,
int  base,
int  min,
int  max,
int  flags
)  [static]
 

Definition at line 456 of file snprintf.cc.

Referenced by dopr().

int fmtstr (  char *  buffer,
size_t *  currlen,
size_t  maxlen,
char *  value,
int  flags,
int  min,
int  max
)  [static]
 

Definition at line 415 of file snprintf.cc.

Referenced by dopr().

LDOUBLE pow10 (  int  exp  )  [static]
 

Definition at line 559 of file snprintf.cc.

Referenced by fmtfp().

long round (  LDOUBLE  value  )  [static]
 

Definition at line 572 of file snprintf.cc.

Referenced by fmtfp().

VOS_API int snprintf (  va_alist   ) 
 

Definition at line 747 of file snprintf.cc.

VOS_API int snprintf (  char *  str,
size_t  count,
const char *  fmt,
... 
) 
 

VOS_API int vsnprintf (  char *  str,
size_t  count,
const char *  fmt,
va_list  arg
) 
 

Definition at line 734 of file snprintf.cc.

Referenced by snprintf().


Generated on Tue Aug 12 03:55:48 2003 for Interreality Project - VOS by doxygen 1.3.2