printf.c File Reference

Go to the source code of this file.

Classes

struct  et_info

Defines

#define etRADIX   1
#define etFLOAT   2
#define etEXP   3
#define etGENERIC   4
#define etSIZE   5
#define etSTRING   6
#define etDYNSTRING   7
#define etPERCENT   8
#define etCHARX   9
#define etSQLESCAPE   10
#define etSQLESCAPE2   11
#define etTOKEN   12
#define etSRCLIST   13
#define etPOINTER   14
#define etSQLESCAPE3   15
#define etORDINAL   16
#define FLAG_SIGNED   1
#define FLAG_INTERN   2
#define FLAG_STRING   4
#define etNINFO   (sizeof(fmtinfo)/sizeof(fmtinfo[0]))
#define SQLITE_PRINT_BUF_SIZE   350
#define etBUFSIZE   SQLITE_PRINT_BUF_SIZE

Typedefs

typedef unsigned char etByte

Functions

static int et_getdigit (LONGDOUBLE_TYPE *val, int *cnt)
static void appendSpace (StrAccum *pAccum, int N)
void sqlite3VXPrintf (StrAccum *pAccum, int useExtended, const char *fmt, va_list ap)
void sqlite3StrAccumAppend (StrAccum *p, const char *z, int N)
char * sqlite3StrAccumFinish (StrAccum *p)
void sqlite3StrAccumReset (StrAccum *p)
void sqlite3StrAccumInit (StrAccum *p, char *zBase, int n, int mx)
char * sqlite3VMPrintf (sqlite3 *db, const char *zFormat, va_list ap)
char * sqlite3MPrintf (sqlite3 *db, const char *zFormat,...)
char * sqlite3MAppendf (sqlite3 *db, char *zStr, const char *zFormat,...)
char * sqlite3_vmprintf (const char *zFormat, va_list ap)
char * sqlite3_mprintf (const char *zFormat,...)
char * sqlite3_snprintf (int n, char *zBuf, const char *zFormat,...)

Variables

static const char aDigits [] = "0123456789ABCDEF0123456789abcdef"
static const char aPrefix [] = "-x0\000X0"
static const et_info fmtinfo []

Define Documentation

#define etBUFSIZE   SQLITE_PRINT_BUF_SIZE

Definition at line 194 of file printf.c.

Referenced by sqlite3VXPrintf().

#define etCHARX   9

Definition at line 69 of file printf.c.

Referenced by sqlite3VXPrintf().

#define etDYNSTRING   7

Definition at line 67 of file printf.c.

Referenced by sqlite3VXPrintf().

#define etEXP   3

Definition at line 63 of file printf.c.

Referenced by sqlite3VXPrintf().

#define etFLOAT   2

Definition at line 62 of file printf.c.

Referenced by sqlite3VXPrintf().

#define etGENERIC   4

Definition at line 64 of file printf.c.

Referenced by sqlite3VXPrintf().

#define etNINFO   (sizeof(fmtinfo)/sizeof(fmtinfo[0]))

Definition at line 140 of file printf.c.

Referenced by sqlite3VXPrintf().

#define etORDINAL   16

Definition at line 78 of file printf.c.

Referenced by sqlite3VXPrintf().

#define etPERCENT   8

Definition at line 68 of file printf.c.

Referenced by sqlite3VXPrintf().

#define etPOINTER   14

Definition at line 76 of file printf.c.

Referenced by sqlite3VXPrintf().

#define etRADIX   1

Definition at line 61 of file printf.c.

Referenced by sqlite3VXPrintf().

#define etSIZE   5

Definition at line 65 of file printf.c.

Referenced by sqlite3VXPrintf().

#define etSQLESCAPE   10

Definition at line 71 of file printf.c.

Referenced by sqlite3VXPrintf().

#define etSQLESCAPE2   11

Definition at line 72 of file printf.c.

Referenced by sqlite3VXPrintf().

#define etSQLESCAPE3   15

Definition at line 77 of file printf.c.

Referenced by sqlite3VXPrintf().

#define etSRCLIST   13

Definition at line 75 of file printf.c.

Referenced by sqlite3VXPrintf().

#define etSTRING   6

Definition at line 66 of file printf.c.

Referenced by sqlite3VXPrintf().

#define etTOKEN   12

Definition at line 74 of file printf.c.

Referenced by sqlite3VXPrintf().

#define FLAG_INTERN   2

