jigdo API

util/string.cc File Reference

#include <stdarg.h>
#include <stdio.h>
#include <debug.hh>
#include <string.hh>

Functions

string & append (string &s, double x)
 Convert a number x to characters and append to a string.
string & append (string &s, int x)
string & append (string &s, unsigned x)
string & append (string &s, unsigned x, int width)
 Convert a number x to characters and append to a string, padding at front with space characters.
string & append (string &s, long x)
string & append (string &s, unsigned long x)
string & append (string &s, unsigned long x, int width)

Variables

const int BUF_LEN = 40
char buf [BUF_LEN]
const char *const PAD = " "
const char *const PAD_END = PAD + 40

Function Documentation

string& append ( string &  s,
unsigned long  x,
int  width 
)

References Assert, buf, BUF_LEN, PAD, and PAD_END.

string& append ( string &  s,
unsigned long  x 
)

References buf, and BUF_LEN.

string& append ( string &  s,
long  x 
)

References buf, and BUF_LEN.

string& append ( string &  s,
unsigned  x,
int  width 
)

Convert a number x to characters and append to a string, padding at front with space characters.

width must be <40

References Assert, buf, BUF_LEN, PAD, and PAD_END.

string& append ( string &  s,
unsigned  x 
)

References buf, and BUF_LEN.

string& append ( string &  s,
int  x 
)

References buf, and BUF_LEN.

string& append ( string &  s,
double  x 
)

Convert a number x to characters and append to a string.

References buf, and BUF_LEN.


Variable Documentation

char buf[BUF_LEN] [static]

const int BUF_LEN = 40 [static]

const char* const PAD = " " [static]

const char* const PAD_END = PAD + 40 [static]


Generated on Tue Sep 23 14:27:42 2008 for jigdo by  doxygen 1.5.6