jigdo API

util/string.hh File Reference

subst("Format %1, %2", arg1, arg2) creates strings with the arguments filled in, and does so in a safer way than sprintf() and friends. More...

#include <config.h>
#include <string>

Go to the source code of this file.


Classes

class  Subst
 Class for passing arguments to Logger. More...

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, long x)
string & append (string &s, unsigned long x)
string & append (string &s, unsigned long long 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, unsigned long x, int width)
string & append (string &s, unsigned long long x, int width)
string subst (const char *format, Subst a)
string subst (const char *format, Subst a, Subst b)
string subst (const char *format, Subst a, Subst b, Subst c)
string subst (const char *format, Subst a, Subst b, Subst c, Subst d)
string subst (const char *format, Subst a, Subst b, Subst c, Subst d, Subst e)
string subst (const char *format, Subst a, Subst b, Subst c, Subst d, Subst e, Subst f)
string subst (const char *format, Subst a, Subst b, Subst c, Subst d, Subst e, Subst f, Subst g)
string subst (const char *format, Subst a, Subst b, Subst c, Subst d, Subst e, Subst f, Subst g, Subst h)
string subst (const char *format, Subst a, Subst b, Subst c, Subst d, Subst e, Subst f, Subst g, Subst h, Subst i)

Detailed Description

subst("Format %1, %2", arg1, arg2) creates strings with the arguments filled in, and does so in a safer way than sprintf() and friends.


Function Documentation

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

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

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

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

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 long long  x 
)

References buf, and BUF_LEN.

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 
)

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.

Referenced by Progress::appendProgress(), Progress::appendSize(), main(), mkfiles(), and MkTemplate::run().

string subst ( const char *  format,
Subst  a,
Subst  b,
Subst  c,
Subst  d,
Subst  e,
Subst  f,
Subst  g,
Subst  h,
Subst  i 
) [inline]

References Subst::subst().

string subst ( const char *  format,
Subst  a,
Subst  b,
Subst  c,
Subst  d,
Subst  e,
Subst  f,
Subst  g,
Subst  h 
) [inline]

References Subst::subst().

string subst ( const char *  format,
Subst  a,
Subst  b,
Subst  c,
Subst  d,
Subst  e,
Subst  f,
Subst  g 
) [inline]

References Subst::subst().

string subst ( const char *  format,
Subst  a,
Subst  b,
Subst  c,
Subst  d,
Subst  e,
Subst  f 
) [inline]

References Subst::subst().

string subst ( const char *  format,
Subst  a,
Subst  b,
Subst  c,
Subst  d,
Subst  e 
) [inline]

References Subst::subst().

string subst ( const char *  format,
Subst  a,
Subst  b,
Subst  c,
Subst  d 
) [inline]

References Subst::subst().

string subst ( const char *  format,
Subst  a,
Subst  b,
Subst  c 
) [inline]

References Subst::subst().

string subst ( const char *  format,
Subst  a,
Subst  b 
) [inline]

References Subst::subst().

string subst ( const char *  format,
Subst  a 
) [inline]

References Subst::subst().


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