Definition at line 103 of file printf.c.

Referenced by sqlite3VXPrintf().

#define FLAG_SIGNED   1

Definition at line 102 of file printf.c.

Referenced by sqlite3VXPrintf().

#define FLAG_STRING   4

Definition at line 104 of file printf.c.

Referenced by sqlite3VXPrintf().

#define SQLITE_PRINT_BUF_SIZE   350

Definition at line 192 of file printf.c.

Referenced by sqlite3_vmprintf(), and sqlite3VMPrintf().


Typedef Documentation

typedef unsigned char etByte

Definition at line 84 of file printf.c.


Function Documentation

static void appendSpace ( StrAccum pAccum,
int  N 
) [static]

Definition at line 175 of file printf.c.

References sqlite3StrAccumAppend().

Referenced by sqlite3VXPrintf().

static int et_getdigit ( LONGDOUBLE_TYPE *  val,
int *  cnt 
) [static]

Definition at line 160 of file printf.c.

References d(), and LONGDOUBLE_TYPE.

Referenced by sqlite3VXPrintf().

char* sqlite3_mprintf ( const char *  zFormat,
  ... 
)
char* sqlite3_snprintf ( int  n,
char *  zBuf,
const char *  zFormat,
  ... 
)
char* sqlite3_vmprintf ( const char *  zFormat,
va_list  ap 
)
char* sqlite3MAppendf ( sqlite3 db,
char *  zStr,
const char *  zFormat,
  ... 
)

Definition at line 847 of file printf.c.

References sqlite3DbFree(), and sqlite3VMPrintf().

Referenced by corruptSchema(), and sqlite3WhereBegin().

char* sqlite3MPrintf ( sqlite3 db,
const char *  zFormat,
  ... 
)
void sqlite3StrAccumAppend ( StrAccum p,
const char *  z,
int  N 
)
char* sqlite3StrAccumFinish ( StrAccum p  ) 
void sqlite3StrAccumInit ( StrAccum p,
char *  zBase,
int  n,
int  mx 
)
void sqlite3StrAccumReset ( StrAccum p  ) 
char* sqlite3VMPrintf ( sqlite3 db,
const char *  zFormat,
va_list  ap 
)
void sqlite3VXPrintf ( StrAccum pAccum,
int  useExtended,
const char *  fmt,
va_list  ap 
)

Variable Documentation

const char aDigits[] = "0123456789ABCDEF0123456789abcdef" [static]

Definition at line 111 of file printf.c.

Referenced by sqlite3VXPrintf().

const char aPrefix[] = "-x0\000X0" [static]

Definition at line 112 of file printf.c.

Referenced by sqlite3VXPrintf().

const et_info fmtinfo[] [static]
Initial value:
 {
  {  'd', 10, 1, etRADIX,      0,  0 },
  {  's',  0, 4, etSTRING,     0,  0 },
  {  'g',  0, 1, etGENERIC,    30, 0 },
  {  'z',  0, 4, etDYNSTRING,  0,  0 },
  {  'q',  0, 4, etSQLESCAPE,  0,  0 },
  {  'Q',  0, 4, etSQLESCAPE2, 0,  0 },
  {  'w',  0, 4, etSQLESCAPE3, 0,  0 },
  {  'c',  0, 0, etCHARX,      0,  0 },
  {  'o',  8, 0, etRADIX,      0,  2 },
  {  'u', 10, 0, etRADIX,      0,  0 },
  {  'x', 16, 0, etRADIX,      16, 1 },
  {  'X', 16, 0, etRADIX,      0,  4 },

  {  'f',  0, 1, etFLOAT,      0,  0 },
  {  'e',  0, 1, etEXP,        30, 0 },
  {  'E',  0, 1, etEXP,        14, 0 },
  {  'G',  0, 1, etGENERIC,    14, 0 },

  {  'i', 10, 1, etRADIX,      0,  0 },
  {  'n',  0, 0, etSIZE,       0,  0 },
  {  '%',  0, 0, etPERCENT,    0,  0 },
  {  'p', 16, 0, etPOINTER,    0,  1 },
  {  'T',  0, 2, etTOKEN,      0,  0 },
  {  'S',  0, 2, etSRCLIST,    0,  0 },
  {  'r', 10, 3, etORDINAL,    0,  0 },
}

Definition at line 113 of file printf.c.


ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:50:01 2011 by Doxygen 1.6.1